EMA Touch Strategy with Rolling Limit Entries and Re-entry Rules
Summary
This script describes a two-sided EMA touch strategy. It calculates an exponential moving average and uses the prior bar’s EMA as a rolling limit price. The previous candle’s position relative to that EMA determines whether the setup is eligible for a long or short. The visible settings include position size, fixed point stop and target distances, a New York trading window, and a time to force positions flat.
The script also offers re-entry rules after a losing exit: wait for the stop bar to close, require a directional flip, or require both a price stretch and a flip. A maximum age for pending orders is configurable. The supplied text ends partway through the logic, before the complete signal conditions and order execution can be reviewed. It provides no backtest results, instrument specification, or evidence that the fixed distances and timing generalize across markets; those details limit conclusions about how the strategy behaves in practice.
Key ideas
- The prior bar’s EMA serves as the rolling limit price for entries.
- The prior candle’s location relative to the EMA sets long or short direction.
- The strategy exposes fixed stop and target distances and a configurable New York trading window.
- Re-entry options add waiting, flip confirmation, or a stretch condition after a losing exit.
- The document is truncated before complete entry logic and provides no performance evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.