Guide
How does the Trailing SL Strategy [QuantNomad] strategy work ?
The Trailing SL Strategy by QuantNomad is designed to use a dynamic stop-loss (SL) which adjusts with the market movements. It offers three types of SL that the trader can choose from. The SL is either set at a percentage of the trade price, calculated using the Average True Range (ATR) indicator multiplied by a factor, or set as an absolute value.
- Percentage-based SL: The SL adjusts according to a predetermined percentage of the current price.
- ATR-based SL: The SL is established using the ATR indicator over a defined length of time and then scaled by a multiplier.
- Absolute SL: The SL is set to a fixed absolute value from the entry point.
When the SL is hit, the strategy enters a reverse position, which means it switches from long to short, or vice versa. This new position also comes with a trailing SL that shifts based on market price movements. Traders can backtest this strategy within a specified date range to analyze its performance over time.
The built-in TradingView script handles the calculations for the SL values, which change dynamically as the market fluctuates. The plotting functionality indicates where the SL is set for both long and short positions, allowing traders to visually track their risk on the chart in real-time.