by Web3Degenerate· code credited to ZenAndTheArtOfTrading / www.PineScriptMastery.com
The ATR Reversion System is a long-only mean-reversion strategy that plots ATR bands around a short-term EMA (20) and a long-term EMA (200) filter on the price chart.
ATR Reversion System signals entries by checking if the close is below the bottom ATR band and above the long EMA, then places a limit buy order stretched below the low by the ATR stretch value. Exits occur when the sell price source reaches the selected band (top, middle, or bottom) or when the close drops below the long EMA. Main settings control the ATR period, band distance, buy stretch, sell band type, and price source. It draws all elements on the price chart but has no stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Long-term EMA
int
200
i_EmaLongLength
Short-term EMA Length
int
20
i_EmaShortLength
ATR Period
int
5
i_ATRPeriod
ATR Band Distance
float
1
i_ATRBand
ATR Buy Stretch
float
1
i_ATRStretch
Sell At Band:
string
Middle
i_SellBand
Sell Price Source
source
high
i_SellSrc
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy plots Bollinger Bands on the price chart with adjustable length, standard deviation, and offset. It defines buy and sell zones using candle size percentage and body size thresholds. Long positions enter when the lower zone is breached without con
The Mean Reversion Strategy Template calculates a baseline mean using SMA, EMA, or VWAP alongside upper and lower deviation bands based on standard deviation, ATR, or percentage offsets. It generates long and short entries when price touches, bounces from, or
This strategy backtests a long Bollinger Band deal on the price chart for 3Commas-style bots. It plots short and long simple moving averages, offset bands, and the average entry price of the open deal. A long starts when price crosses the lower band inside a c
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po
This strategy executes trades based on price interactions with standard Bollinger Bands plotted on the price chart. It calculates a simple moving average basis line along with upper and lower standard deviation bands. Long entries are triggered when price cros
This strategy scaffold calculates a standard Volume Weighted Average Price (VWAP) alongside upper and lower volatility bands set 1.5 ATRs away. It generates long entry signals when a confirmed bar closes below the lower band and short entry signals when a conf