SMA Crossover Entries with Multi-Timeframe High and Low Plots
Summary
The strategy enters long when a 14-period simple moving average crosses above a 28-period simple moving average, and enters short when it crosses below. The script also plots high and low series requested from daily, hourly, 30-minute, and 15-minute timeframes, using separate colors to distinguish them. These levels can provide visual context around shorter-term crossover signals.
The document gives only the rules and code; it reports no trade statistics, transaction-cost assumptions, risk controls, or evidence of profitability. A helper function intended to accumulate highs and lows within a timeframe is defined but is not used by the plotted series, which instead request each timeframe's high and low directly. Thus the plots should not be assumed to represent completed-period extrema or stable support and resistance. The crossover logic is a basic example and may behave differently across chart intervals and instruments; it needs explicit testing before practical use.
Key ideas
- A crossover of the faster simple moving average above the slower one triggers a long entry.
- A downward crossover triggers a short entry.
- The chart plots daily, hourly, 30-minute, and 15-minute high and low series.
- The defined accumulating-high-low helper does not supply the plotted levels.
- The document offers no backtest evidence, risk controls, or cost analysis.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.