PROTECTED SOURCE SCRIPT
价格行为交易逻辑指标 (专业双模式版 v7.5)

Trend-Following Mode: This mode uses a EMA as a dynamic filter to identify the primary trend. It then generates high-probability signals (2B, Engulfing) that align with that trend. It also identifies powerful RSI Divergence signals for potential counter-trend reversals, which can be enabled by the user.
Mean-Reversion Mode (Ranging Markets): Specifically designed for choppy or sideways markets. This mode ignores the EMA and utilizes Bollinger Bands® to identify overbought and oversold levels. It generates reversal signals when price action patterns form near the upper or lower bands, aiming to capture profits as the price returns to the mean (the middle band).
2. Core Signal Engine (100% Non-Repainting)
The indicator automatically identifies three classic, high-probability price action patterns. Signals are only confirmed and plotted after the candle closes, ensuring they never repaint.
2B Reversal / Fake Breakout: Identifies failed attempts to break previous swing highs or lows—a powerful reversal signal.
RSI Divergence: Detects discrepancies between price action and momentum (RSI), signaling that the current trend is weakening.
Engulfing Patterns: Pinpoints strong bullish or bearish engulfing candles at key swing points.
3. Fully Integrated Risk Management
For every signal, the indicator provides a complete trading plan:
Automatic TP/SL Levels: Displays clear Take Profit (TP) and Stop Loss (SL) lines on the chart. The SL can be set to the signal candle's high/low or use a dynamic ATR-based value to adapt to market volatility.
Dynamic Risk Management Table: An on-screen table instantly updates with every new signal, showing:
Trade Direction (LONG/SHORT)
Entry, Stop Loss, and TP Prices
Risk/Reward Ratio for the first target (TP1)
Return on Equity (ROE %) for both TP1 and TP2, calculated based on your custom leverage setting.
4. Live Performance Statistics Table
An on-screen panel tracks the indicator's performance in real-time based on TP1 being hit, helping you gauge its effectiveness on any asset or timeframe.
Daily & Weekly Win Rate: Tracks the win/loss record for the current day and week.
PnL (Profit and Loss) in USDT: Calculates the cumulative profit or loss in USDT based on your user-defined margin per trade and leverage, giving you a clear view of the strategy's financial performance.
5. Full Customization & Alerts
Easily toggle any signal type on or off.
Adjust all parameters (MA, Pivots, RSI, Bollinger Bands, ATR).
Set up TradingView alerts for any long or short signal so you never miss an opportunity.
Mean-Reversion Mode (Ranging Markets): Specifically designed for choppy or sideways markets. This mode ignores the EMA and utilizes Bollinger Bands® to identify overbought and oversold levels. It generates reversal signals when price action patterns form near the upper or lower bands, aiming to capture profits as the price returns to the mean (the middle band).
2. Core Signal Engine (100% Non-Repainting)
The indicator automatically identifies three classic, high-probability price action patterns. Signals are only confirmed and plotted after the candle closes, ensuring they never repaint.
2B Reversal / Fake Breakout: Identifies failed attempts to break previous swing highs or lows—a powerful reversal signal.
RSI Divergence: Detects discrepancies between price action and momentum (RSI), signaling that the current trend is weakening.
Engulfing Patterns: Pinpoints strong bullish or bearish engulfing candles at key swing points.
3. Fully Integrated Risk Management
For every signal, the indicator provides a complete trading plan:
Automatic TP/SL Levels: Displays clear Take Profit (TP) and Stop Loss (SL) lines on the chart. The SL can be set to the signal candle's high/low or use a dynamic ATR-based value to adapt to market volatility.
Dynamic Risk Management Table: An on-screen table instantly updates with every new signal, showing:
Trade Direction (LONG/SHORT)
Entry, Stop Loss, and TP Prices
Risk/Reward Ratio for the first target (TP1)
Return on Equity (ROE %) for both TP1 and TP2, calculated based on your custom leverage setting.
4. Live Performance Statistics Table
An on-screen panel tracks the indicator's performance in real-time based on TP1 being hit, helping you gauge its effectiveness on any asset or timeframe.
Daily & Weekly Win Rate: Tracks the win/loss record for the current day and week.
PnL (Profit and Loss) in USDT: Calculates the cumulative profit or loss in USDT based on your user-defined margin per trade and leverage, giving you a clear view of the strategy's financial performance.
5. Full Customization & Alerts
Easily toggle any signal type on or off.
Adjust all parameters (MA, Pivots, RSI, Bollinger Bands, ATR).
Set up TradingView alerts for any long or short signal so you never miss an opportunity.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.