Pivot Distance Strategy with Configurable Trend and Threshold Logic
Summary
This script describes a configurable strategy framework centered on pivot levels and a selectable signal method. Its settings offer pivot lookback and left/right pivot bars, long-only, short-only, or two-sided trading, and three logic choices: pivot-distance breakout, a moving average crossing zero, or a fast and slow moving average crossover. Moving average type and length can also be selected.
Thresholds may be defined as fixed percentages or derived from ATR, Bollinger Bands, or Keltner Channels. Optional risk controls include ATR-based stop loss, take profit, and trailing stop settings. The excerpt ends partway through the trailing-stop inputs, before the remaining calculations and entry/exit rules are visible. It supplies no market, timeframe, backtest configuration, or performance evidence. As a result, it documents the available design choices but does not establish how the strategy behaves or whether any configuration is effective.
Key ideas
- The script offers pivot-distance breakout and two moving-average crossover signal modes.
- Users can choose long-only, short-only, or two-sided trading.
- Threshold settings support fixed percentages, ATR, Bollinger Bands, and Keltner Channels.
- Stop loss, take profit, and trailing stop controls are optional.
- The excerpt omits the complete strategy logic and provides no backtest results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.