Guide
How does the PercentX Trend Follower [Trendoscope] strategy work ?
The PercentX Trend Follower strategy, also termed "Trendoscope," capitalizes on trend-following concepts complemented by pattern analysis. At its core, it features the PercentX Oscillator, which integrates aspects from both Bollinger PercentB and Keltner Percent K. Traders have the flexibility to fine-tune this oscillator by selecting the moving average type and setting its length.
Oscillator ranges are dynamically calculated using two lengths: an inner length for establishing the highest and lowest values of the oscillator, and an outer length to further refine these ranges, either through an additional moving average or the extreme values of the range.
Boundaries for the oscillator are then formulated via additional high/low or moving average computations on these range figures. A breakout is signaled when the closing price surpasses the upper boundary or dips below the lower boundary. These breakouts indicate potential entry opportunities.
Executing trades based on these signals involves placing stop orders strategically at a specified distance from the current close price, calculated using the Average True Range (ATR). For an upper breakout, a long stop order is set at 1XATR above the close, and a short stop order is placed at 2XATR below it. Inversion of these multipliers is applied for a lower breakout. This setup aims to ride the trend while minimizing false signals.
Trades are executed without pre-set targets, leveraging the momentum of the trend, and the strategy dictates that positions remain open until a stop-loss is hit. This stop-loss is continually updated with each new breakout, striving to lock in gains while mitigating risks. The script allows for parameter customization to cater to individual trading styles and is visually supported by a blue line for the PercentX Oscillator, with accompanying orange and lime lines for ranges, and distinct red/green boundaries that highlight spikes upon breakouts.