PROTECTED SOURCE SCRIPT

All MA Cross Strategy

38
Title: All MA Cross Strategy with TSL, SL & TGT

Description:
This strategy is a fully customizable Moving Average Crossover system with advanced trade management features. It is designed for both novice and professional traders to test and automate MA-based strategies on TradingView charts.

Features:
= Supports multiple MA types: SMA, EMA, WMA, RMA, HMA, DEMA, TEMA
= Flexible MA sources: open, high, low, close, hl2, hlc3, ohlc4, or volume
= Optional 2nd candle confirmation for more reliable entries
= Configurable position sizing: Fixed, Decimal, or Exposure-based
= Trailing Stop Loss (TSL) options: ATR, Adaptive ATR, EMA, Supertrend, % or Pips
= Configurable Stop Loss (SL) and Target (TGT) in %, Points, or Pips
= Dynamic ATR-based trailing stop adapts to market volatility

Visual plots for:
Buy/Sell signals
Entry price
SL, TGT, and TSL levels

How it works:
Generates long signals when the fast MA crosses above the slow MA
Generates short signals when the fast MA crosses below the slow MA
Optional second candle confirmation ensures more reliable entries
TSL locks in profits dynamically while allowing for trend continuation
SL and TGT provide fixed risk and reward management

Ideal For:
Backtesting and live trading MA crossover strategies
Traders looking for automated trade management with trailing stops and dynamic exits

💡 Tip: Always recommend users to test on paper trading before using real capital.

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.