ILD inverse liquidity Divergence StrategyDetermine Bias (Bullish):
H4 chart shows an uptrend with higher highs and higher lows.
Identify a swing high where resting liquidity (buy-side) is likely above.
Look for SMT Divergence (Lower Timeframes):
On M15, EUR/USD makes a higher high while GBP/USD fails to, signaling potential manipulation.
Spot an Inverse Fair Value Gap (IFVG):
Price has impulsively moved up, leaving a fair value gap below.
Wait for a Retracement (Entry):
Price retraces into the IFVG near a Fibonacci 61.8% retracement level.
Enter long here with a SL below the gap.
Set Risk-to-Reward:
SL = 10 pips below the entry.
TP = 20 pips above (1:2 R:R), targeting a resting liquidity zone above a recent swing high.
Monitor and Exit:
Price moves into the liquidity zone, hits TP, and completes the trade.
指標和策略
Position Size Calculator (MOEX Futures)Описание на русском языке
Этот скрипт для TradingView создан специально для трейдеров, работающих с фьючерсами на Московской бирже. Его основная цель – помочь трейдерам быстро и точно рассчитывать параметры позиции, такие как количество контрактов, риск на сделку, общий размер маржи, а также цены стоп-лосса и тейк-профита.
Функционал:
Расчет цены контракта: учитывает цену актива (в пунктах) и стоимость одного пункта.
Риск на сделку: определяется как процент от общего капитала.
Размер позиции: рассчитывается на основе риска на сделку и стоп-лосса.
Количество контрактов: округляется до целого числа вниз.
Общий размер маржи: определяется исходя из количества контрактов и маржи на один контракт.
Цены стоп-лосса и тейк-профита: вычисляются как для лонг-, так и для шорт-позиций.
Интерактивная таблица: статично отображается в правом верхнем углу графика и обновляется автоматически при изменении входных данных.
Скрипт заточен исключительно под специфику фьючерсов Московской биржи и позволяет трейдерам оптимизировать расчёты, минимизировать ошибки и экономить время.
Description in English
This TradingView script is specifically designed for traders working with futures on the Moscow Exchange. Its primary purpose is to help traders quickly and accurately calculate position parameters, such as the number of contracts, risk per trade, total margin size, and stop-loss and take-profit prices.
Features:
Contract price calculation: Takes into account the asset price (in points) and the price per point.
Risk per trade: Defined as a percentage of the total capital.
Position size: Calculated based on the risk per trade and stop-loss percentage.
Number of contracts: Rounded down to the nearest whole number.
Total margin size: Determined based on the number of contracts and margin per contract.
Stop-loss and take-profit prices: Calculated for both long and short positions.
Interactive table: Statically displayed in the top-right corner of the chart and dynamically updated when input parameters change.
This script is tailored exclusively to the specifics of futures trading on the Moscow Exchange, enabling traders to optimize calculations, minimize errors, and save time.
Matrix Series and Vix Fix with VWAP CCI and QQE SignalsMatrix Series and Vix Fix with VWAP CCI and QQE Signals
Short Title: Advanced Matrix
Purpose
This Pine Script combines multiple technical analysis tools to create a comprehensive trading indicator. It incorporates elements like support/resistance zones, overbought/oversold conditions, Williams Vix Fix, QQE (Quantitative Qualitative Estimation) signals, VWAP CCI signals, and a 200-period SMA for trend filtering. The goal is to provide actionable buy and sell signals with enhanced visualization.
Key Features and Components
1. Matrix Series
Smoothing Input: Allows customization of EMA smoothing for the indicator (default: 5).
Support/Resistance Zones: Based on CCI (Commodity Channel Index) values.
Dynamic zones calculated with customizable parameters (SupResPeriod, SupResPercentage, PricePeriod).
Candlestick Visualization: Custom candlestick plots with colors indicating trends.
Dynamic levels for overbought/oversold conditions.
2. Overbought/Oversold Signals
Overbought and oversold levels are adjustable (ob and os).
Plots circles on the chart to highlight extreme conditions.
3. Williams Vix Fix
Identifies potential reversal points by analyzing volatility.
Uses Bollinger Bands and percentile thresholds to detect high-probability entries.
Includes two alert levels (alert1 and alert2) with customizable criteria for signal filtering.
4. QQE Signals
Based on the smoothed RSI and QQE methodology.
Detects trend changes using adaptive ATR bands (FastAtrRsiTL).
Plots long and short signals when specific conditions are met.
5. VWAP CCI Signals
Combines VWAP and CCI for additional trade signals.
Detects crossovers and crossunders of CCI levels (-200 and 200) to generate long and short signals.
6. 200 SMA
A 200-period simple moving average is plotted to act as a trend filter.
The script rules recommend buying only when the price is above the SMA200.
Customizable Inputs
General:
Smoothing, support/resistance periods, overbought/oversold levels.
Williams Vix Fix:
Lookback periods, Bollinger Band settings, percentile thresholds.
QQE:
RSI length, smoothing factor, QQE factor, and threshold values.
VWAP CCI:
Length for calculating deviations.
Visual Elements
Dynamic candlestick colors to indicate trend direction.
Overbought/oversold circles for extreme price levels.
Resistance and support lines.
Labels and shapes for buy/sell signals from Vix Fix, QQE, and VWAP CCI.
Alerts
Alerts are configured for the Matrix Series (e.g., "BUY MATRIX") and other components, ensuring traders are notified when significant conditions are met.
Intended Use
This indicator is designed for traders seeking a multi-faceted tool to analyze market trends, identify potential reversal points, and generate actionable trading signals. It combines traditional indicators with advanced techniques for comprehensive market analysis.
Strength Measurement -HTStrength Measurement -HT
This indicator provides a comprehensive view of trend strength by calculating the average ADX (Average Directional Index) across multiple timeframes. It helps traders identify strong trends, potential reversals, and confirm signals from other indicators.
Key Features:
Multi-Timeframe Analysis: Analyze trend strength across different timeframes. Choose which timeframes to include in the calculation (5 min, 15 min, 30 min, 1 hour, 4 hour).
Customizable ADX Parameters: Adjust the ADX smoothing (adxlen) and DI length (dilen) parameters to fine-tune the indicator to your preferred settings.
Smoothed Average ADX: The average ADX is smoothed using a Simple Moving Average to reduce noise and provide a clearer picture of the overall trend.
Color-Coded Visualization: The histogram clearly indicates trend direction and strength:
Green: Uptrend
Red: Downtrend
Darker shades: Stronger trend
Lighter shades: Weaker trend
Reference Levels: Includes horizontal lines at 25, 50, and 75 to provide benchmarks for trend strength classification.
Alerts: Set alerts for strong trend up (ADX crossing above 50) and weakening trend (ADX crossing below 25).
How to Use:
Select Timeframes: Choose the timeframes you want to include in the average ADX calculation.
Adjust ADX Parameters: Fine-tune the adxlen and dilen values based on your trading style and the timeframe of the chart.
Identify Strong Trends: Look for histogram bars with darker green or red colors, indicating a strong trend.
Spot Potential Reversals: Watch for changes in histogram color and height, which may suggest a weakening trend or a potential reversal.
Combine with Other Indicators: Use this indicator with other technical analysis tools to confirm trading signals.
Note: This indicator is based on the ADX, which is a lagging indicator.
Auto Fibonacci LinesThis TradingView script is a modded version of the library called "VisibleChart" created by Pinecoder.
This version has the option for users to change the Fibonacci lines and price labels. This makes the script user-friendly.
Fibonacci extensions are a tool that traders can use to establish profit targets or estimate how far a price may travel after a retracement/pullback is finished. Extension levels are also possible areas where the price may reverse. This study automatically draws horizontal lines that are used to determine possible support and resistance levels.
It's designed to automatically plot Fibonacci retracement levels on chart, aiding in technical analysis for traders.
First, the highest and lowest bars on the chart are calculated. These values are used for Fibonacci extensions.
These values update as traders scroll or zoom their charts, this shows that it is a useful indicator that can dynamically calculate and draw visuals on visible bars only.
Difference Between Candle Close and Fibonacci MA AVGIndicator calculates the first 17 Fibonacci moving averages and then finds the average. The difference between the close price and average Fibonacci MA and is then "scaled" by dividing the average Fibonacci MA.
Indicator shows the MA trend and can show possible support and resistance. Indicator shows an oscillation between an asset being overbought and oversold. Each asset has its own oscillation profile.
diff = (close - avgFibMA)/avgFibMA
Candle Close Distance AlertThreshold-Based Distance:
You define a threshold percentage (threshold_percent) to specify what "far" means (e.g., 2%).
The script calculates the absolute distance between:
Close and Open
Close and High
Close and Low
If any of these distances exceed the specified threshold, the condition is triggered.
Visual Markers:
Green markers (triangle up) indicate the close is far from the open.
Red markers (triangle down) indicate the close is far from the high.
Blue markers (triangle down) indicate the close is far from the low.
These markers make it easy to spot significant price movements on the chart.
Customizable Alerts:
If enabled, alerts are triggered when any of the conditions are met.
Alerts are designed to notify you in real time if a candle closes far from the open, high, or low.
PDF-MA Supertrend [BackQuant]PDF-MA Supertrend
The PDF-MA Supertrend combines the innovative Probability Density Function (PDF) smoothing with the widely popular Supertrend methodology, creating a robust tool for identifying trends and generating actionable trading signals. This indicator is designed to provide precise entries and exits by dynamically adapting to market volatility while visualizing long and short opportunities directly on the chart.
Core Feature: PDF Smoothing
At the foundation of this indicator is the PDF smoothing technique, which applies a Probability Density Function to calculate a smoothed moving average. This method allows the indicator to assign adaptive weights to data points, making it responsive to market changes without overreacting to short-term volatility.
Key parameters include:
Variance: Controls the spread of the PDF weighting. A smaller variance results in sharper responses, while a larger variance smooths out the curve.
Mean: Shifts the PDF’s center, allowing traders to tweak how weights are distributed around the data points.
Smoothing Method: Offers the choice between EMA (Exponential Moving Average) and SMA (Simple Moving Average) for blending the PDF-smoothed data with traditional moving average methods.
By combining these parameters, the PDF smoothing creates a moving average that effectively captures underlying trends.
Supertrend: Adaptive Trend and Volatility Tracking
The Supertrend is a well-known volatility-based indicator that dynamically adjusts to market conditions using the ATR (Average True Range). In this script, the PDF-smoothed moving average acts as the price input, making the Supertrend calculation more adaptive and precise.
Key Supertrend Features:
ATR Period: Determines the lookback period for calculating market volatility.
Factor: Multiplies the ATR to set the distance between the Supertrend and the price. A higher factor creates wider bands, filtering out smaller price movements, while a lower factor captures tighter trends.
Dynamic Direction: The Supertrend flips its direction based on price interactions with the calculated upper and lower bands:
Uptrend : When the price is above the Supertrend, the direction turns bullish.
Downtrend : When the price is below the Supertrend, the direction turns bearish.
This combination of PDF smoothing and Supertrend calculation ensures that trends are detected with greater accuracy, while volatility filters out market noise.
Long and Short Signal Generation
The PDF-MA Supertrend generates actionable trading signals by detecting transitions in the trend direction:
Long Signal (𝕃): Triggered when the trend transitions from bearish to bullish. This is visually represented with a green triangle below the price bars.
Short Signal (𝕊): Triggered when the trend transitions from bullish to bearish. This is marked with a red triangle above the price bars.
These signals provide traders with clear entry and exit points, ensuring they can capitalize on emerging trends while avoiding false signals.
Customizable Visualization Options
The indicator offers a range of visualization settings to help traders interpret the data with ease:
Show Supertrend: Option to toggle the visibility of the Supertrend line.
Candle Coloring: Automatically colors candlesticks based on the trend direction:
Green for long trends.
Red for short trends.
Long and Short Signals (𝕃 + 𝕊): Displays long (𝕃) and short (𝕊) signals directly on the chart for quick identification of trade opportunities.
Line Color Customization: Allows users to customize the colors for long and short trends.
Alert Conditions
To ensure traders never miss an opportunity, the PDF-MA Supertrend includes built-in alerts for trend changes:
Long Signal Alert: Notifies when a bullish trend is identified.
Short Signal Alert: Notifies when a bearish trend is identified.
These alerts can be configured for real-time notifications via SMS, email, or push notifications, making it easier to stay updated on market movements.
Suggested Parameter Adjustments
The indicator’s effectiveness can be fine-tuned using the following guidelines:
Variance:
For low-volatility assets (e.g., indices): Use a smaller variance (1.0–1.5) for smoother trends.
For high-volatility assets (e.g., cryptocurrencies): Use a larger variance (1.5–2.0) to better capture rapid price changes.
ATR Factor:
A higher factor (e.g., 2.0) is better suited for long-term trend-following strategies.
A lower factor (e.g., 1.5) captures shorter-term trends.
Smoothing Period:
Shorter periods provide more reactive signals but may increase noise.
Longer periods offer stability and better alignment with significant trends.
Experimentation is encouraged to find the optimal settings for specific assets and trading strategies.
Trading Applications
The PDF-MA Supertrend is a versatile indicator suited to a variety of trading approaches:
Trend Following : Use the Supertrend line and signals to follow market trends and ride sustained price movements.
Reversal Trading : Spot potential trend reversals as the Supertrend flips direction.
Volatility Analysis : Adjust the ATR factor to filter out minor price fluctuations or capture sharp movements.
Final Thoughts
The PDF-MA Supertrend combines the precision of Probability Density Function smoothing with the adaptability of the Supertrend methodology, offering traders a powerful tool for identifying trends and volatility. With its customizable parameters, actionable signals, and built-in alerts, this indicator is an excellent choice for traders seeking a robust and reliable system for trend detection and entry/exit timing.
As always, backtesting and incorporating this indicator into a broader strategy are recommended for optimal results.
Radial Basis Kernal ATR [BackQuant]Radial Basis Kernel ATR
The Radial Basis Kernel ATR is a trading indicator that combines the classic Average True Range (ATR) with advanced Radial Basis Function (RBF) kernel smoothing . This innovative approach creates a highly adaptive and precise tool for detecting volatility, identifying trends, and providing dynamic support and resistance levels.
With its configurable parameters and ability to adjust to market conditions, this indicator offers traders a robust framework for making informed decisions across various assets and timeframes.
Key Feature: Radial Basis Function Kernel Smoothing
The Radial Basis Function (RBF) kernel is at the heart of this indicator, applying sophisticated mathematical techniques to smooth price data and calculate an enhanced version of ATR. By weighting data points dynamically, the RBF kernel ensures that recent price movements are given appropriate emphasis without overreacting to short-term noise.
The RBF kernel uses a gamma factor to control the degree of smoothing, making it highly adaptable to different asset classes and market conditions:
Gamma Factor Adjustment :
For low-volatility data (e.g., indices), a smaller gamma (0.05–0.1) ensures smoother trends and avoids overly sharp responses.
For high-volatility data (e.g., cryptocurrencies), a larger gamma (0.1–0.2) captures the increased price fluctuations while maintaining stability.
Experimentation is Key : Traders are encouraged to backtest and visually compare different gamma values to find the optimal setting for their specific asset and strategy.
The gamma factor dynamically adjusts based on the variance of the source data, ensuring the indicator remains effective across a wide range of market conditions.
Average True Range (ATR) with Dynamic Bands
The ATR is a widely used volatility measure that captures the degree of price movement over a specific period. This indicator enhances the traditional ATR by integrating the RBF kernel, resulting in a smoothed and adaptive ATR calculation.
Dynamic bands are created around the RBF kernel output using a user-defined ATR factor , offering valuable insights into potential support and resistance zones. These bands expand and contract based on market volatility, providing a visual representation of potential price movement.
Moving Average Confluence
For additional confirmation, the indicator includes the option to overlay a moving average on the smoothed ATR. Traders can choose from several moving average types, such as EMA , SMA , or Hull , and adjust the lookback period to suit their strategy. This feature helps identify broader trends and potential confluence areas, making the indicator even more versatile.
Long and Short Trend Detection
The indicator provides long and short signals based on the directional movement of the smoothed ATR:
Long Signal : Triggered when the ATR crosses above its previous value, indicating bullish momentum.
Short Signal : Triggered when the ATR crosses below its previous value, signaling bearish momentum.
These trend signals are visually highlighted on the chart with green and red bar coloring (optional), providing clear and actionable insights.
Customization Options
The Radial Basis Kernel ATR offers extensive customization options, allowing traders to tailor the indicator to their preferences:
RBF Kernel Settings
Source : Select the price data (e.g., close, high, low) used for the kernel calculation.
Kernel Length : Define the lookback period for the RBF kernel, controlling the smoothing effect.
Gamma Factor : Adjust the smoothing sensitivity, with smaller values for smoother trends and larger values for responsiveness.
ATR Settings
ATR Period : Set the period for ATR calculation, with shorter periods capturing more short-term volatility and longer periods providing a broader view.
ATR Factor : Adjust the scaling of ATR bands for dynamic support and resistance levels.
Confluence Settings
Moving Average Type : Choose from various moving average types for additional trend confirmation.
Moving Average Period : Define the lookback period for the moving average overlay.
Visualization
Trend Coloring : Enable or disable bar coloring based on trend direction (green for long, red for short).
Background Highlighting : Add optional background shading to emphasize long and short trends visually.
Line Width : Customize the thickness of the plotted ATR line for better visibility.
Alerts and Automation
To help traders stay on top of market movements, the indicator includes built-in alerts for trend changes:
Kernel ATR Trend Up : Triggered when the ATR indicates a bullish trend.
Kernel ATR Trend Down : Triggered when the ATR signals a bearish trend.
These alerts ensure traders never miss important opportunities, providing timely notifications directly to their preferred device.
Suggested Gamma Values
The effectiveness of the gamma factor depends on the asset type and the selected kernel length:
Low Volatility Assets (e.g., indices): Use a smaller gamma factor (approximately 0.05–0.1) for smoother trends.
High Volatility Assets (e.g., crypto): Use a larger gamma factor (approximately 0.1–0.2) to capture sharper price movements.
Experimentation : Fine-tune the gamma factor using backtests or visual comparisons to optimize for specific assets and strategies.
Trading Applications
The Radial Basis Kernel ATR is a versatile tool suitable for various trading styles and strategies:
Trend Following : Use the smoothed ATR and dynamic bands to identify and follow trends with confidence.
Reversal Trading : Spot potential reversals by observing interactions with dynamic ATR bands and moving average confluence.
Volatility Analysis : Analyze market volatility to adjust risk management strategies or position sizing.
Final Thoughts
The Radial Basis Kernel ATR combines advanced mathematical techniques with the practical utility of ATR, offering traders a powerful and adaptive tool for volatility analysis and trend detection. Its ability to dynamically adjust to market conditions through the RBF kernel and gamma factor makes it a unique and indispensable part of any trader's toolkit.
By combining sophisticated smoothing , dynamic bands , and customizable visualization , this indicator enhances the ability to read market conditions and make more informed trading decisions. As always, backtesting and incorporating it into a broader strategy are recommended for optimal results.
Repeating Vertical LinesThe "Repeating Vertical Lines" indicator visualizes recurring points in time on the chart by drawing background highlights based on user-defined conditions, including specific weekdays, times, or their combination. Users can customize the color and transparency of the lines for seamless chart integration.
Gufran - Volume DivergenceThis indicator detects bullish and bearish divergences by analyzing price action, volume trends, and RSI (Relative Strength Index) for added confirmation. It highlights key market reversals or trend continuations by identifying when price movement diverges from volume dynamics, providing traders with actionable insights for entry and exit points.
Key Features:
Divergence Detection:
Bullish Divergence: Price makes a lower low, but volume shows higher lows, signaling potential upward reversals.
Bearish Divergence: Price makes a higher high, but volume shows lower highs, signaling potential downward reversals.
RSI Confirmation:
Bullish Signals: Confirmed when RSI is in the oversold zone.
Bearish Signals: Confirmed when RSI is in the overbought zone (optional relaxation of RSI conditions available).
Normalized Volume Analysis:
Volume is scaled to the price range, ensuring clear and meaningful visualization alongside price action.
Customizable Parameters:
Lookback Period: Define how far back the script looks to identify divergences.
Volume Significance: Adjust the threshold for significant volume movements.
RSI Levels: Fine-tune overbought and oversold thresholds for optimal signal accuracy.
Gap Control: Avoid clutter by setting a minimum number of candles between successive divergence signals.
Clear Visual Representation:
Bullish Divergence: Marked with green labels and connecting lines.
Bearish Divergence: Marked with red labels and connecting lines.
Dotted lines show normalized volume divergence, while solid lines indicate price divergence.
Ideal For:
Traders who rely on volume dynamics to validate price movements.
Those looking for an added layer of confidence using RSI to filter false signals.
Swing and intraday traders aiming to identify market reversal zones or continuation patterns.
Customization Options:
Lookback Period: Adjustable range for detecting highs and lows.
Volume Threshold: Define the multiplier for significant volume changes.
RSI Settings: Tailor overbought/oversold levels to suit your trading style.
Relax RSI Condition: Toggle stricter or more flexible conditions for bearish divergences.
How to Use:
Add the indicator to your chart and configure the parameters to fit the asset and timeframe you are trading.
Look for:
Green “Bullish Div” labels near price lows for potential buying opportunities.
Red “Bearish Div” labels near price highs for potential selling opportunities.
Use this indicator in combination with other tools like support/resistance levels, trendlines, or moving averages for a comprehensive trading strategy.
Disclaimer:
This indicator is a tool for educational purposes and should not be used as a standalone trading signal. Always conduct proper risk management and consider additional technical/fundamental analysis before making trading decisions.
Market Participation Ratio-MPR(TechnoBlooms)Market Participation Ratio (MPR) Indicator - Description
The Market Participation Ratio (MPR) is a custom indicator designed to assess market activity by analyzing price and volume relationships over a specified period. This indicator is useful for identifying trends, participation levels, and key thresholds in market behavior.
Key Features:
1. MPR Calculation:
o The indicator calculates a ratio of the current price and volume relative to their respective moving averages over a user-defined period (Length).
o This ratio is scaled to 100 for better visualization and comparison.
2. Smoothing:
o To reduce noise and make the trend clearer, the MPR is smoothed using an Exponential Moving Average (Smoothing Length), making it easier to interpret.
3. Zero Line & Threshold Levels:
o A zero line at 0 is plotted for baseline comparison.
o Horizontal reference lines at 100 (threshold for strong participation) and 50 (optional secondary level) help in evaluating market trends.
Usage:
• Traders can use the MPR to identify when market participation is increasing or decreasing, which may signal potential trend reversals or continuations.
• Values above 100 often suggest robust market activity, favorable for long positions.
• Values below 100 may indicate waning interest, potentially signaling pullbacks or bearish trends.
Customizable Inputs:
• Length: Adjusts the moving average period for price and volume calculations.
• Smoothing Length: Determines the degree of smoothing applied to the MPR.
Applications:
• Trend Analysis: Detect shifts in bullish or bearish momentum based on participation levels.
• Market Strength: Identify periods of increased or reduced market involvement by traders and investors.
• Entry/Exit Signals: Use levels around 100 as potential cues for positioning in the market.
This indicator is versatile for both short-term and long-term trading strategies and is a valuable addition for technical analysis enthusiasts seeking deeper insights into market dynamics.
Closing Prices for Indices AMMOthe "Closing Prices for Indices" indicator displays the daily closing prices of four major stock indices: FTSE 100, DAX 40, Dow Jones Industrial Average, and NASDAQ Composite. The indicator updates the prices based on their respective market closing times:
FTSE 100 and DAX 40: Updates at 4:30 PM UK time.
Dow Jones and NASDAQ Composite: Updates at 9:00 PM UK time.
Key features:
Customizable Labels: Option to display labels showing the closing prices directly on the chart.
Color-Coded Lines: Plots each index's closing price using distinct, customizable colors for easy differentiation.
User-Friendly Settings: Includes options for customizing line and label colors.
This indicator is perfect for traders and analysts looking to monitor and compare key index closing prices visually on their charts.
CHAKRA RISS ENGULFING CANDLESTICK STRATEGYChakra RISS Engulfing Candlestick Strategy
Type: Technical Indicator & Strategy
Platform: TradingView
Script Version: Pine Script v6
Overview:
The Chakra RISS Engulfing Candlestick Strategy combines a momentum-based approach using the Relative Strength Index (RSI) with Engulfing Candlestick Patterns to generate buy and sell signals. The strategy filters trades based on price movement relative to a 50-period Simple Moving Average (SMA), making it a trend-following strategy.
The indicator uses color-coded bars to visually represent market conditions, helping traders easily identify bullish and bearish trends. The strategy is designed to be dynamic, adapting to changing market conditions and filtering out noise using key technical indicators.
How It Works:
RSI-Based Color Conditions:
Green Bars: When the RSI crosses above a specified UpLevel (default: 50), indicating a bullish momentum and signaling potential buy conditions.
Red Bars: When the RSI crosses below a specified DownLevel (default: 50), indicating a bearish momentum and signaling potential sell conditions.
Buy Signal:
Triggered when the following conditions are met:
RSI crosses from below the UpLevel (default: 50) to above it, signaling increasing bullish momentum.
The close price is above the 50-period Simple Moving Average (SMA), confirming an uptrend.
The Buy Signal is plotted below the bar with a green arrow and a "BUY" label.
Sell Signal:
Triggered when the following conditions are met:
RSI crosses from above the DownLevel (default: 50) to below it, signaling increasing bearish momentum.
The close price is below the 50-period Simple Moving Average (SMA), confirming a downtrend.
The Sell Signal is plotted above the bar with a red arrow and a "SELL" label.
Stop Loss and Take Profit:
For long trades (buy signals), the stop loss is placed below the previous bar's low, and the take profit is set at 3% above the entry price.
For short trades (sell signals), the stop loss is placed above the previous bar's high, and the take profit is set at 3% below the entry price.
Dynamic Bar Coloring:
The bar colors change dynamically based on RSI levels:
Green Bars: Indicating a potential uptrend (bullish).
Red Bars: Indicating a potential downtrend (bearish).
These visual cues help traders quickly identify market trends and potential reversals.
Trend Filtering:
The 50-period Simple Moving Average (SMA) is used to filter trades based on the overall market trend:
Buy signals are only considered when the price is above the moving average, indicating an uptrend.
Sell signals are only considered when the price is below the moving average, indicating a downtrend.
Alerting System:
Alerts can be set for both buy and sell signals. These alerts notify traders in real-time when potential trades are generated, allowing them to act promptly.
Alerts can be configured to send notifications through email, SMS, or a webhook for integration with other services like IFTTT or Zapier.
Key Features:
RSI and Moving Average-Based Signals: Combines RSI with a moving average for more accurate trade signals.
Stop Loss and Take Profit: Dynamic risk management with custom stop loss and take profit levels based on previous high and low prices.
Buy and Sell Alerts: Provides real-time alerts when a buy or sell signal is triggered.
Trend Confirmation: Uses the 50-period Simple Moving Average to filter signals and confirm the direction of the trend.
Visual Bar Color Changes: Makes it easy to identify bullish or bearish trends with color-coded bars.
Usage:
This strategy is suitable for traders who prefer a trend-following approach and want to combine momentum indicators (RSI) with price action (Engulfing Candlestick patterns). It is particularly useful in volatile markets where quick identification of trend changes can lead to profitable trades.
Best Used For: Day trading, swing trading, and trend-following strategies.
Timeframes: Works well on various timeframes, from 1-minute charts for scalping to daily charts for swing trading.
Markets: Can be applied to any market with sufficient liquidity (stocks, forex, crypto, etc.).
Settings:
UpLevel: The RSI level above which the market is considered bullish (default: 50).
DownLevel: The RSI level below which the market is considered bearish (default: 50).
SMA Length: The period of the Simple Moving Average used to filter trades (default: 50).
Risk Management: Customizable stop loss and take profit settings based on price action (default: 3% above/below the entry price).
[Helper] Trade Journal TableThis indicator serves as a starting point for creating a customized trade journal that meets individual requirements. It provides a basic structure for visualizing trade data in table form which can be adapt to specific needs. The trade data must be maintained directly within the script using the Pine Editor.
Basic Structure:
The example table consists of six columns: Date, Entry Price, Exit Price, Profit/Loss (color-coded), Strategy, and Notes. It is displayed centrally on the chart and dynamically adjusts to the number of recorded trades.
Example Data:
To demonstrate its functionality, the indicator includes predefined example trades, which should be replaced with actual trading data. Additional information, such as strategies and notes, can be added to improve trade documentation.
P T Supertrend CustomPT Supertrend Custom Indicator Description
The PT Supertrend Custom indicator is a dual Supertrend-based tool designed to help traders identify market trends and potential reversals with enhanced accuracy. This custom indicator plots two Supertrend lines with different ATR (Average True Range) lengths and multipliers, providing a broader perspective on price movements across varying market conditions.
Key Features:
1. Dual Supertrend Lines:
- The indicator calculates two separate Supertrend values using customizable ATR lengths (default: 7 and 21) and factors (default: 3.0 for both).
- This dual-layered approach helps identify both short-term and long-term trends for better decision-making.
2. Customizable Parameters:
- ATR Length (ATR Length & ATR Length2): Determines the lookback period for volatility calculation.
- Factor (Factor & Factor2): Defines the multiplier for the ATR, controlling the sensitivity of the Supertrend lines.
3. Visual Trend Representation:
- Green and red line plots represent uptrends and downtrends, respectively.
- The indicator overlays on the price chart, offering a clear visual representation of trend direction.
- Trend fill areas provide additional clarity, with green shading for uptrends and red shading for downtrends.
4. Dynamic Trend Shifts:
- The indicator adapts dynamically based on price action, switching from an uptrend to a downtrend and vice versa when conditions change.
- Two independent trend signals allow traders to compare short-term and long-term trend confirmations.
5. Overlay on Price Chart:
- The indicator is plotted directly on the price chart for easy visualization without cluttering the workspace.
How to Use:
- Trend Identification:
- A green Supertrend line below price indicates an uptrend.
- A red Supertrend line above price signals a downtrend.
- When both Supertrends align, it indicates a strong trend; divergence may signal potential reversals.
- Entry & Exit Signals:
- Consider long positions when both Supertrend lines turn green.
- Consider short positions when both Supertrend lines turn red.
- Use the shorter ATR period for quicker entries and exits, while the longer ATR period provides confirmation.
- Risk Management:
- The Supertrend lines can serve as dynamic support/resistance levels for placing stop-loss orders.
Best Used In:
- Trend-following strategies
- Swing trading and day trading
- Volatile markets where ATR-based signals are effective
This indicator provides a comprehensive view of market trends by combining short- and long-term trend filters, making it a valuable tool for traders seeking precision and clarity in their trading decisions.
Created by Prince Thomas
Smooth Moving Average (SMA) MTF Trend PanelDescription:
The SMA MTF Trend Panel is a multi-timeframe (MTF) trend visualization tool designed to help traders quickly assess market conditions across multiple timeframes based on the Simple Moving Average (SMA). This script calculates the trend direction (Bullish, Bearish, or Neutral) and the trend strength percentage for each selected timeframe. It displays the information in an intuitive panel that is dynamically updated in real-time.
How It Works:
1. SMA Calculation:
• For each timeframe, the script calculates the SMA based on a user-defined length (default: 50).
2. Trend Identification:
• Compares the current price to the SMA and assigns a label: “Bull,” “Bear,” or “Neutral.”
3. Panel Display:
• Displays trends, strengths, and shifts for each timeframe in an interactive table.
4. Real-Time Updates:
• Continuously monitors price movements and updates the panel to reflect the latest data.
Customizable Inputs:
1. Panel Settings:
• Orientation: Choose vertical or horizontal layout.
• Position: Select panel location on the chart.
• Border Width/Color: Adjust panel borders for better visualization.
2. Trend Colors:
• Define custom colors for bullish, bearish, neutral, and shift conditions.
3. SMA Length:
• Adjust the SMA period to suit your trading style (e.g., short-term scalping or long-term trend following).
4. Timeframes:
• Set specific timeframes to analyze based on your trading strategy.
PT Least Squares Moving AveragePT LSMA Multi-Period Indicator
The PT Least Squares Moving Average (LSMA) Multi-Period Indicator is a powerful tool designed for investors who want to track market trends across multiple time horizons in a single, convenient indicator. This indicator calculates the LSMA for four different periods— 25 bars, 50 bars, 450 bars, and 500 bars providing a comprehensive view of short-term and long-term market movements.
Key Features:
- Multi-Timeframe Trend Analysis: Tracks both short-term (25 & 50 bars) and long-term (450 & 500 bars) market trends, helping investors make informed decisions.
- Smoothing Capability: The LSMA reduces noise by fitting a linear regression line to past price data, offering a clearer trend direction compared to traditional moving averages.
- One-Indicator Solution: Combines multiple LSMA periods into a single chart, reducing clutter and enhancing visual clarity.
- Versatile Applications: Suitable for trend identification, market timing, and spotting potential reversals across different timeframes.
- Customizable Styling: Allows users to customize colors and line styles for each period to suit their preferences.
How to Use:
1. Short-Term Trends (25 & 50 bars):Ideal for identifying recent price movements and short-term trade opportunities.
2. Long-Term Trends (450 & 500 bars): Helps investors gauge broader market sentiment and position themselves accordingly for longer holding periods.
3. Trend Confirmation: When shorter LSMA periods cross above longer ones, it may signal bullish momentum, whereas the opposite may indicate bearish sentiment.
4. Support and Resistance: The LSMA lines can act as dynamic support and resistance levels during trending markets.
Best For:
- Long-term investors looking to align their positions with dominant market trends.
- Swing traders seeking confirmation from multiple time horizons.
- Portfolio managers tracking price momentum across various investment durations.
This LSMA Multi-Period Indicator equips investors with a well-rounded perspective on price movements, offering a strategic edge in navigating market cycles with confidence.
Created by Prince Thomas
TRENDSYNC BUY/SELL BY SIMPLY_DANTE-FXTrendSync Buy and Sell Indicator
PS: Kindly give me feedback on the comment section, I will really appriciate
Created By: Simply_Dante-FX
About the Author:
Simply_Dante-FX is a skilled trader and developer with a focus on creating custom indicators and strategies for technical analysis. With a strong understanding of market behavior, he has designed the TrendSync Buy and Sell indicator to help traders identify high-probability buy and sell signals based on a combination of trend-following, momentum, and price action strategies. Simply_Dante-FX aims to provide tools that enhance trading decisions and improve the overall trading experience.
---
Description:
The TrendSync Buy and Sell indicator is designed to help traders identify potential buy and sell signals based on a combination of trend-following and momentum-based strategies. This custom indicator combines a range of technical tools, including the Simple Moving Average (SMA), Average True Range (ATR), and the Relative Strength Index (RSI), to filter and confirm entry points.
---
How It Works:
1. Trend Identification (SMA):
- The indicator uses the 200-period Simple Moving Average (SMA) to determine the overall trend direction.
- A Buy Signal is generated when the price is above the SMA, indicating an uptrend.
- A Sell Signal is generated when the price is below the SMA, indicating a downtrend.
2. Range Filtering (ATR):
- The Average True Range (ATR) is used to filter out signals that occur during periods of low volatility.
- The ATR is multiplied by a user-defined range filter multiplier (default is 1.2) to ensure the signal is coming from a sufficiently volatile market condition.
3. Momentum Confirmation (RSI):
- The RSI is used as a momentum filter. For Buy Signals, the RSI must be above the user-defined threshold (default is 50), indicating bullish momentum.
- For Sell Signals, the RSI must be below the opposite threshold (100 - RSI Threshold), indicating bearish momentum.
4.Price Action Conditions:
- Buy and Sell signals are further confirmed by price action:
- Buy Signal: Identifies higher lows during an uptrend.
- Sell Signal: Identifies higher highs during an uptrend, or lower highs in a downtrend.
5. Unified Signal:
- The script combines the various conditions to generate a unified signal, ensuring that only high-probability trade opportunities are highlighted.
How to Use It:
1.Buy Signal: Look for a green label below the bar, which indicates a potential buying opportunity. This signal is generated when:
- The price is above the 200-period SMA (uptrend).
- The RSI is above the defined threshold (momentum confirmation).
- The ATR-based range filter confirms sufficient market movement.
2. Sell Signal: Look for a red label above the bar, which indicates a potential selling opportunity. This signal is generated when:
- The price is below the 200-period SMA (downtrend).
- The RSI is below the defined threshold (momentum confirmation).
- The ATR-based range filter confirms sufficient market movement.
3. Visual Confirmation: The script also plots the 200-period SMA for easy identification of the overall trend direction.
4.Alert Setup: You can set up an alert using the “Unified Buy/Sell Alert” condition to notify you when a buy or sell signal is triggered.
Disclaimer:
- Risk Warning: The TrendSync Buy and Sell indicator is a tool for technical analysis and is not a guaranteed method for predicting market movements. Trading carries risk, and it is essential to use proper risk management techniques and not rely solely on any one indicator.
- No Financial Advice: This indicator does not constitute financial advice, and the author, Simply_Dante-FX, does not take responsibility for any trading losses or profits resulting from the use of this tool.
- Performance: Past performance is not indicative of future results. Always conduct your own analysis and use additional tools and strategies to confirm trade decisions.
Use this indicator with caution, and always ensure that you understand the risks involved in trading before committing real capital.
Tandem EMA TrendsThis indicator helps to identify trends using 2 (tandem) EMAs: a fast EMA and a slow EMA. Set the lengths of the EMAs in the inputs (fast EMA should be a smaller number than the slow EMA).
The trend is bullish if the current value of the fast EMA > current value of the slow EMA AND the current value of the fast EMA > the prior bar's value of the fast EMA.
The trend is bearish if the current value of the fast EMA < current value of the slow EMA AND the current value of the fast EMA < the prior bar's value of the fast EMA.
The fast EMA is countertrend to the slow EMA if either of the following 2 conditions exist:
The current value of the fast EMA > current value of the slow EMA AND the current value of the fast EMA < the prior bar's value of the fast EMA (bullish countertrend).
-OR-
The current value of the fast EMA < current value of the slow EMA AND the current value of the fast EMA > the prior bar's value of the fast EMA (bearish countertrend).
Use this script to set custom alerts based off of the current trend like sending webhooks when specific conditions exist.
Customize the colors of the plots.
Trend with ADX/EMA - Buy & Sell SignalsThis script is designed to help traders make buy and sell decisions based on trend analysis using two key methods: ADX (Average Directional Index) and EMA (Exponential Moving Averages). Here's a breakdown in simple terms:
What Does It Do?
Identifies the Trend's Strength and Direction:
Uses the ADX indicator to determine how strong the trend is.
Compares two lines (DI+ and DI−) to identify whether the trend is moving up or down.
Generates Buy and Sell Signals:
Uses two EMAs (a fast one and a slow one) to check when the price crosses key levels, signaling a possible buy or sell opportunity.
Plots visual indicators (arrows and labels) for easy interpretation.
Color-Codes the Chart:
Highlights the background in green when the trend is bullish (uptrend).
Highlights the background in red when the trend is bearish (downtrend).
Alerts the User:
Creates alerts when specific conditions for buying or selling are met.
Key Components:
1. ADX (Trend Strength & Direction)
What is ADX?
ADX measures how strong the trend is (not the direction). Higher ADX means a stronger trend.
It also calculates two lines:
DI+: Measures upward movement strength.
DI−: Measures downward movement strength.
How It Works in the Script:
If DI+ is greater than DI−, it’s a bullish trend (upward).
If DI− is greater than DI+, it’s a bearish trend (downward).
The background turns green for an uptrend and red for a downtrend.
2. EMA (Buy and Sell Decisions)
What is EMA?
EMA is a moving average that gives more weight to recent prices. It’s used to smooth out price fluctuations.
How It Works in the Script:
The script calculates two EMAs:
Fast EMA (short-term average): Reacts quickly to price changes.
Slow EMA (long-term average): Reacts slower and shows overall trends.
When the Fast EMA crosses above the Slow EMA, it’s a signal to Buy.
When the Fast EMA crosses below the Slow EMA, it’s a signal to Sell.
These signals are marked on the chart as "Buy" and "Sell" labels.
3. Buy and Sell Alerts
The script sets up alerts for the user:
Buy Alert: When a crossover indicates a bullish signal.
Sell Alert: When a crossunder indicates a bearish signal.
Visual Elements on the Chart:
Background Colors:
Green: When the DI+ line indicates an uptrend.
Red: When the DI− line indicates a downtrend.
EMA Lines:
Green Line: Fast EMA.
Red Line: Slow EMA.
Buy/Sell Labels:
"Buy" label: Shown when the Fast EMA crosses above the Slow EMA.
"Sell" label: Shown when the Fast EMA crosses below the Slow EMA.
Why Use This Script?
Trend Analysis: Helps you quickly identify the strength and direction of the market trend.
Buy/Sell Signals: Gives clear signals to enter or exit trades based on trend and EMA crossovers.
Custom Alerts: Ensures you never miss a trading opportunity by notifying you when conditions are met.
Visual Simplicity: Makes it easy to interpret trading signals with color-coded backgrounds and labeled arrows.
Timeframe-Based Dynamic MA [odnac]
This code is a Timeframe-Based Dynamic MA indicator, written in Pine Script, that dynamically calculates and displays the Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Moving Average (VWMA) based on a 24-hour period, according to the selected timeframe. It automatically adjusts the length of the moving averages for each timeframe, showing the appropriate value optimized for that specific timeframe.
Code Explanation:
Settings:
inputLength: A user input that allows setting the base time (24 hours by default). This value determines the reference for calculating the length of the moving averages according to the timeframe.
transp: A setting for the transparency of the moving average lines. It can accept values from 0 to 100 (0 is opaque, 100 is fully transparent).
Timeframe-Based Moving Average Calculation:
The length variable is dynamically calculated based on the current chart's timeframe.
For shorter timeframes like 1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, and 45-minute, the length is calculated by multiplying 60 / selected timeframe to obtain the moving average length based on a 24-hour period.
For longer timeframes like 1 hour, 4 hours, and 1 day, fixed values are used to set the moving average length.
Moving Average Calculation:
sma, ema, vwma: These are the Simple Moving Average, Exponential Moving Average, and Volume Weighted Moving Average calculated based on the length.
else_sma, else_ema, else_vwma: These represent the moving averages fetched from the 1-hour chart. For timeframes that are not calculated directly, the values are taken from the 1-hour chart.
Displaying the Moving Averages:
The moving averages are plotted according to the length calculated for the current timeframe.
If the length for the current timeframe is valid, the corresponding SMA, EMA, and VWMA values are displayed. Otherwise, the values fetched from the 1-hour chart are used.
The moving averages are displayed with the transparency (transp) value set by the user, controlling their opacity on the chart.
How to Use:
Base Time: The user sets a base time. For example, setting inputLength to 24 will calculate the moving average length based on a 24-hour period, which will be dynamically adjusted and displayed according to the selected timeframe.
Transparency Setting: The transparency of the moving average lines can be adjusted using the transp value.
Supported Timeframes:
For shorter timeframes (1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, 45-minute), the moving average lengths are dynamically calculated and displayed.
For longer timeframes (1 hour, 4 hours, 1 day), fixed length values are used.
This indicator allows you to dynamically calculate daily moving averages across different timeframes and visually check which moving average is the most appropriate for the selected timeframe.
Vertical & Open Lines - Yearly [MsF]Yearly Vertical & Open Lines Indicator
This indicator helps traders visualize yearly boundaries and track previous year's price levels. It draws:
- Vertical lines at the start of each year
- Horizontal lines showing previous year's open and close prices
- Optional labels with price information
Features:
- Customizable line colors and styles
- Toggle yearly vertical lines
- Show/hide previous year's price levels
- Optional price labels
- Next year line preview
Usage:
1. Add indicator to your chart
2. Adjust Base Time to match your market's yearly reset time
3. Customize colors and styles using input options
4. Toggle features as needed