Nine-Period High-Low EMA Trend Strategy with Percentage Exits
Summary
This strategy uses separate nine-period exponential moving averages of bar highs and lows as a price channel. It enters long when the close is above the high-based average and short when the close is below the low-based average. A qualifying signal can close an opposing position and reverse direction, so the method follows price movement rather than waiting for a crossover event. The script also offers adjustable target and stop percentages, a date range for entries, and a monthly and yearly profit summary table.
The document describes the rules and code but gives no strategy report, tested market, timeframe, or evidence of profitability. The stated defaults include a target larger than the stop, but that alone does not establish an advantage. The strategy sets commission to zero and uses fixed quantity, so results may not reflect trading costs or a particular account’s risk. The moving-average plots are labeled as eight-period averages even though the default input length is nine, another detail users should reconcile when interpreting the display.
Key ideas
- A close above the EMA of highs triggers a long entry, while a close below the EMA of lows triggers a short entry.
- Opposing positions are closed and reversed when the other directional condition occurs.
- Percentage-based profit targets and stop losses are configurable for both long and short positions.
- Entries are limited to a selected date window, and positions are closed when that window ends.
- The supplied description contains no performance evidence, and the default backtest settings omit commissions.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.