ATR-Band Q-Trend Signals with Fixed and Trailing Stops
Summary
This strategy builds a trend line from the midpoint of a rolling source-price range and an ATR-based offset. A signal occurs when price moves beyond the upper or lower band; users can choose crossover-style or cross-style conditions and optionally smooth the source with an EMA. The strategy enters long or short positions when the signal changes direction, closes the opposing position, and plots the trend line.
Risk controls use ATR-derived stop and trailing parameters. A date filter can restrict new entries and optionally close an open position after the chosen end date. The accompanying description also suggests using separate volume and oscillator indicators for confirmation, but those are not implemented in the displayed script. No performance results or testing evidence are provided, and the stop arguments should be checked carefully in the platform because the code passes ATR multiples as stop prices rather than expressing entry-relative stop levels.
Key ideas
- The trend threshold is the rolling range midpoint shifted by an ATR-scaled amount.
- Long and short entries follow changes in the threshold signal and reverse the opposing position.
- Users can enable EMA smoothing, select between two signal modes, and constrain entries to a date window.
- ATR-based stop and trailing settings are included, but their implementation should be validated in context.
- The prose mentions volume and oscillator confirmation, although the supplied strategy code does not use those signals.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.