[3Commas] Turtle StrategyTurtle Strategy
🔷 What it does: This indicator implements a modernized version of the Turtle Trading Strategy, designed for trend-following and automated trading with webhook integration. It identifies breakout opportunities using Donchian channels, providing entry and exit signals.
Channel 1: Detects short-term breakouts using the highest highs and lowest lows over a set period (default 20).
Channel 2: Acts as a confirmation filter by applying an offset to the same period, reducing false signals.
Exit Channel: Functions as a dynamic stop-loss (wait for candle close), adjusting based on market structure (default 10 periods).
Additionally, traders can enable a fixed Take Profit level, ensuring a systematic approach to profit-taking.
🔷 Who is it for:
Trend Traders: Those looking to capture long-term market moves.
Bot Users: Traders seeking to automate entries and exits with bot integration.
Rule-Based Traders: Operators who prefer a structured, systematic trading approach.
🔷 How does it work: The strategy generates buy and sell signals using a dual-channel confirmation system.
Long Entry: A buy signal is generated when the close price crosses above the previous high of Channel 1 and is confirmed by Channel 2.
Short Entry: A sell signal occurs when the close price falls below the previous low of Channel 1, with confirmation from Channel 2.
Exit Management: The Exit Channel acts as a trailing stop, dynamically adjusting to price movements. To exit the trade, wait for a full bar close.
Optional Take Profit (%): Closes trades at a predefined %.
🔷 Why it’s unique:
Modern Adaptation: Updates the classic Turtle Trading Strategy, with the possibility of using a second channel with an offset to filter the signals.
Dynamic Risk Management: Utilizes a trailing Exit Channel to help protect gains as trades move favorably.
Bot Integration: Automates trade execution through direct JSON signal communication with your DCA Bots.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: Best suited for trending markets; higher timeframes (e.g., H4, D1) are recommended to minimize noise.
Sideways Markets: In choppy conditions, breakouts may lead to false signals—consider using additional filters.
Backtesting & Demo Testing: It is crucial to thoroughly backtest the strategy and run it on a demo account before risking real capital.
Parameter Adjustments: Ensure that commissions, slippage, and position sizes are set accurately to reflect real trading conditions.
🔷 STRATEGY PROPERTIES
Symbol: BINANCE:ETHUSDT (Spot).
Timeframe: 4h.
Test Period: All historical data available.
Initial Capital: 10000 USDT.
Order Size per Trade: 1% of Capital, you can use a higher value e.g. 5%, be cautious that the Max Drawdown does not exceed 10%, as it would indicate a very risky trading approach.
Commission: Binance commission 0.1%, adjust according to the exchange being used, lower numbers will generate unrealistic results. By using low values e.g. 5%, it allows us to adapt over time and check the functioning of the strategy.
Slippage: 5 ticks, for pairs with low liquidity or very large orders, this number should be increased as the order may not be filled at the desired level.
Margin for Long and Short Positions: 100%.
Indicator Settings: Default Configuration.
Period Channel 1: 20.
Period Channel 2: 20.
Period Channel 2 Offset: 20.
Period Exit: 10.
Take Profit %: Disable.
Strategy: Long & Short.
🔷 STRATEGY RESULTS
⚠️Remember, past results do not guarantee future performance.
Net Profit: +516.87 USDT (+5.17%).
Max Drawdown: -100.28 USDT (-0.95%).
Total Closed Trades: 281.
Percent Profitable: 40.21%.
Profit Factor: 1.704.
Average Trade: +1.84 USDT (+1.80%).
Average # Bars in Trades: 29.
🔷 How to Use It:
🔸 Adjust Settings:
Select your asset and timeframe suited for trend trading.
Adjust the periods for Channel 1, Channel 2, and the Exit Channel to align with the asset’s historical behavior. You can visualize these channels by going to the Style tab and enabling them.
For example, if you set Channel 2 to 40 with an offset of 40, signals will take longer to appear but will aim for a more defined trend.
Experiment with different values, a possible exit configuration is using 20 as well. Compare the results and adjust accordingly.
Enable the Take Profit (%) option if needed.
🔸Results Review:
It is important to check the Max Drawdown. This value should ideally not exceed 10% of your capital. Consider adjusting the trade size to ensure this threshold is not surpassed.
Remember to include the correct values for commission and slippage according to the symbol and exchange where you are conducting the tests. Otherwise, the results will not be realistic.
If you are satisfied with the results, you may consider automating your trades. However, it is strongly recommended to use a small amount of capital or a demo account to test proper execution before committing real funds.
🔸Create alerts to trigger the DCA Bot:
Verify Messages: Ensure the message matches the one specified by the DCA Bot.
Multi-Pair Configuration: For multi-pair setups, enable the option to add the symbol in the correct format.
Signal Settings: Enable the option to receive long or short signals (Entry | TP | SL), copy and paste the messages for the DCA Bots configured.
Alert Setup:
When creating an alert, set the condition to the indicator and choose "alert() function call only".
Enter any desired Alert Name.
Open the Notifications tab, enable Webhook URL, and paste the Webhook URL.
For more details, refer to the section: "How to use TradingView Custom Signals".
Finalize Alerts: Click Create, you're done! Alerts will now be sent automatically in the correct format.
🔷 INDICATOR SETTINGS
Period Channel 1: Period of highs and lows to trigger signals
Period Channel 2: Period of highs and lows to filter signals
Offset: Move Channel 2 to the right x bars to try to filter out the favorable signals.
Period Exit: It is the period of the Donchian channel that is used as trailing for the exits.
Strategy: Order Type direction in which trades are executed.
Take Profit %: When activated, the entered value will be used as the Take Profit in percentage from the entry price level.
Use Custom Test Period: When enabled signals only works in the selected time window. If disabled it will use all historical data available on the chart.
Test Start and End: Once the Custom Test Period is enabled, here you select the start and end date that you want to analyze.
Check Messages: Check Messages: Enable this option to review the messages that will be sent to the bot.
Entry | TP | SL: Enable this options to send Buy Entry, Take Profit (TP), and Stop Loss (SL) signals.
Deal Entry and Deal Exit: Copy and paste the message for the deal start signal and close order at Market Price of the DCA Bot. This is the message that will be sent with the alert to the Bot, you must verify that it is the same as the bot so that it can process properly.
DCA Bot Multi-Pair: You must activate it if you want to use the signals in a DCA Bot Multi-pair in the text box you must enter (using the correct format) the symbol in which you are creating the alert, you can check the format of each symbol when you create the bot.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.
Analisis Trend
Strategy SuperTrend SDI WebhookThis Pine Script™ strategy is designed for automated trading in TradingView. It combines the SuperTrend indicator and Smoothed Directional Indicator (SDI) to generate buy and sell signals, with additional risk management features like stop loss, take profit, and trailing stop. The script also includes settings for leverage trading, equity-based position sizing, and webhook integration.
Key Features
1. Date-based Trade Execution
The strategy is active only between the start and end dates set by the user.
times ensures that trades occur only within this predefined time range.
2. Position Sizing and Leverage
Uses leverage trading to adjust position size dynamically based on initial equity.
The user can set leverage (leverage) and percentage of equity (usdprcnt).
The position size is calculated dynamically (initial_capital) based on account performance.
3. Take Profit, Stop Loss, and Trailing Stop
Take Profit (tp): Defines the target profit percentage.
Stop Loss (sl): Defines the maximum allowable loss per trade.
Trailing Stop (tr): Adjusts dynamically based on trade performance to lock in profits.
4. SuperTrend Indicator
SuperTrend (ta.supertrend) is used to determine the market trend.
If the price is above the SuperTrend line, it indicates an uptrend (bullish).
If the price is below the SuperTrend line, it signals a downtrend (bearish).
Plots visual indicators (green/red lines and circles) to show trend changes.
5. Smoothed Directional Indicator (SDI)
SDI helps to identify trend strength and momentum.
It calculates +DI (bullish strength) and -DI (bearish strength).
If +DI is higher than -DI, the market is considered bullish.
If -DI is higher than +DI, the market is considered bearish.
The background color changes based on the SDI signal.
6. Buy & Sell Conditions
Long Entry (Buy) Conditions:
SDI confirms an uptrend (+DI > -DI).
SuperTrend confirms an uptrend (price crosses above the SuperTrend line).
Short Entry (Sell) Conditions:
SDI confirms a downtrend (+DI < -DI).
SuperTrend confirms a downtrend (price crosses below the SuperTrend line).
Optionally, trades can be filtered using crossovers (occrs option).
7. Trade Execution and Exits
Market entries:
Long (strategy.entry("Long")) when conditions match.
Short (strategy.entry("Short")) when bearish conditions are met.
Trade exits:
Uses predefined take profit, stop loss, and trailing stop levels.
Positions are closed if the strategy is out of the valid time range.
Usage
Automated Trading Strategy:
Can be integrated with webhooks for automated execution on supported trading platforms.
Trend-Following Strategy:
Uses SuperTrend & SDI to identify trend direction and strength.
Risk-Managed Leverage Trading:
Supports position sizing, stop losses, and trailing stops.
Backtesting & Optimization:
Can be used for historical performance analysis before deploying live.
Conclusion
This strategy is suitable for traders who want to automate their trading using SuperTrend and SDI indicators. It incorporates risk management tools like stop loss, take profit, and trailing stop, making it adaptable for leverage trading. Traders can customize settings, conduct backtests, and integrate it with webhooks for real-time trade execution. 🚀
Important Note:
This script is provided for educational and template purposes and does not constitute financial advice. Traders and investors should conduct their research and analysis before making any trading decisions.
Ivan Gomes StrategyIG Signals+ - Ivan Gomes Strategy
This script is designed for scalping and binary options trading, generating buy and sell signals at the beginning of each candle. Although it is mainly optimized for short-term operations, it can also be used for medium and long-term strategies with appropriate adjustments.
How It Works
• The indicator provides buy or sell signals at the start of the candle, based on a statistical probability of candle patterns, depending on the timeframe.
• It is essential to enter the trade immediately after the signal appears and exit at the end of the same candle.
• If the first operation results in a loss (Loss), the script will send another trade signal at the start of the next candle. However, if the first trade results in a win (Gain), no new signal will be generated.
• The signals follow cycles of 3 candles, regardless of the timeframe. However, if a Doji candle appears, the cycle is interrupted, and no signals will be generated until the next valid cycle starts.
• The strategy consists of up to two trades per cycle: if the first trade is not successful, the second trade serves as an additional attempt to recover.
Key Points to Consider
1. Avoid trading in sideways markets – If price levels do not fluctuate significantly, the accuracy of the signals may decrease.
2. Trade in the direction of the trend – Using Ichimoku clouds or other trend indicators can help confirm trend direction and improve signal reliability. If the market is in an uptrend (bullish trend) and the indicator generates a sell signal, the most prudent decision would be to wait for a buy signal that aligns with the main trend. The same applies to downtrends, where buy signals may be riskier.
These decisions should be based on chart reading and supported by other technical analysis tools, such as support and resistance levels, which indicate zones where price might face obstacles or reverse direction. Additionally, Fibonacci retracement levels can help identify possible pullback points within a trend. Moving averages are also useful for visualizing the general market direction and confirming whether an indicator signal aligns with the overall price structure. Combining these tools can increase trade accuracy and prevent unnecessary trades against the main trend, reducing risks.
3. Works based on probability statistics – The algorithm analyzes candle formations and their statistical probabilities depending on the timeframe to optimize trade entries.
4. Best suited for scalping and binary options – This strategy performs best in 1-minute and 5-minute timeframes, allowing for multiple trades throughout the day.
Technical Details
• The script detects the candle cycle and assigns an index to each candle to identify patterns and possible reversals.
• It recognizes reference candles, stores their colors, and compares them with subsequent candles to determine if a signal should be triggered.
• Doji candle rules are implemented to avoid false signals in indecisive market conditions. When a Doji appears, the script does not generate signals for that cycle.
• The indicator displays visual alerts and notifications, ensuring fast execution of trades.
Disclaimer
The IG Signals+ indicator was created to assist traders who struggle to analyze the market by providing objective trade signals. However, no strategy is foolproof, and this script does not guarantee profits.
Trading involves significant financial risk, and users should test it in a demo account before trading with real money. Proper risk management is crucial for long-term success.
MainFX session indicatorScript Title: MainFX Session Indicator with Customizable Lines
Overview:
This script is designed to help traders visually identify key market sessions on their TradingView charts. It marks both the opening and closing of major sessions (Frankfurt, London, New York, Sydney, and Tokyo) by drawing lines and labels on the chart. The indicator is highly customizable, allowing you to define specific session times, choose your preferred time zone, and adjust the visual appearance of all lines.
Key Features:
Custom Session Times:
Each session’s start and end times are defined by user inputs in a simple HHMM-HHMM format. This means you can adjust the sessions to match the exact market hours you follow, making the indicator flexible for different trading strategies and markets.
Time Zone Flexibility:
The "Chart/Local Time Zone" input lets you override the default time zone of your chart. By setting a specific time zone (e.g., "Africa/Lagos" or "Africa/Accra"), the script calculates session start and end events relative to that zone. This ensures that, regardless of where you are trading from, the session markers accurately reflect the intended market hours and adjust automatically for Daylight Saving Time if applicable.
Open Range Levels (ORH/ORL):
When a session opens or closes, the script draws horizontal lines at the high and low of the candle immediately before the event. These levels act as the Open Range High (ORH) and Open Range Low (ORL) markers. They serve as key reference points for traders to gauge price levels established just before a session change.
Customizable Visuals:
Every visual element is customizable. You can adjust the color, width, and style (defaulting to a dotted line) of both the ORH/ORL lines and the combined session lines that label open and close events. This allows you to tailor the indicator to match your charting style and ensure that the lines stand out clearly.
Session Event Detection:
The script utilizes helper functions to check each bar on the chart. It compares the current bar’s session status with that of the previous bar to determine whether a session has just started or ended. When such a transition is detected, it triggers the drawing of the appropriate lines and labels.
Optimized for Intraday Trading:
Since the script’s functionality is based on minute-level bar changes, it is best used on 1-minute or lower timeframes. This ensures precision in marking the exact moments when sessions transition, which is critical for intraday trading strategies.
How It Works:
Session Timing:
The script calculates the session periods using the time() function with the user-defined session strings and time zone. This makes it independent of the chart’s inherent time settings.
Event Triggering:
When the current bar transitions into or out of a session (i.e., the session status changes between bars), the script detects this change. It then draws horizontal lines at the previous candle’s high and low (marking ORH and ORL) and adds session labels for clarity.
Visual Customization:
Users can easily change the appearance of the drawn lines and session labels via the script’s input options, ensuring that the indicators are both aesthetically pleasing and functionally clear.
Usage:
For Traders:
Use this indicator to keep track of critical market sessions and to spot participants in the session.
Customization:
Adjust session times and the time zone to suit your local market or the specific market you are analyzing.
Visual Clarity:
Customize line styles to ensure that your chart remains clear and that the session markers are easy to interpret even during overlapping sessions.
On-Chain Momentum | QuantumResearch QuantumResearch On-Chain Momentum Indicator
The On-Chain Momentum Indicator is a unique macro-market analysis tool that aggregates multiple on-chain signals to provide insights into Bitcoin’s fundamental market trends. By leveraging real-time on-chain metrics, this indicator helps traders and investors gauge market momentum, capital flows, and potential trend shifts. 🚀📊
⚠️ This script is manually updated to ensure that the latest on-chain data is accurately reflected. The underlying data is extracted from a Google Spreadsheet that tracks various on-chain indicators.
1. Data Sources & Methodology
This indicator consolidates four major on-chain categories, each derived from multiple fundamental Bitcoin metrics:
📌 On-Chain Activity
Miner Revenue Momentum
Exchange Inflow Momentum
📌 Market Profitability
Supply in Profit Momentum
MVRV Momentum
AVIV Momentum
STH-MVRV Momentum
📌 Spending Behavior
SOPR Momentum
Realized Profit/Loss Ratio Momentum
📌 Wealth Distribution
SLRV Ribbons Momentum
Data Extraction Process:
The raw on-chain data is processed and aggregated within a Google Spreadsheet, which applies momentum calculations to each metric.
The results are then manually updated in this script to ensure an accurate reflection of on-chain trends.
The script assigns a momentum value (+1 for bullish, -1 for bearish) based on pre-defined historical trend patterns.
2. How It Works
A. On-Chain Market Regimes
The script analyzes historical on-chain behavior to determine whether the market is in a bullish or bearish phase.
Each major transition is manually updated based on on-chain macro shifts.
Market phases are categorized based on miner revenue, exchange flows, profitability, spending behavior, and wealth distribution trends.
B. Trend Identification & Signal Generation
Bullish Trend: If on-chain momentum metrics confirm strong accumulation behavior, the indicator turns green (Long). ✅
Bearish Trend: If on-chain momentum suggests distribution or capitulation, the indicator turns red (Short). ❌
Neutral Phase: If on-chain activity is mixed or inconclusive, the indicator remains gray (No clear signal). ⚪
C. Manually Updated On-Chain Data Integration
Unlike standard automated indicators, this script requires periodic manual updates to incorporate the most recent on-chain data.
This ensures that the indicator remains aligned with the latest fundamental trends.
The historical momentum shifts are carefully mapped based on previous on-chain cycles.
3. Visual Representation
A. Color-Coded Momentum Signals
Green Bars: Strong positive on-chain momentum 🟢
Blue Bars: Weak or negative on-chain momentum 🔴
B. Time-Based Macro Shifts
Each major historical period is defined based on key on-chain shifts.
The script provides clear visual segmentation of past macro-regimes.
C. Trend-Based Alerts
Long Signal: When on-chain data turns strongly bullish.
Short Signal: When on-chain data turns bearish.
Alerts notify traders when a new macro cycle begins based on updated data. 🔔
4. Customization & Parameters
Color Modes: 8 different visualization styles for enhanced clarity.
Historical Market Phases: Adjustments are made based on historical on-chain macro trends.
Manual Updates: Data is updated in accordance with key on-chain developments.
5. Trading & Investing Applications
📊 Best Used For:
Long-Term Market Analysis – Helps investors identify Bitcoin market cycles.
Trend Confirmation – Serves as an additional confluence factor for technical setups.
Macro Risk Management – Provides a big-picture perspective on market structure.
⚠️ Disclaimer: While on-chain metrics provide valuable insights, no single indicator should be used in isolation. Traders and investors should combine this with other macroeconomic, technical, and fundamental analysis tools.
6. Final Thoughts
The On-Chain Momentum Indicator provides a clear, structured view of Bitcoin’s macroeconomic health.
By combining key on-chain metrics, traders can identify significant market transitions with improved clarity.
This script is manually updated to ensure it remains aligned with the latest on-chain trends.
While this tool is highly effective for macro analysis, it should be used as part of a comprehensive trading/investing strategy.
AntoQQE - HistogramThis script displays a QQE-based momentum histogram, derived from the RSI line’s deviation around a neutral 50 level. It uses a smoothed RSI, monitors volatility with a dynamically adjusted multiplier, and then plots a color-coded histogram that helps traders see when the RSI is entering strong bullish or bearish territory:
• Smoothed RSI Calculation
The script calculates RSI for a user-defined period and then smooths it with an EMA. This reduces noise in the indicator’s readings.
• Dynamic Average Range (DAR)
The script computes volatility by taking the absolute change of the smoothed RSI, applying two EMAs, and multiplying by a QQE factor. This produces a band around the RSI that adapts to changes in market volatility.
• Histogram Centering and Thresholds
Rather than plotting the RSI itself, the script subtracts 50 from the RSI to center it around zero. Columns are plotted for each bar:
Blue when momentum is significantly above zero (over a threshold value).
Red when momentum is significantly below zero (under a negative threshold).
Gray when momentum is within a neutral range.
• Usage
By observing when columns turn blue or red—and how far they extend above or below zero—traders can quickly gauge the market’s momentum. The horizontal threshold lines (dashed by default) provide clear breakout levels for bullish or bearish conditions, which can help confirm entries or exits based on shifting market sentiment. It is best paired with the AntoQQE - Bars indicator for better chart visualization.
AntoQQE - BarsThis script is a variation on the QQE (Quantitative Qualitative Estimation) concept applied to RSI. It calculates a smoothed RSI line, then determines a “Dynamic Average Range” around that line. By tracking the RSI’s movement relative to these upper (shortBand) and lower (longBand) levels, it determines when price momentum shifts enough to suggest a possible trend flip. The script plots color-coded candles based on these momentum conditions:
• RSI Calculation and Smoothing
An RSI value is obtained over a specified period, then smoothed by an EMA. This smoothed RSI serves as the core measure of momentum.
• Dynamic Average Range (DAR)
The script computes the volatility of the smoothed RSI using two EMAs of its bar-to-bar movements. It multiplies this volatility factor by a QQE multiplier to create upper and lower bands that adapt to changes in RSI volatility.
• Trend Flips
When the smoothed RSI crosses above or below its previous band level (shortBand or longBand), the script interprets this as a shift in momentum and sets a trend state accordingly (long or short).
• Candle Coloring
Finally, the script colors each candle according to how far the smoothed RSI is from a neutral baseline of 50:
Candles turn green when the RSI is sufficiently above 50, suggesting bullish momentum.
Candles turn red when the RSI is sufficiently below 50, indicating bearish momentum.
Candles turn orange when they are near the 50 level, reflecting a more neutral or transitional phase.
Traders can use these colored candles to quickly see when the RSI’s momentum has moved into overbought/oversold zones—or is shifting between bullish and bearish conditions—without needing to consult a separate oscillator window. The adaptive nature of the band calculations can help in spotting significant shifts in market sentiment and volatility.
Autocorrelation Price Forecasting [The Quant Science]Discover how to predict future price movements using autocorrelation and linear regression models to identify potential trading opportunities.
An advanced model to predict future price movements using autocorrelation and linear regression. This script helps identify recurring market cycles and calculates potential gains, with clear visual signals for quick and informed decisions.
Main function
This script leverages an autocorrelation model to estimate the future price of an asset based on historical price relationships. It also integrates linear regression on percentage returns to provide more accurate predictions of price movements.
Insights types
1) Red label on a green candle: Bearish forecast and swing trading opportunity.
2) Red label on a red candle: Bearish forecast and trend-following opportunity.
3) Green label on a red candle: Bullish forecast and swing trading opportunity.
4) Green label on a green candle: Bullish forecast and trend-following opportunity.
IMPORTANT!
The indicator displays a future price forecast. When negative, it estimates a future price drop.
When positive, it estimates a future price increase.
Key Features
Customizable inputs
Analysis Length: number of historical bars used for autocorrelation calculation. Adjustable between 1 and 200.
Forecast Colors: customize colors for bullish and bearish signals.
Visual insights
Labels: hypothetical gains or losses are displayed as labels above or below the bars.
Dynamic coloring: bullish (green) and bearish (red) signals are highlighted directly on the chart.
Forecast line: A continuous line is plotted to represent the estimated future price values.
Practical applications
Short-term Trading: identify repetitive market cycles to anticipate future movements.
Visual Decision-making: colored signals and labels make it easier to visualize potential profit or loss for each trade.
Advanced Customization: adjust the data length and colors to tailor the indicator to your strategies.
Limitations
Prediction price models have some limitations. Trading decisions should be made with caution, considering additional market factors and risk management strategies.
Bayesian TrendEnglish Description (primary)
1. Overview
This script implements a Naive Bayesian classifier to estimate the probability of an upcoming bullish, bearish, or neutral move. It combines multiple indicators—RSI, MACD histogram, EMA price difference in ATR units, ATR level vs. its average, and Volume vs. its average—to calculate likelihoods for each market direction. Each indicator is “binned” (categorized into discrete zones) and assigned conditional probabilities for bullish/bearish/neutral scenarios. The script then normalizes these probabilities and paints bars in green if bullish is most likely, red if bearish is most likely, or blue if neutral is most likely. A small table is also displayed in the top-right corner of the chart, showing real-time probabilities.
2. How it works
Indicator Calculations: The script calculates RSI, MACD (line and histogram), EMA, ATR, and Volume metrics.
Binning: Each metric is converted into a discrete category (e.g., low, medium, high). For example, RSI < 30 is binned as “low,” while RSI > 70 is binned as “high.”
Conditional Probabilities: User-defined tables specify the conditional probabilities of each bin under three hypotheses (Up, Down, Neutral).
Naive Bayesian Formula: The script multiplies the relevant conditional probabilities, normalizes them, and derives the final probabilities (Up, Down, or Neutral).
Visualization:
Bar Colors: Bars are green when the Up probability exceeds 50%, red for Down, and blue otherwise.
Table: Displays numeric probabilities of Up, Down, and Neutral in percentage terms.
3. How to use it
Add the script to your chart.
Observe the colored bars:
Green suggests a higher probability for bullish movement.
Red suggests a higher probability for bearish movement.
Blue indicates a higher probability of sideways or uncertain conditions.
Check the table in the top-right corner to see exact probabilities (Up/Down/Neutral).
Use the input settings to adjust thresholds (RSI, MACD, Volume, etc.), define alert conditions (e.g., when Up probability crosses 50%), and decide whether to trigger alerts on bar close or in real-time.
4. Originality and usefulness
Originality: This script uniquely applies a Naive Bayesian approach to a blend of classic and volume-based indicators. It demonstrates how different indicator “zones” can be combined to produce probabilistic insights.
Usefulness: Traders can interpret the probability breakdown to gauge the script’s bias. Unlike single indicators, this approach synthesizes several signals, potentially offering a more holistic perspective on market conditions.
5. Limitations
The conditional probabilities are manually assigned and may not reflect actual market behavior across all instruments or timeframes.
Results depend on the user’s choice of thresholds and indicator settings.
Like any indicator, past performance does not guarantee future results. Always confirm signals with additional analysis.
6. Disclaimer
This script is intended for educational and informational purposes only. It does not constitute financial advice. Trading involves significant risk, and you should make decisions based on your own analysis. Neither the script’s author nor TradingView is liable for any financial losses.
Русское описание (Russian translation, optional)
Этот индикатор реализует наивный Байесовский классификатор для оценки вероятности предстоящего роста (Up), падения (Down) или бокового движения (Neutral). Он комбинирует несколько индикаторов—RSI, гистограмму MACD, разницу цены и EMA в единицах ATR, уровень ATR относительно своего среднего значения и объём относительно своего среднего—чтобы вычислить вероятности для каждого направления рынка. Каждый индикатор делится на «зоны» (low, mid, high), которым приписаны условные вероятности для бычьего/медвежьего/нейтрального исхода. Скрипт нормирует эти вероятности и раскрашивает бары в зелёный, красный или синий цвет в зависимости от того, какая вероятность выше. Также в правом верхнем углу отображается таблица с текущими значениями вероятностей.
Pearson OscillatorThe Pearson Oscillator is a custom TradingView indicator that leverages statistical correlation analysis to gauge the trend strength of a given price series. By calculating the Pearson correlation coefficient between time (as an index) and price over a user-defined period, the indicator provides traders with an insight into how strongly the market is trending or oscillating.
──────────────────────────────
Key Features
- User-Defined Parameters:
– Set the calculation length, price source, and smoothing period.
– Adjust upper and lower threshold levels to suit your trading strategy.
– Customize color settings for increasing, decreasing, and neutral conditions.
- Dynamic Trend Analysis:
– Computes the Pearson correlation coefficient to measure the relationship between time and price.
– Applies a simple moving average to smooth out fluctuations in the coefficient, offering a more stable reading.
- Visual Representation:
– Plots the smoothed Pearson coefficient as a continuous line.
– Displays a histogram showing the variation (first derivative) of the coefficient to highlight changes in trend strength.
– Draws horizontal reference lines at the specified upper and lower thresholds as well as at the zero level for quick visual assessment.
- Alerts and Dynamic Labeling:
– Automatically triggers alerts when the smoothed Pearson coefficient crosses the predefined threshold levels, so you never miss a potential market turning point.
– Generates a dynamic label on the last bar that displays important statistical information, including:
- The current Pearson coefficient (rounded to three decimals).
- A classification of correlation strength (e.g., STRONG, MEDIUM, WEAK, NEUTRAL) based on the absolute value of the coefficient.
- The trend direction (Upward, Downward, or Stable).
- The delta of the coefficient, offering insight into how quickly the trend is evolving.
──────────────────────────────
How It Works
1. Calculation of the Pearson Coefficient:
- A custom function iterates over a specified number of price bars, summing time indices, price values, and their squared and cross-products.
- Using the Pearson correlation formula, it computes a coefficient that ranges between -1 and 1—values close to ±1 indicate a strong trend or linear relationship, while values near 0 suggest a weak or non-existent trend.
2. Smoothing Process:
- The raw Pearson coefficient is then smoothed using a simple moving average (SMA) to reduce noise and provide a clearer view of the underlying trend.
3. Delta (Variation) Computation:
- The script calculates the change (delta) between the current smoothed coefficient and its value on the previous bar.
- This derivative is plotted as a histogram, signaling the speed at which the correlation (and thus the trend) is changing.
4. Visual and Alert Mechanisms:
- The smoothed coefficient and its delta are plotted with colors that dynamically update to reflect increasing or decreasing trends.
- Horizontal lines set at user-defined thresholds help to quickly identify overbought or oversold (or extreme correlation) scenarios.
- Alerts are defined to notify you when the smoothed coefficient crosses these key levels, ensuring timely trade decisions.
5. Dynamic Label:
- At the last bar, a dynamic label is created displaying the current Pearson value, its strength, the direction of the trend, and the delta.
- This quick snapshot helps traders assess the market condition at a glance without diving into detailed analysis.
──────────────────────────────
Why Use the Pearson Oscillator?
This indicator is particularly useful for traders who need a quantitative measure of trend strength that goes beyond traditional moving averages. By integrating statistical correlation directly into market analysis, the Pearson Oscillator helps you:
- Identify periods of strong trending behavior or potential reversals.
- Enhance your risk management through early alerts.
- Visualize the rate of change in market sentiment, enabling more informed entry and exit decisions.
Whether you are a technical analyst or a systematic trader, this indicator provides a robust tool to complement your existing trading toolkit.
──────────────────────────────
The Pearson Oscillator merges statistical insights with technical charting, creating an intuitive yet powerful tool for market analysis. With its adjustable parameters, visual cues, dynamic labeling, and automated alerts, it assists traders in monitoring and responding to evolving market conditions efficiently. This makes it a valuable addition to any TradingView chart, particularly for those looking to quantify the strength and evolution of market trends.
Feel free to adapt the parameters and visual settings to best align the indicator with your trading strategy. Happy trading!
Acceleration Bands HTF
This version gives you the ability to see the indicator from the HIGHER timeframes when you are on the timeframes. Please note that this is not the original formula, but a factored one that I found effective for identifying market trends. Thanks to @capissimo who provided the base open-code.
Acceleration Bands are designed to capture potential price breakouts or reversals in an asset. They are calculated based on a stock's price movements over a specified period, typically using the high, low, and closing prices. The idea is to identify moments when the price is accelerating (hence the name) beyond its normal range, which might indicate the beginning of a new trend.
Calculation
Acceleration Bands consist of three lines:
Upper Band (AB Upper): This is calculated by adding a certain percentage of the simple moving average (SMA) to the highest high over a given period.
Middle Band: This is typically the SMA of the stock's price.
Lower Band (AB Lower): This is calculated by subtracting the same percentage of the SMA from the lowest low over a given period.
Mathematically :
AB Upper = SMA + (Highest High * Percentage)
AB Lower = SMA - (Lowest Low * Percentage)
OR
Upper Band = SMA x (1 + (High - Low) / SMA)
Lower Band = SMA x (1 - (High - Low) / SMA)
Interpretation
The bands are used to identify periods when the price of a security is accelerating or decelerating:
Breakout Above Upper Band: This is usually considered a bullish signal, suggesting that the price is accelerating upwards and a new uptrend may be starting.
Breakdown Below Lower Band: This is usually considered a bearish signal, suggesting that the price is accelerating downwards and a new downtrend may be starting.
Reversal Between Bands: When the price re-enters the region between the bands after breaking out, it can be seen as a potential reversal signal.
Trading Strategy
Entry Signals:
Buy when the price breaks above the upper band.
Sell or short when the price breaks below the lower band.
Exit Signals:
Close a long position when the price falls back into the area between the bands.
Close a short position when the price rises back into the area between the bands.
Advantages
Helps capture early trends.
Can be used across various time frames and assets.
Provides clear entry and exit signals.
Weekly MA SuiteThe Weekly MA Suite is a multi-layered moving average indicator designed for traders and investors who analyze market trends across weekly and long-term timeframes. It combines three critical trend layers—short-term (1W EMA/VWMA), mid-term (30W EMA/VWMA), and long-term (200W HMA)—providing clear insights into market momentum, structure, and cycle trends.
This indicator is ideal for:
✅ Swing traders looking for weekly momentum shifts
✅ Position traders tracking multi-week to multi-month trends
✅ Long-term investors monitoring macro market cycles
Each layer has customizable colors, transparency, and visibility toggles, ensuring traders can tailor the indicator to their specific needs.
📊 Breakdown of Components
🔹 Short-Term Trend (1W EMA/VWMA Ribbon – Top Layer)
Purpose: Captures weekly momentum and volume dynamics
• 1W EMA (Exponential Moving Average) reacts quickly to price changes
• 1W VWMA (Volume-Weighted Moving Average) accounts for volume to confirm trend strength
• Ribbon fill highlights the divergence between price-based momentum (EMA) and volume-weighted trends (VWMA), making trend shifts easier to spot
Usage:
• If the 1W EMA is above the 1W VWMA, momentum is strong and price is trending higher with support from volume
• If the EMA crosses below the VWMA, it may indicate weakening trend strength or distribution
• A widening ribbon suggests increasing momentum, while a narrowing ribbon signals potential consolidation or reversal
🔸 Mid-Term Trend (30W EMA/VWMA Ribbon – Middle Layer)
Purpose: Provides insight into the broader market structure over multiple months
• 30W EMA represents the dominant trend direction over roughly half a year
• 30W VWMA smooths this trend while weighting price by trading volume
• Ribbon fill allows for a visual representation of how volume impacts trend direction
Usage:
• A bullish trend is confirmed when price remains above the 30W EMA, with the ribbon widening in an uptrend
• A bearish shift occurs when the 30W EMA crosses below the 30W VWMA, signaling weakening demand
• If the ribbon narrows or twists frequently, the market may be in a choppy, range-bound phase
🔻 Long-Term Trend (200W HMA – Background Layer)
Purpose: Identifies major market cycles and deep trend shifts
• The 200W Hull Moving Average (HMA) is a long-term smoothing tool that reduces lag while maintaining trend clarity
• Unlike traditional moving averages, the HMA reacts faster to trend changes without excessive noise
Usage:
• When price is above the 200W HMA, the broader trend remains bullish, even during short-term corrections
• A cross below the 200W HMA may indicate a macro downtrend or deep market cycle shift
• Long-term investors can use this as a dynamic support or resistance zone
🎯 How to Use the Weekly MA Suite for Trading
📅 Identifying Market Phases
• In strong uptrends, the 1W EMA and 30W EMA will be aligned above their VWMA counterparts, with price well above the 200W HMA
• In sideways markets, the ribbons will frequently narrow or cross, signaling indecision
• In bear markets, price will typically trade below the 30W EMA, with the 200W HMA acting as a long-term resistance
📈 Entry and Exit Strategies
• A bullish trade setup occurs when the 1W EMA crosses above the 1W VWMA while the 30W EMA holds above the 30W VWMA, confirming multi-timeframe momentum
• A bearish setup is confirmed when the 1W EMA crosses below the 1W VWMA and price is also trending below the 30W EMA
• The 200W HMA can be used as a trend filter—staying long when price is above it and avoiding longs when price is below
🚦 Customizing for Your Trading Style
• Scalpers can focus on the 1W ribbon for faster trend shifts
• Swing traders can use the 30W ribbon for trend-following entries and exits
• Long-term investors should watch price action relative to the 200W HMA for market cycle positioning
🔧 Final Thoughts
The Weekly MA Suite simplifies multi-timeframe analysis by layering key moving averages in an intuitive and structured format. By combining short, medium, and long-term trend indicators, traders can confidently navigate market conditions and improve decision-making. Whether trading weekly trends or monitoring multi-year cycles, this tool provides a clear visual framework to enhance market insights.
MTF Sentiment ProMTF Sentiment Pro - Advanced Multi-Timeframe Analysis
Purpose & Methodology
MTF Sentiment Pro provides traders with comprehensive market sentiment analysis across multiple timeframes. This indicator's unique innovation is its weighted scoring system that evaluates both technical indicators and volume metrics to determine market sentiment across customizable timeframes.
Unlike simple indicator overlays or basic multi-timeframe tools, this indicator:
1. Calculates sentiment using a proprietary weighted formula across 7 different timeframes
2. Incorporates volume confirmation to validate price movements (a critical element often overlooked)
3. Provides clear visualization of sentiment alignment between lower and higher timeframes
4. Uses majority-rule algorithms for overall sentiment determination (2/3 rule for LTF, 3/4 rule for HTF)
Technical Components & Integration
Each timeframe's sentiment score is derived from a combination of:
- **EMA**: Evaluates trend direction and price position relative to moving average
- **RSI**: Measures momentum with sensitivity to the 50-level for trend determination
- **MACD**: Assesses trend strength and momentum through histogram analysis
- **Bollinger Bands**: Determines price volatility and position relative to the mean
- **VWAP**: Provides volume-adjusted price reference
- **OBV**: Confirms price moves with cumulative volume analysis
What makes this combination powerful is how these components are integrated:
- Each indicator contributes a weighted value to the overall sentiment score
- User-definable weights allow customization based on strategy preferences
- Volume confirmation adds a critical dimension beyond basic price-only indicators
- Multi-timeframe analysis helps identify alignment/divergence across time horizons
Trading Applications & Limitations
This indicator works best for:
- Trend confirmation across multiple timeframes
- Identifying potential reversal zones where LTF and HTF sentiments diverge
- Entry/exit timing when paired with your primary strategy rules
- Market structure analysis across different time horizons
Note: While this indicator provides comprehensive sentiment analysis, it should be used as part of a complete trading strategy with proper risk management. No indicator can predict market movements with certainty.
Usage Instructions
1. Select appropriate timeframes for your trading style or use one of the included presets
2. Adjust indicator weights to match your analytical preferences
3. Look for timeframe alignment/divergence to identify potential opportunities
4. Use the overall LTF and HTF sentiment readings for broader market context
This indicator was developed to solve the challenge of efficiently analyzing sentiment across multiple timeframes while incorporating volume confirmation - something that would otherwise require multiple indicators and manual correlation.
RS ScanOverview
The RS Scan indicator helps traders analyze a stock's relative strength and volatility using multiple key metrics. It provides insights into where the stock is closing within its daily and weekly ranges, how far it has moved from its 52-week high, and how its price changes compare to its Average Daily Range (ADR).
Key Features
✅ Daily Close Range% – Shows the stock’s closing position within the day’s high-low range.
✅ Weekly Close Range% – Displays the stock’s closing position within the weekly high-low range.
✅ Stock Price Change% – Measures how much the stock has moved relative to its 52-week high.
✅ ADR% (Average Daily Range) – Calculates the stock’s average daily volatility over a given period (default: 20 days).
✅ ADR off 52W High – Indicates how many ADR multiples the stock has moved from its 52-week high.
How to Use
Identify Strength: Stocks closing near the high of their daily/weekly range show strong momentum.
Measure Volatility: The ADR% helps traders understand expected price fluctuations.
Detect Weakness: A stock trading far below its 52-week high with a low close range may indicate weakness.
Compare Price Change vs. ADR: If a stock is significantly down from its 52-week high but within a small ADR range, it may be consolidating.
Screening Example: If SPY is currently less than -3 ADR from its 52-week high, we can filter for stocks that are performing stronger by selecting those above -3 ADR. This helps in identifying stocks with relative strength compared to the broader market.
This indicator is useful for momentum traders, swing traders, and those tracking relative strength.
🚀 Try it out and enhance your trading decisions!
is_strategyCorrection-Adaptive Trend Strategy (Open-Source)
Core Advantage: Designed specifically for the is_correction indicator, with full transparency and customization options.
Key Features:
Open-Source Code:
✅ Full access to the strategy logic – study how every trade signal is generated.
✅ Freedom to customize – modify entry/exit rules, risk parameters, or add new indicators.
✅ No black boxes – understand and trust every decision the strategy makes.
Built for is_correction:
Filters out false signals during market noise.
Works only in confirmed trends (is_correction = false).
Adaptable for Your Needs:
Change Take Profit/Stop Loss ratios directly in the code.
Add alerts, notifications, or integrate with other tools (e.g., Volume Profile).
For Developers/Traders:
Use the code as a template for your own strategies.
Test modifications risk-free on historical data.
How the Strategy Works:
Main Goal:
Automatically buys when the price starts rising and sells when it starts falling, but only during confirmed trends (ignoring temporary pullbacks).
What You See on the Chart:
📈 Up arrows ▼ (below the candle) = Buy signal.
📉 Down arrows ▲ (above the candle) = Sell signal.
Gray background = Market is in a correction (no trades).
Key Mechanics:
Buy Condition:
Price closes higher than the previous candle + is_correction confirms the main trend (not a pullback).
Example: Red candle → green candle → ▼ arrow → buy.
Sell Condition:
Price closes lower than the previous candle + is_correction confirms the trend (optional: turn off short-selling in settings).
Exit Rules:
Closes trades automatically at:
+0.5% profit (adjustable in settings).
-0.5% loss (adjustable).
Or if a reverse signal appears (e.g., sell signal after a buy).
User-Friendly Settings:
Sell – On (default: ON):
ON → Allows short-selling (selling when price falls).
OFF → Strategy only buys and closes positions.
Revers (default: OFF):
ON → Inverts signals (▼ = sell, ▲ = buy).
%Profit & %Loss:
Adjust these values (0-30%) to increase/decrease profit targets and risk.
Example Scenario:
Buy Signal:
Price rises for 3 days → green ▼ arrow → strategy buys.
Stop loss set 0.5% below entry price.
If price keeps rising → trade closes at +0.5% profit.
Correction Phase:
After a rally, price drops for 1 day → gray background → strategy ignores the drop (no action).
Stop Loss Trigger:
If price drops 0.5% from entry → trade closes automatically.
Key Features:
Correction Filter (is_correction):
Acts as a “noise filter” → avoids trades during temporary pullbacks.
Flexibility:
Disable short-selling, flip signals, or tweak profit/loss levels in seconds.
Transparency:
Open-source code → see exactly how every signal is generated (click “Source” in TradingView).
Tips for Beginners:
Test First:
Run the strategy on historical data (click the “Chart” icon in TradingView).
See how it performed in the past.
Customize It:
Increase %Profit to 2-3% for volatile assets like crypto.
Turn off Sell – On if short-selling confuses you.
Trust the Stop Loss:
Even if you think the price will rebound, the strategy will close at -0.5% to protect your capital.
Where to Find Settings:
Click the strategy name on the top-left of your chart → adjust sliders/toggles in the menu.
Русская Версия
Трендовая стратегия с открытым кодом
Главное преимущество: Полная прозрачность логики и адаптация под ваши нужды.
Особенности:
Открытый исходный код:
✅ Видите всю «кухню» стратегии – как формируются сигналы, когда открываются сделки.
✅ Меняйте правила – корректируйте тейк-профит, стоп-лосс или добавляйте новые условия.
✅ Никаких секретов – вы контролируете каждое правило.
Заточка под is_correction:
Игнорирует ложные сигналы в коррекциях.
Работает только в сильных трендах (is_correction = false).
Гибкая настройка:
Подстройте параметры под свой риск-менеджмент.
Добавьте свои индикаторы или условия для входа.
Для трейдеров и разработчиков:
Используйте код как основу для своих стратегий.
Тестируйте изменения на истории перед реальной торговлей.
Простыми словами:
Почему это удобно:
Открытый код = полный контроль. Вы можете:
Увидеть, как именно стратегия решает купить или продать.
Изменить правила закрытия сделок (например, поставить TP=2% вместо 1.5%).
Добавить новые условия (например, торговать только при высоком объёме).
Примеры кастомизации:
Новички: Меняйте только TP/SL в настройках (без кодинга).
Продвинутые: Добавьте RSI-фильтр, чтобы избегать перекупленности.
Разработчики: Встройте стратегию в свою торговую систему.
Как начать:
Скачайте код из TradingView.
Изучите логику в разделе strategy.entry/exit.
Меняйте параметры в блоке input.* (безопасно!).
Тестируйте изменения и оптимизируйте под свои цели.
Как работает стратегия:
Главная задача:
Автоматически покупает, когда цена начинает расти, и продаёт, когда падает. Но делает это «умно» — только когда рынок в основном тренде, а не во временном откате (коррекции).
Что видно на графике:
📈 Стрелки вверх ▼ (под свечой) — сигнал на покупку.
📉 Стрелки вниз ▲ (над свечой) — сигнал на продажу.
Серый фон — рынок в коррекции (не торгуем).
Как это работает:
Когда покупаем:
Если цена закрылась выше предыдущей и индикатор is_correction показывает «основной тренд» (не коррекция).
Пример: Была красная свеча → стала зелёная → появилась стрелка ▼ → покупаем.
Когда продаём:
Если цена закрылась ниже предыдущей и is_correction подтверждает тренд (опционально, можно отключить в настройках).
Когда закрываем сделку:
Автоматически при достижении:
+0.5% прибыли (можно изменить в настройках).
-0.5% убытка (можно изменить).
Или если появился противоположный сигнал (например, после покупки пришла стрелка продажи).
Настройки для чайников:
«Sell – On» (включено по умолчанию):
Если включено → стратегия будет продавать в шорт.
Если выключено → только покупки и закрытие позиций.
«Revers» (выключено по умолчанию):
Если включить → стратегия будет работать наоборот (стрелки ▼ = продажа, ▲ = покупка).
«%Profit» и «%Loss»:
Меняйте эти цифры (от 0 до 30), чтобы увеличить/уменьшить прибыль и риски.
Пример работы:
Сигнал на покупку:
Цена 3 дня растет → появляется зелёная стрелка ▼ → стратегия покупает.
Стоп-лосс ставится на 0.5% ниже цены входа.
Если цена продолжает расти → сделка закрывается при +0.5% прибыли.
Коррекция:
После роста цена падает на 1 день → фон становится серым → стратегия игнорирует это падение (не закрывает сделку).
Стоп-лосс:
Если цена упала на 0.5% от точки входа → сделка закрывается автоматически.
Важные особенности:
Фильтр коррекций (is_correction):
Это «защита от шума» — стратегия не реагирует на мелкие откаты, работая только в сильных трендах.
Гибкие настройки:
Можно запретить шорты, перевернуть сигналы или изменить уровни прибыли/убытка за 2 клика.
Прозрачность:
Весь код открыт → вы можете увидеть, как формируется каждый сигнал (меню «Исходник» в TradingView).
Советы для новичков:
Начните с теста:
Запустите стратегию на исторических данных (кнопка «Свеча» в окне TradingView).
Посмотрите, как она работала в прошлом.
Настройте под себя:
Увеличьте %Profit до 2-3%, если торгуете валюты.
Отключите «Sell – On», если не понимаете шорты.
Доверяйте стоп-лоссу:
Даже если кажется, что цена развернётся — стратегия закроет сделку при -0.5%, защитив ваш депозит.
Где найти настройки:
Кликните на название стратегии в верхнем левом углу графика → откроется меню с ползунками и переключателями.
Важно: Стратегия предоставляет «рыбу» – чтобы она стала «уловистой», адаптируйте её под свой стиль торговли!
Breakouts With Timefilter Strategy [LuciTech]This strategy captures breakout opportunities using pivot high/low breakouts while managing risk through dynamic stop-loss placement and position sizing. It includes a time filter to limit trades to specific sessions.
How It Works
A long trade is triggered when price closes above a pivot high, and a short trade when price closes below a pivot low.
Stop-loss can be set using ATR, prior candle high/low, or a fixed point value. Take-profit is based on a risk-reward multiplier.
Position size adjusts based on the percentage of equity risked.
Breakout signals are marked with triangles, and entry, stop-loss, and take-profit levels are plotted.
moving average filter: Bullish breakouts only trigger above the MA, bearish breakouts below.
The time filter shades the background during active trading hours.
Customization:
Adjustable pivot length for breakout sensitivity.
Risk settings: percentage risked, risk-reward ratio, and stop-loss type.
ATR settings: length, smoothing method (RMA, SMA, EMA, WMA).
Moving average filter (SMA, EMA, WMA, VWMA, HMA) to confirm breakouts.
[TehThomas] - ICT VI / FVG / IFVG / Liquidity📌 Overview
This TradingView indicator is designed to help traders spot key price inefficiencies and liquidity events based on ICT (Inner Circle Trader) concepts. The script automatically highlights important areas on the chart, such as Volume Imbalances (VI), Fair Value Gaps (FVG), Inverted Fair Value Gaps (IFVG), and Liquidity Sweeps, giving traders a clear view of where price might react.
By marking these zones visually, the indicator serves as a liquidity map, showing where smart money could be targeting orders or rebalancing price action.
🔑 How the Script Works
The indicator detects four major market inefficiencies and liquidity patterns, each offering valuable insights into how price might behave:
1️⃣ Volume Imbalance (VI)
Bullish VI: When the current candle has higher volume than the previous candle in an upward move, this suggests demand is pushing the price up, creating potential buying opportunities.
Bearish VI: When the current candle has higher volume than the previous candle in a downward move, this suggests supply is pushing the price down, highlighting potential selling opportunities.
How to take trades:
Buy: Enter a long position when a bullish VI appears and the price is near a support zone or key level (such as the previous swing low or FVG).
Sell: Enter a short position when a bearish VI appears and the price is near a resistance zone or key level (such as the previous swing high or FVG).
2️⃣ Fair Value Gap (FVG)
Bullish FVG: A gap in price action where the low of the second candle is higher than the high of the first candle. Price tends to return to fill these gaps before continuing upward.
Bearish FVG: A gap in price action where the high of the second candle is lower than the low of the first candle. Price tends to return to fill these gaps before continuing downward.
How to take trades:
Buy: Enter long after a pullback into a bullish FVG zone and if price action shows signs of rejection (such as bullish candlestick patterns or strong momentum).
Sell: Enter short after a pullback into a bearish FVG zone and if price action shows signs of rejection (such as bearish candlestick patterns or strong downward momentum).
3️⃣ Inverted Fair Value Gap (IFVG)
An Inverted Fair Value Gap (IFVG) refers to a Fair Value Gap (FVG) that has already been filled or broken through by price action. Essentially, it is a gap that has been revisited by price and has now been mitigated or broken.
Example:
For Continuation: After price fills the gap, it may continue in the same direction. If price breaks through a bullish FVG and shows continuation, it may signal that the market is still in a strong uptrend.
For Reversal: If the price returns to an inverted FVG after breaching it, and then starts showing signs of reversal (e.g., reversal candlestick patterns, or a shift in momentum), this could signal an entry point in the opposite direction.
How to take trades:
Buy: Consider entering long when price returns to an IFVG zone that aligns with other bullish confluences, such as a bullish VI or liquidity sweep.
Sell: Consider entering short when price returns to a bearish IFVG zone that aligns with other bearish confluences, such as a bearish VI or liquidity sweep.
4️⃣ Liquidity Sweeps
Liquidity sweeps occur when the market temporarily breaks a key high or low to trigger stop-loss orders or lure traders into the wrong direction before reversing.
How to take trades:
Buy: If a liquidity sweep breaks a key resistance or swing high but fails to close above it, enter long when price begins to reverse in the opposite direction, ideally near a previous support or FVG zone.
Sell: If a liquidity sweep breaks a key support or swing low but fails to close below it, enter short when price begins to reverse in the opposite direction, ideally near a previous resistance or FVG zone.
🎯 Trade Setup and Confirmation Strategy
Here’s how to combine these concepts for high-probability trade setups:
Liquidity Sweeps + Volume Imbalances:
If a liquidity sweep occurs in conjunction with a volume imbalance (especially on a higher timeframe), this can act as a confirmation signal to enter the trade.
Example: A liquidity sweep breaks a previous high, but the price fails to close above it. If this happens alongside a break of a Volume imbalance (VI) , it could be a strong signal to sell.
FVG/IFVG Mitigation + Liquidity Sweeps:
Price often returns to mitigate imbalances, and when a liquidity sweep occurs near an unfilled gap, it could trigger a reversal.
Example: After an upward trend, a bearish liquidity sweep breaks a previous swing low, and price then revisits a bearish FVG and creates an IFVG, signaling an opportunity to buy.
Directional Bias (Higher Timeframe Analysis):
Always consider the higher timeframe trend to confirm trade direction. A bullish FVG or bullish VI on the lower timeframe aligns with a bullish trend on the higher timeframe.
Confluence with Key Levels:
When these patterns align with important price levels such as support, resistance, or previously identified swing highs/lows, it enhances the probability of a successful trade.
⚙️ How It Helps in Trading Strategy
The indicator assists in several aspects of trading:
Liquidity Hunts: Price often sweeps liquidity before making major moves.
Entry Confirmation: Use imbalances or sweeps as extra confluence for trade entries.
Mitigation Zones: Price frequently returns to fill inefficiencies before reversing.
Directional Bias: Bullish or bearish gaps align with the higher timeframe narrative.
🔍 ICT Concepts Included
✅Volume Imbalance (VI): High-volume inefficiencies.
✅Fair Value Gap (FVG): Standard price gaps.
✅Inverted Fair Value Gap (IFVG): Filtered large price gaps.
✅Liquidity Sweeps: Stop-hunting patterns by smart money.
⚠️ Disclaimer
This indicator is built for educational purposes and should not be considered financial advice. Trading carries risk, and no tool guarantees profits. Always use proper risk management and perform your own analysis before entering any trade.
PRC-EPMA | QuantEdgeB Introducing PRC-EPMA by QuantEdgeB
Overview
The PRC-EPMA (Percentile-Endpoint Moving Average) is a sophisticated trading indicator developed for traders looking to capitalize on trend shifts with enhanced filtering mechanisms. It blends Endpoint Moving Averages, Percentile Rank, and Median Absolute Deviation (MAD) Filtering to generate high-probability long and short signals.
____
Key Features
🔹 1. Endpoint Moving Average (EPMA):
- A regression-based moving average that adapts quickly to price movements.
- Uses a linear regression slope to project future price direction.
- Helps traders identify trend direction more responsively than traditional moving averages.
🔹 2. Percentile Rank-Based Dynamic Levels:
- Identifies overbought (75th percentile) and oversold (25th percentile) zones.
- Dynamically adjusts based on historical data, making it robust across different market conditions.
🔹 3. Median Absolute Deviation (MAD) Filtering:
- An advanced volatility filter that refines entry and exit points.
- Reduces noise by filtering out weak signals, focusing only on meaningful trend shifts.
- Uses two multipliers (long and short) to fine-tune sensitivity.
🔹 4. Signal Generation:
- 📈Long Signal: Triggered when price closes above the upper dynamic threshold.
- 📉Short Signal: Triggered when price closes below the lower dynamic threshold.
- Uses color-coded candles to visually indicate trend shifts.
- Optional signal labels can be enabled for clear entry/exit indications.
🔹 5. Customizable Visualization:
- Multiple color themes to match user preferences.
- Ability to overlay signals on price charts.
- Alerts available for long & short crossovers.
_____
How It Works
1. The script calculates an Endpoint Moving Average based on a user-defined period.
2. It computes the 75th and 25th percentile ranks of the Endpoint Moving Average.
3. Median Absolute Deviation (MAD) Filtering is applied to reduce false breakouts.
4. A buy (long) or sell (short) signal is triggered when price crosses the respective filtered percentile levels.
5. Alerts and labels can be used to notify traders of new signals.
_____
Behavior across Crypto Majors (Using Default Settings)
BTC
ETH
SOL
Note : Past behaviour is not indicative of future results. Always conduct thorough testing and risk management before making trading decisions.
_____
Best Use Cases
📌 Trend Confirmation – Use EPMA to confirm if a trend is strengthening or weakening.
📌 Noise Reduction – MAD filtering prevents reacting to minor fluctuations, focusing on stronger trend shifts.
📌 Multi-Timeframe Scalability – Works across multiple timeframes (1H, 4H, Daily, etc.), depending on the trader’s strategy.
⚙️ Customizable Inputs ⚙️
- Endpoint Moving Average Lookback Length
- Percentile Rank Length
- MAD Filter Sensitivity (Multipliers for Long & Short)
- Signal Labels & Alerts for Long/Short Entries
- Color Theme Selection
Default Setup for PRC-EPMA
Linear Regression Length → 4
Endpoint Lookback → 14
Percentile Length → 21
Median Period (Absolute Deviation Filter) → 21
Upper Multiplier (Absolute Deviation Filter) → 1.8
Lower Multiplier (Absolute Deviation Filter) → 0.9
_____
Final Thoughts
The PRC-EPMA Indicator is a powerful tool for traders seeking high-quality entry and exit signals based on statistical and regression-based methodologies. By combining EPMA, Percentile Rank, and MAD Filtering, it ensures that only strong and validated signals are executed, making it a great addition for trend-followers and mean-reversion traders alike.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
EMA Alignment & Spread Monitor (Sang Youn)Overview
The EMA Alignment & Spread Monitor is a dynamic trading script designed to monitor EMA (Exponential Moving Average) alignments, track spread deviations, and provide real-time alerts when significant conditions are met. This script allows traders to customize their EMA periods, analyze market trends based on EMA positioning, and receive visual and audio alerts when key spread conditions occur.
🔹 Key Features
✅ Customizable EMA Periods – Users can input their own EMA lengths to adapt the script to various market conditions. (Default: 5, 10, 20, 60, 120)
✅ EMA Alignment Detection – Identifies bullish alignment (all EMAs in ascending order) and bearish alignment (all EMAs in descending order).
✅ Spread Calculation & Monitoring – Computes the spread difference between each EMA and tracks the average spread over a user-defined period.
✅ Deviation Alerts – Notifies traders when:
Bullish Trend: The spread exceeds its average, indicating a potential strong uptrend.
Bearish Trend: The spread falls below its average, signaling a possible downtrend.
✅ Chart Annotations – Displays 📈 (green triangle) when bullish spread exceeds average and 📉 (red triangle) when bearish spread drops below average for easy visualization.
✅ Real-time Alerts – Sends alerts when spread conditions are met, helping traders react to market shifts efficiently.
✅ Spread Histogram – Visual representation of bullish and bearish spread levels for trend analysis.
🔹 How It Works
1️⃣ Set your EMA periods in the script settings (default: 5, 10, 20, 60, 120).
2️⃣ Define the spread average calculation length (default: 50 candles).
3️⃣ The script tracks EMA alignment to determine bullish or bearish trends.
4️⃣ If the spread deviates significantly from its average, the script:
Places a 📈 green triangle above candles in a bullish trend when spread > average.
Places a 📉 red triangle below candles in a bearish trend when spread < average.
Triggers an alert for timely decision-making.
5️⃣ Use the histogram & real-time alerts to stay ahead of market movements.
Ragi's Divergence HelperThis is Ragi's Divergence Helper is a TradingView indicator designed to track bullish and bearish divergences across multiple timeframes. It provides a clear, structured dashboard that remains fixed in a chosen corner of the chart for easy visibility.
Recommendations:
Put dashboard on lower left corner is less obstructive.
Use along with any RSI indicator for confirmations of bullish and bearish divergences.
Key Features:
✅ Timeframe Coverage: Monitors 5m, 10m, 15m, 30m, 1H, 2H, 4H, and Daily timeframes.
✅ Divergence Detection: Identifies whether a bullish (green) or bearish (red) divergence is present on each timeframe, displaying "None" if no divergence is detected.
✅ Divergence Lineup: Summarizes the overall market direction by checking if multiple timeframes align bullish or bearish.
✅ Customizable Settings: Users can adjust colors, panel position (Top Right, Bottom Right, Bottom Left, Top Left), and background color for better chart integration.
✅ Fixed & Readable Panel: Ensures the information is always visible without interfering with price action analysis.
How to Use It:
If multiple timeframes show bullish divergences, it may indicate a potential trend reversal or continuation to the upside.
If multiple timeframes show bearish divergences, it may signal a possible price drop or reversal downward.
When no divergences are present, it suggests no immediate divergence-based trading opportunity.
This indicator is ideal for traders looking for quick divergence insights across different timeframes without needing to analyze multiple indicators manually. 🚀
RSI & EMA IndicatorMulti-Timeframe EMA & RSI Analysis with Trend Merging Detection
Overview
This script provides traders with a multi-timeframe analysis tool that simplifies trend detection, momentum confirmation, and potential trend shifts. It integrates Exponential Moving Averages (EMAs) and the Relative Strength Index (RSI) across Daily, Weekly, and Monthly timeframes, helping traders assess both long-term and short-term market conditions at a glance.
This script is a simplification and modification of the EMA Cheatsheet by MarketMoves, reducing chart clutter while adding EMA merging detection to highlight potential trend reversals or breakouts.
Originality and Usefulness
Unlike traditional indicators, which focus on a single timeframe, this script combines multiple timeframes in a single view to offer a comprehensive market outlook.
What Makes This Indicator Unique?
This Indicator to Combine RSI and EMA Clouds for Multiple Timeframes
Multi-Timeframe Trend Analysis in One Visual Tool
EMA Merging Detection to Spot Trend Shifts Early
Momentum Validation Using RSI Across Daily, Weekly, and Monthly Timeframes
Reduces Chart Clutter While Providing Actionable Trade Signals
I couldn't find a TradingView indicator that displayed RSI and EMA clouds together across Daily, Weekly, and Monthly timeframes. This tool bridges that gap, allowing traders to see trend strength and momentum shifts across key timeframes without switching charts.
How the Script Works
1. Trend Direction via EMAs
The script tracks Short-term (5 & 12-period), Medium-term (34 & 50-period), and Long-term (72 & 89-period) EMAs across Daily, Weekly, and Monthly timeframes.
Bullish trend: When faster EMAs are above slower EMAs.
Bearish trend: When faster EMAs are below slower EMAs.
A visual table simplifies trend recognition with:
Green cells for bullish alignment.
Red cells for bearish alignment.
This color-coded system allows traders to quickly assess market momentum across different timeframes without excessive manual analysis.
2. Momentum Confirmation with RSI
The RSI(14) values for Daily, Weekly, and Monthly timeframes are displayed alongside the EMAs.
RSI above 70 suggests overbought conditions.
RSI below 30 suggests oversold conditions.
By combining RSI with EMA trends, traders can confirm whether momentum supports the trend direction or if the market is losing strength.
3. Trend Shift Detection (EMA Merging Mechanism)
A unique feature of this script is EMA merging detection, which occurs when:
The short, medium, and long-term EMAs come within 0.5% of the price.
This often signals trend reversals, breakouts, or consolidations.
When this condition is met, a warning signal appears, alerting traders to potential market shifts.
Who This Indicator Is For?
This script is designed for traders who want to track trends across multiple timeframes while keeping a clean and simplified chart.
Swing & Position Traders – Identify strong trends and potential momentum shifts for longer-term trades.
Trend Followers – Stay aligned with major market trends and avoid trading against momentum.
Day Traders – Use the Daily timeframe for entries while referencing higher timeframes for confirmation.
How to Use the Indicator
Add the indicator to any chart.
Check the trend table in the top-right corner:
Green cells indicate a bullish trend.
Red cells indicate a bearish trend.
Look at RSI values to confirm momentum:
RSI above 70 = Overbought.
RSI below 30 = Oversold.
Watch for the "Merge" alert to spot potential reversals or consolidations.
Combine signals from multiple timeframes for stronger trade decisions.
Why This Indicator is Unique on TradingView?
Before this script, no TradingView indicator displayed RSI and EMA clouds together across multiple timeframes (Daily, Weekly, Monthly).
This tool eliminates the need to:
Manually check multiple timeframes for trend alignment.
Add multiple EMA and RSI indicators to the same chart, creating clutter.
Constantly switch between different timeframes to confirm momentum and trend direction.
With this indicator, traders can see trend strength and momentum shifts instantly, improving their decision-making process.
Chart Guidelines
The script is designed for use on a clean chart to maximize clarity.
The trend alignment table is displayed in a non-intrusive manner so traders can focus on price action.
No additional indicators are required, but users may combine this script with volume-based indicators for further confirmation.
The script name and timeframe should always be visible on published charts to help traders understand the analysis.
Final Notes
This script is a simplification and modification of the EMA Cheatsheet by MarketMoves, improving trend detection, momentum confirmation, and EMA merging detection.
It is designed to help traders quickly identify trend direction, confirm momentum, and detect potential trend shifts, reducing the need for excessive manual analysis.
Disclaimer: This indicator is for educational purposes only and does not constitute financial advice. Trading involves risk; always use proper risk management when applying this tool in live markets.
BUY & SELL Dynamic DCA StrategyOverview
The BUY & SELL Dynamic DCA Strategy is a versatile Pine Script indicator designed for traders seeking a robust Dollar Cost Averaging (DCA) approach to manage both long and short positions across various market conditions and timeframes. This innovative tool combines breakout-based level initiation with a dynamic volatility adjustment, enabling traders to enter positions at optimal DCA points, average them strategically, and manage risk with adjustable stop-loss and take-profit levels. Ideal for scalping on short timeframes (1-minute, 5-minute) or swing trading on longer ones (15-minute, 1-hour, 4-hour).
Purpose and Originality
The "BUY & SELL Dynamic DCA Strategy" stands out by integrating several trading concepts into a cohesive, trader-friendly system. While it leverages familiar elements like breakout points and ATR (Average True Range), its originality lies in:
Dynamic Volatility Adjustment: A custom volatility factor, derived from a capped ATR calculation, dynamically scales DCA entry, averaging, and stop-loss levels. This ensures the strategy adapts to market conditions, tightening in low volatility for scalping and widening in high volatility for swing trading.
Dual-Direction DCA: Supports both buy (long) entries on pullbacks and sell (short) entries on rallies, with tailored averaging and exit strategies for each.
Timeframe Versatility: Adjusts its sensitivity based on the chart timeframe, making it suitable for rapid scalping or longer-term trend riding without requiring manual recalibration.
This unique synthesis justifies its publication as a invite-only script, offering a practical tool that enhances traditional DCA methods with adaptive precision.
How It Works
The indicator operates through a multi-step process designed to optimize entry, averaging, and exit points:
1. Initial Level Setting:
Utilizes high and low threshold (calculated over a user-defined period) to establish initial DCA entry levels. If no threshold is detected, it defaults to the previous bar’s price, ensuring immediate applicability.
2. Dynamic DCA Entry:
Entry levels are adjusted using a proprietary volatility factor, which scales the distance from the current price. Long entries trigger when the price falls below this level, while short entries trigger when the price rises above it, with a volume confirmation filter to reduce noise.
3. Averaging Mechanism:
A secondary level (Averaging Level) allows traders to add to their position when the price moves further against the trade (down for longs, up for shorts). This level is also volatility-adjusted, providing a structured cost-reduction strategy.
4. Risk and Reward Management:
A Final Stop-Loss (Final SL) is set farther out, calculated as a multiple of the volatility-adjusted risk distance, offering protection after averaging.
Take-Profit (TP) levels are determined using a user-defined risk-to-reward ratio, ensuring a balanced exit strategy tailored to market movement.
5. Performance Tracking:
A real-time win/loss table in the top-right corner records trade outcomes, with wins and losses color-coded based on the trade direction (green/red for long, red/green for short), aiding performance evaluation.
Features
1. Dual-Mode Operation : Facilitates both long entries on price dips and short entries on price surges, adaptable to bullish and bearish markets.
2. Volatility-Adaptive Levels: Employs a custom ATR-based adjustment to scale entry, averaging, and stop-loss levels, enhancing responsiveness across timeframes.
3. Visual Tools: Features dashed lines and labels for DCA Entry (green for long, red for short), Final SL (red), and TP (cyan), with debug labels for entries and averages.
4. Timeframe Flexibility: Automatically adjusts threshold periods and volatility factors based on the chart timeframe (1m, 5m, 15m, 1h, 4h), optimizing for scalping or swing trading.
5. Customizable Parameters: Allows fine-tuning of period, DCA factors, and visibility options.
Settings
Base Length (default: 10): Base period for pivot calculations, scaled by timeframe (e.g., 10 becomes 20 on 5m).
Type: 'Wicks' (high/low) or 'Body' (open/close) for price-based levels.
RR Ratio (default: 1.2): Risk-to-reward ratio for TP calculation.
DCA Entry Factor (default: 1.0): Multiplier for volatility-adjusted DCA entry distance.
Avg Level Factor (default: 2.0): Multiplier for averaging level distance.
Final SL Factor (default: 3.0): Multiplier for final stop-loss distance.
SL Type: 'Close' or 'High/Low' for stop-loss evaluation.
Show DCA Entry, Show Avg Level, Show Final SL: Toggle visibility of respective lines.
Show Win/Loss Table: Enable/disable performance tracking.
Line Style: Select 'Solid', 'Dashed', or 'Dotted'.
Usage Instructions
1. Application:
Add the "BUY & SELL Dynamic DCA Strategy - JOAT" via the Pine Editor or community scripts on TradingView.
2. Configuration:
Scalping (1m, 5m): Set Base Length to 5-10, use a low DCA Entry Factor (0.5-1.0) for tight entries, and a Final SL Factor of 2.0-3.0.
Swing Trading (15m, 1h, 4h): Increase Base Length to 15-20, use a higher DCA Entry Factor (1.0-2.0), and set Final SL Factor to 3.0-4.0 for wider stops.
Enable visual elements and adjust Line Style as preferred.
3. Signal Interpretation:
Long Trade: A green dashed "DCA Entry" line below the price triggers a "Long Entry" label on crossover down.
Short Trade: A red dashed "DCA Entry" line above the price triggers a "Short Entry" label on crossover up.
Averaging: A yellow "Avg" label (long) or magenta "Avg" label (short) appears at the respective averaging level.
Exits: TP (cyan) for wins, Final SL (red) for losses, tracked in the win/loss table.
Trade Management:
Scalping: Use 1m/5m for quick trades, averaging as price moves against you.
Swing Trading: Use 15m/1h/4h to capture trends, averaging for cost adjustment.
Manually adjust position size for averaging based on risk tolerance.
5. Performance Monitoring:
The top-right table updates with wins (green/red) and losses (red/green) per trade type, helping assess strategy effectiveness.
Limitations
Manual Averaging: Requires manual position size adjustment at the Averaging Level; automation is not included.
Timeframe Sensitivity: May require parameter tuning for optimal performance across 1m to 4h.
No Trend Filter: Sideways markets may generate noise; adding a trend indicator could enhance accuracy (future development).
Initialization Delay: First trade may be delayed until a pivot is detected, using the current price as a fallback.
Originality Justification
The custom volAdj method, which caps ATR at a percentage of price and scales it by timeframe, offering a unique volatility adjustment not found in standard indicators.
The dual-direction DCA with averaging, combining long and short strategies with volatility-modulated levels, providing a comprehensive trading framework.
The timeframe-adaptive design, automatically adjusting pivot periods and volatility factors, making it a versatile tool across scalping and swing trading.
Mayer Multiple Zones (Crypto)Enhanced Mayer Multiple Zones
Advanced crypto valuation zones with ETH/BTC context
Key Features
Shows 6 price zones based on MA200 multiples (bubble, take profit, fair value, accumulation, value buy, strong buy)
Adds ETH/BTC ratio context for stronger signals
Works on any crypto with sufficient price history ( ETH , SOL , AAVE , etc)
Color intensity changes based on market conditions
How to Read
Color Zones : Price relative to its MA200 history
Zone Opacity : Stronger color = stronger signal (influenced by ETH/BTC context)
Status Box : Shows current "Enhanced Status" combining price level with ETH/BTC context
Context Line : Explains why the signal is strong or weak
Buy/Sell Signals
Strong Buy Signals :
• " EXTREME VALUE " (blue zone + BTC dominance)
• " STRONG VALUE BUY " (cyan zone + BTC preference)
Take Profit Signals :
• " CONFIRMED BUBBLE " (purple zone + altcoin dominance)
• " APPROACHING BUBBLE " (red zone + rising altcoin strength)
Customization
Adjust multiple thresholds (0.6x, 0.8x, 2.0x, 2.5x, 3.0x)
Toggle ETH/BTC context analysis
Configure ETH/BTC thresholds for market bias
Change MA length from default 200
This indicator helps identify optimal entry and exit points by watching the vertical color streaks on your chart. Look for deep blue/cyan zones with high opacity for strong buying opportunities, and intense purple/red zones for potential exits. The darker the color intensity, the stronger the signal—no complex interpretation needed!
GARCH(1,1) [victhoreb]Generalized Autoregressive Conditional Heteroskedasticity p,q = 1 (GARCH(1,1))
The GARCH model is a generalized version of the ARCH statistical model, which describes the variance of the current error term (innovation) as a function of the magnitudes of the previous periods' error terms. Essentially, the GARCH model provides an estimate of the average volatility.
The model assumes that the time series { xₜ | t ∈ T } is given by:
xₜ = μₜ + εₜ
where:
- μₜ is the conditional mean of the series.
- εₜ represents the residual shocks, defined as above, and it is assumed that εₜ ∼ N(0, σₜ²) (this assumption, although important for statistical inference, may not hold perfectly in practice as residuals can exhibit heavier tails).
The conditional variance is estimated by:
σₜ₊₁² = ω + α · εₜ² + β · σₜ²
where:
- ω is a constant ensuring the variance remains positive;
- α measures the impact of recent shocks (the effect of the squared residuals);
- β represents the persistence of past volatility.
(!) It is important that α + β < 1 for the process to be stationary.
(!) The parameters ω, α, and β are assumed to be non-negative real numbers.
Here, σₜ₊₁ represents the forecasted volatility for the next period (t+1).
ADDITIONAL NOTES:
1. In the first bar, the future conditional variance σₜ₊₁² is defined as εₜ². This initialization is arbitrary and serves to start the recursive process. Alternative initialization methods may be used depending on the data.
2. The normality assumption εₜ ∼ N(0, σₜ²) facilitates statistical inference, though in practice the residuals might not follow a perfect normal distribution. Statistical tests and graphical analysis can be applied to assess normality and, if necessary, alternative distributions (such as Student's t or GED) may be employed.
3. The conditional mean μₜ is estimated using a weighted moving average (WMA) of the hl2 value (the average of the high and low), which acts as a proxy for the level of the series. In this setup, xₜ is set to hl2, and the model computes the conditional volatility for the next bar.
ADDITIONAL INDICATOR (MA):
An extra moving average (MA) calculated using GARCH(1,1) is plotted on the chart (its plot is optional and it can be changed in the indicator settings).