ATR Supertrend Signals with Moving Average Bias Context
Summary
This Pine Script strategy builds a Supertrend trend state from an ATR-adjusted price band. Its default settings use a 15-period ATR and a 9.1 multiplier, with a choice between the built-in ATR calculation and a smoothed true-range calculation. A buy signal occurs when the state switches from bearish to bullish; a sell signal occurs on the reverse switch. The source shown also begins plotting the trend bands and defines controls for displaying signals, highlighting, and bar colors.
The script includes inputs for a multi-timeframe bias table based on fast and slow EMA or SMA lengths, plus a date range for restricting strategy activity. However, the supplied source ends partway through the plotting section, so the table logic, order rules, exits, and use of the date range cannot be confirmed. It provides no backtest results or performance evidence; the listed parameters are configurable examples rather than proof of effectiveness.
Key ideas
- The trend state changes when price crosses the prior ATR-adjusted Supertrend band.
- Buy and sell signals are generated when the trend state reverses direction.
- The ATR period, multiplier, source price, and ATR calculation method are configurable.
- The script provides inputs for a moving average bias table across timeframes.
- The excerpt is incomplete and does not establish order execution or strategy performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.