Demand, Supply and Channel by BULL┃NET
The B | N DESC (Demand, Supply, and Channel by BULL / NET)
Indicator helps traders identify demand and supply lines. Breakouts are detected, and potential targets are calculated. Additionally, channels are automatically detected.
⚠️ Disclaimer – Please Read Before Using ⚠️
Concepts
Trend, demand, and supply lines are fundamental concepts in trading to identify a trend and detect a potential trend change. However, there’s a significant issue: if you show a chart to 10 traders and ask them to draw trend, demand, and supply lines, you’ll likely get 10 different results. This is where B | N DESC comes into play. The indicator defines demand and supply lines objectively using pivot points of different levels.
A pivot point is a high or low on the chart surrounded by bars that form lower highs or higher lows. The number of bars to the left and right defines the pivot length or level. Supply lines connect pivot highs top-down, and demand lines connect pivot lows bottom-up. Unlike traditional trendlines, which are drawn from left to right and require three anchor points, supply and demand lines are drawn from right to left.
Features
Supply Line Options
These settings control how supply lines and channels are calculated and drawn on the chart. You can display up to three supply lines.
- 1st, 2nd, and 3rd Supply Line : By default, two supply lines are active. Each line can be enabled or disabled individually.
- Channel: Determines whether channels are displayed.
- Confirm : If enabled, the channel will not be shown until confirmed by the price.
- Fill : When enabled, the channel will be filled with the chosen color once confirmed by the price.
- Level : You can define pivot points for any level between 1 and 100. Default values are 3, 5, and 15.
- Color, Style, Width: These settings customize the appearance of the supply lines.
Demand Line Options
Similar to the supply lines, these settings control how demand lines and channels are calculated and displayed on the chart. You can display up to three demand lines.
- 1st, 2nd, and 3rd Demand Line : By default, two demand lines are active.
- Channel and Confirm : Functions similarly to supply lines.
- Level: Levels between 1 and 100 are available, with default values of 3, 5, and 15.
- Color, Style, Width : These settings allow you to adjust the appearance of the demand lines.
Level Label Options
When a new demand or supply line is drawn, a small label appears at the x2 coordinate of the line. The label shows the height of the extreme point and the direction (up or down) along with the line type (D = Demand, S = Supply) and the selected pivot level.
Breakout Label Options
- Show in Timeframe : Breakout and target labels are shown by default in timeframes above 30 minutes. In shorter timeframes, pivot points can change rapidly, causing the labels to cover the bars.
- Breakout : The breakout label contains the breakout price, direction, pivot level, and breakout attempts.
- Target : A label that displays the target price, which is linked to the breakout point on the supply or demand line.
Additional Options
- Burned Line : Supply and demand lines remain active until new pivot points create a new line of the same level. After the 4th breakout, the line is marked as “burned” and will no longer be monitored for further breakouts.
- Spread : This feature allows you to account for your broker’s spread in the target calculation to avoid discrepancies.
-------------------------------------
Disclaimer BullNet: [ /i] The information provided in this document is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Any use of the content is at your own risk. No liability is assumed for any losses or damages resulting from reliance on this information. Trading financial instruments involves significant risks, including the potential loss of all invested capital. There is no guarantee of profits or specific outcomes. Please conduct your own research and consult a professional financial advisor if needed.
Disclaimer TradingView: According to the www.tradingview.com
Copyright: 2025-BULLNET - All rights reserved.
Roadmap:
Version 1.0 03.03.2025
Trend Analysis
Hamtarotraderindikator by hamtarotrader dengan uji coba dan analisa yang sudah di uji ke akurasian yang sudah di ukur di tujukan untuk bisa TP maksimal walaupun market bergerak bergerak dinamis tapi tetap bisa di analisa dengan hamtarotrader
kontak wa saya atau cek link ini wa.me
lynk.id
Weighted Relative Strength Index [SeerQuant]Weighted Relative Strength Index (WRSI)
The Weighted Relative Strength Index (WRSI) is an advanced momentum oscillator that enhances the traditional RSI by incorporating customizable weighting methods and moving average smoothing. With dynamic threshold logic, color-coded visuals, and optional candle coloring, the WRSI provides traders with a versatile tool for identifying trends, overbought/oversold conditions, and momentum shifts.
⚙️ How It Works
1. Weighted Momentum Calculation
The indicator calculates price changes (delta) and applies a user-defined weighting method (e.g., Volume, Momentum, Volatility, or Reversion Factor) to emphasize specific market dynamics.
2. Custom Moving Average Integration
Weighted upward and downward price movements are smoothed using a selectable moving average type (e.g., SMA, EMA, TEMA, etc.), producing a weighted RSI that blends momentum and trend data.
3. Smoothed RSI Output
An additional moving average is applied to the weighted RSI for a smoothed version, offering a clearer view of momentum trends.
4. Threshold Logic
Bullish (Uptrend): WRSI exceeds the upper neutral zone boundary (50 + Neutral Zone).
Bearish (Downtrend): WRSI falls below the lower neutral zone boundary (50 - Neutral Zone).
Neutral: WRSI remains within the neutral zone.
Extreme overbought (90+) and oversold (20-) levels are marked with X’s for quick identification.
5. Dynamic Visual Representation
A color-coded line reflects the WRSI, adjusting hues based on trend direction.
Gradient fills highlight overbought/oversold zones and neutral areas.
Optional candle coloring ties price action to WRSI or smoothed RSI values.
A histogram-style fill between the WRSI and midline enhances trend strength visibility.
✨ Customizable Settings
Calculation Settings:
Calculation Source: Select the price source (default: close).
Calculation Length: Set the lookback period for RSI calculation (default: 14).
Moving Average Type: Choose from SMA, EMA, RMA, WMA, VWMA, LSMA, HMA, ALMA, DEMA, or TEMA (default: RMA).
Moving Average Length: Adjust the smoothing period for the weighted RSI (default: 8).
Neutral Zone Range: Define the width of the neutral zone around the midline (default: 5).
RSI Weighting Method:
Volume: Weights by trading volume.
Momentum: Weights by absolute price momentum.
Volatility: Weights by standard deviation.
Reversion Factor: Weights inversely to variance for mean-reversion emphasis (default: Momentum).
Style Settings:
Colour Choice: Pick from predefined schemes: Default, Modern, Cool, or Monochrome (default: Default).
Use Custom Colors?: Toggle to use custom bull, bear, and neutral colors (default: false).
Bull/Bear/Neutral Colors: Set custom colors when enabled (default: green/red/gray).
Candle Color Mode: Color candles based on WRSI or smoothed RSI (default: RSI).
Color Candles?: Enable/disable candle coloring (default: false).
🚀 Features and Benefits
Weighted Momentum Analysis: Enhances RSI with dynamic weighting for deeper market insights.
Flexible Smoothing: Multiple MA types and adjustable lengths adapt to various trading styles.
Visual Intuition: Color-coded outputs, gradient fills, and optional candle coloring simplify trend analysis.
Customizable Thresholds: Neutral zone and extreme levels cater to individual strategies.
Overbought/Oversold Signals: Clear markers for extreme conditions improve decision-making.
📜 Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always consult a licensed financial advisor before making trading decisions. Use at your own risk.
US Yield Curve (2-10yr)US Yield Curve (2-10yr) by oonoon
2-10Y US Yield Curve and Investment Strategies
The 2-10 year US Treasury yield spread measures the difference between the 10-year and 2-year Treasury yields. It is a key indicator of economic conditions.
Inversion (Spread < 0%): When the 2-year yield exceeds the 10-year yield, it signals a potential recession. Investors may shift to long-term bonds (TLT, ZROZ), gold (GLD), or defensive stocks.
Steepening (Spread widening): A rising 10-year yield relative to the 2-year suggests economic expansion. Investors can benefit by shorting bonds (TBT) or investing in financial stocks (XLF). The Amundi US Curve Steepening 2-10Y ETF can be used to profit from this trend.
Monitoring the curve: Traders can track US10Y-US02Y on TradingView for real-time insights and adjust portfolios accordingly.
[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.
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.
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.
AFO LiteAFO Lite – Multiple Pivot Breakout & Session Indicator
Overview
AFO Lite is a sophisticated market structure indicator that combines advanced pivot detection with breakout, false break, and engulfing candle pattern analysis – all while visually integrating key session information such as the Asia range and Silent Time. This indicator is designed to provide traders with clear signals on swing highs/lows filtered by ATR, breakout opportunities, and potential false breaks, helping you to better time entries on higher timeframes (M15/H1/H4) for the products you follow.
Pivot High/Low Detection
Swing Logic with ATR Filter:
The indicator identifies swing highs and lows using a custom pivot function. It compares the central candle against surrounding candles and uses an ATR-based threshold to filter out noise. This ensures that only significant swings (with a deviation greater than a set multiple of the ATR) are recognized as pivot points.
Pivot Data Storage:
Each detected pivot is stored as an object (PivotData) that includes the bar index, price, pivot number, and a flag indicating if it has been broken. This systematic approach allows for accurate tracking and subsequent analysis of market structure.
Breakout Detection
First-Time Breakout:
The indicator monitors the most recent (active) pivot. When the price breaches this pivot level (support or resistance) – defined as the close moving beyond the pivot price while the previous bar did not – a breakout is confirmed.
Visual Breakout Signals:
A breakout line is drawn from the pivot point to the current bar, with color coding based on the pivot’s order. The first breakout on a pivot is highlighted in yellow; subsequent breakouts on later pivots appear in red (for support) or lime (for resistance).
Alert Integration:
Alerts are generated the first time a breakout occurs from a pivot level, ensuring that you are notified of potential structural changes in the market.
False Break Detection
False Break Conditions:
A false break is signaled when the price temporarily breaches the pivot level but fails to maintain the move – for example, if the low is below support but the close reverts above the previous bar’s high (or vice versa for resistance).
Timeframe Filtering:
False break alerts are only triggered on higher timeframes (e.g., 30 minutes or more) to avoid noise from lower timeframes like M1, M5, or M15.
Visual & Alert Signals:
When a false break is detected, the indicator places a label on the chart and sends an alert, helping you to avoid entering a trade based on a spurious signal.
Engulfing Candle Pattern Detection
Candle Pattern Analysis:
In addition to pivot and breakout analysis, AFO Lite incorporates an engulfing candle pattern (Type 1) module. It calculates candle bodies and ranges, comparing the current candle with the previous one to identify bullish or bearish engulfing patterns.
Visual Highlighting & Alerts:
When an engulfing pattern meets the specified criteria (including a minimum candle range relative to ATR), the indicator highlights the area on the chart with colored boxes and draws dotted lines at key levels. Alerts are then triggered to notify you of the potential reversal signal.
Session Information & Visualization
Asia Session Range:
The indicator defines the Asia session based on a user-defined time range (e.g., 04:00–12:00 Asia/Ho_Chi_Minh). It calculates the session’s highest and lowest prices and draws a range box and horizontal lines to clearly mark this area.
Silent Time:
A separate background color is applied during “Silent Time” (e.g., 23:00–08:00) so that you can easily identify periods when alerts may be muted or less reliable.
Best Practices for Use
Timeframes:
For optimal performance, set alerts on higher timeframes such as M15, H1, or H4 on the instruments you trade. The indicator is designed to filter out noise and only alert you when significant breakouts or false breaks occur.
Alerts:
Enable alerts for both breakout and false break signals. This ensures you receive notifications whenever there is a meaningful change in market structure.
Customization:
Adjust the ATR multiplier, ATR length, and session settings to match your trading style and the characteristics of your target market.
Final Remarks
Thank you for using AFO Lite. I hope this tool enhances your market analysis and trading decisions. I welcome your feedback and suggestions for further improvements.
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.