INVITE-ONLY SCRIPT

MA Break Trend Strategy - Multi Stop Methods

34
This is a trend-following trading strategy with multiple stop loss options for both long and short positions.
  • Entry Signal: Trades are triggered when price crosses above (long) or below (short) a configurable moving average (EMA or SMA, default 200-period)
  • Volume Confirmation: Optional filter requiring volume to exceed a multiplier (default 1.5x) of the 20-period volume average before entering trades
  • Five Stop Loss Methods:
    - ATR-based: Dynamic stop using Average True Range multiplier below/above entry price
    - MA Buffer: Stop set at a percentage offset from a separate moving average (default 50-period EMA)
    - Donchian Channel: Uses the lowest low/highest high over a specified lookback period
    - Keltner Channel: ATR-based bands around an EMA basis
    - Lowest Low/Highest High: Simple swing point stops based on recent price extremes
    - Trailing Stops: All stop methods automatically trail in the profitable direction (upward for longs, downward for shorts) to lock in gains while never moving against the position
  • Visual Indicators:
    - Plots the trend-following moving average in blue
    - Shows active stop loss levels in red when in a position
    - Displays reference lines for all stop types when flat
    - Entry signals marked with triangles (green up for long, red down for short)
    - Background highlighting for volume-confirmed crossovers

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.