ATR Stop Buy Strategy plots dynamic upper buy lines and lower stop-loss lines directly on the price chart. Long entries trigger when price breaches the upper threshold, while short positions trigger when price falls below the lower threshold. Settings allow customization of the backtest duration and ATR multipliers. Because backtesting start times calculate dynamically from current time, backtest results shift over time.
ATR-based breakout buy and sell threshold plots
Configurable ATR buying and selling multipliers
Dynamic backtest date range filtered by days back
Pyramiding settings supporting multiple position entries
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Days Back
int
120
daysBack
Selling Coefficent For ATR
float
1.5
sellCoeff
Buying Coefficent For ATR
float
1.2
buyCoeff
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.
Calculates standard Bollinger Bands and identifies band expansion breakouts where upper and lower bands move in opposite directions. It enters long positions when price breaks above the upper band with a high candle body percentage, and enters short positions
This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
This strategy detects price breakouts above rolling highest highs or below lowest lows over a customizable lookback period. It includes optional volume spike and ATR volatility threshold filters, along with bar confirmation rules. Positions are taken upon conf
This price-chart strategy plots a simple moving average and upper and lower bands built from the standard deviation of close, scaled by separate offset inputs. It enters a fixed quantity long when close crosses above the upper band and a fixed quantity short w
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
This strategy plots exponential-moving-average Bollinger bands on the price chart and calculates RSI. It opens a long position when close crosses above the upper band while RSI is at or above a threshold, the date filter allows trading, and no position is open