Guide
How does the Dynamic Trendline Break - Strategy [presentTrading] strategy work ?
The Dynamic Trendline Break Strategy automatically plots trendlines by connecting pivot highs and lows identified over a user-defined lookback period. This dynamic formation adapts to on-going market shifts, offering real-time analysis compared to static trendlines.
- It employs three methods for calculating trendline slope—Average True Range (ATR), Standard Deviation (Stdev), or Linear Regression (Linreg)—offering tailored analysis.
- Trade signals are generated when the price breaches the trendline: crossing above initiates a long position, while dipping below suggests a short position.
- Traders can set the strategy to focus on long, short, or both directions and pair it with either a fixed stop loss or the adaptive SuperTrend indicator for risk management.
Load the strategy with preferred parameters for swing detection, slope calculation, trade direction, and stop loss approach. Upon configuration, the system autonomously calculates trendlines and flags viable entries.
The default configuration sets the swing detection lookback at 30, uses the ATR method for slope, takes both long and short positions, employs the SuperTrend with a factor of 3 and a lookback of 21, and sets the stop loss level at 15%.