King Keltner Breakout Entries with a Trailing Exit
Summary
This low-frequency trend strategy enters long when the latest close rises above a channel built from an 11-period moving average plus 1.3 times ATR. While in a position, it tracks the highest observed bar high and sells when the close falls 15% below that peak. The script polls at 60-second intervals, cancels pending orders before checking signals, and sizes the buy from the available account balance, subject to minimum balance and order-size checks.
The document provides implementation details, not backtest results or evidence of profitability. It describes long-only entry logic; there is no short-entry rule. The trailing exit is based on a percentage drawdown from the tracked high, and the code’s order pricing and account checks may behave differently across exchanges. Its fixed parameter values and lack of performance evaluation limit conclusions about suitability across assets or timeframes.
Key ideas
- A long entry is triggered when the latest close exceeds the moving average plus an ATR-based channel offset.
- The strategy updates its trailing reference using the highest bar high observed during the position.
- It exits when the close falls by the configured percentage from that high.
- The script cancels outstanding orders before each signal check and uses available balance to size buys.
- The source gives no backtest evidence and contains no short-entry logic.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.