Supertrend and Moving Average Crossover Strategy with Flexible Inputs
Summary
This strategy enters long when a selected moving average crosses above a custom Supertrend line and short on the reverse cross. It confirms signals at bar close and allows the trader to invert the direction. Supertrend uses a selectable price basis and ATR period and factor; the moving average can use SMA, EMA, HMA, or WMA with its own price input.
A distinctive option smooths the Supertrend line with an EMA before applying the selected moving average, comparing two trend measures instead of price with the Supertrend. The document suggests this may reduce false flips in sideways markets, but supplies no performance study to establish that claim. Optional stop-loss and take-profit exits can be set in percentage or price points. A chart example and tester summary are mentioned for a gold futures instrument on a 15-minute chart over a stated date range, but detailed results are absent. The script is a configurable technical strategy; its performance depends on instrument, timeframe, settings, and execution assumptions.
Key ideas
- The strategy opens long or short positions when a moving average crosses the Supertrend line.
- Supertrend and moving-average sources can be selected independently from several price series.
- The moving average can instead use an EMA-smoothed Supertrend line as its source.
- Stop losses and profit targets can be enabled independently and expressed as percentages or points.
- The document offers a chart example but does not provide enough performance data to validate its claims.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.