PROTECTED SOURCE SCRIPT

Auto Trend Channel [Minimal Settings]

161
Auto Trendlines: Automatically draws the latest upper and lower trend channels (Yellow lines).
Breakout Signals: Triggers Buy or Sell signals when price breaks the channel bounds with momentum.
EMA Filter (Hidden): Uses an internal EMA spread filter (EMA 5 vs EMA 20) to avoid trading during consolidation/choppy markets.
No Repaint: Once a trade is triggered, the channel lines are locked to track the specific setup without repainting.
Smart Exit: Automatically closes positions based on two conditions:
Midline Reset: Price returns to the channel median.
Trend Reversal: Price breaks the EMA 5 and engulfs the previous 4 candles' structure.
Money Management Dashboard: A built-in panel tracks simulated Profit & Loss (PnL), calculating real-time returns based on a $1,000 start, leverage, and 0.04% trading fees.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.