Stochastic Crossover Trading with Pivot Stops and Dynamic Alerts
Summary
This document presents a stochastic crossover example and explains how TradingView alerts can pass calculated trade values to an external execution connector. A long signal occurs when the smoothed %K line crosses above %D below the upper threshold; a short signal occurs when %K crosses below %D above the lower threshold. The script derives stop levels from the latest confirmed pivot low or high and defines partial and full profit exits. Alert messages carry those stop and target values, illustrating how dynamic alert fields can support broker-side execution.
The example accounts for commission, but its author sets modeled slippage to zero and argues that fast alert delivery can limit it; actual execution still depends on spreads, latency, and broker conditions. The article describes the strategy as non-repainting and cautions that historical results do not guarantee future performance. The attached backtest configuration is for BTC/USDT futures over about one month, despite the prose describing a EUR/USD six-hour use case, and no results are supplied. The script also contains additional entries, so its backtest behavior may not match the described alert logic exactly.
Key ideas
- Smoothed stochastic line crossovers generate long and short signals subject to threshold filters.
- The latest confirmed pivot high or low anchors the respective stop level.
- The example includes partial and full profit exits and sends calculated values in alerts.
- Zero modeled slippage and fast alert delivery do not establish real execution quality.
- The published backtest setup differs from the instrument and timeframe discussed in the prose.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.