Size is based on a percentage of equity per unit, up to a set maximum. An ATR initial stop and a chandelier trail manage open trades, while optional targets close one unit at three, six, and nine ATR multiples. An optional daily moving-average filter on another symbol and a volume floor can block trades. Signals, stops, and Donchian bands are drawn on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Allow LONGs?
bool
true
allowLong
Allow SHORTs?
bool
true
allowShort
Donchian ENTRY lookback
int
55
entryLen
RSI length
int
14
rsiLen
RSI threshold for LONG adds
float
60.0
rsiLongAdd
RSI threshold for SHORT adds
float
40.0
rsiShortAdd
N = ATR length
int
20
nLen
Initial stop (in N)
float
2.0
stopN
Chandelier trail lookback
int
22
trailLen
Chandelier trail (in N)
float
3.0
trailN
Add every X * N (if momentum OK)
float
0.5
addStepN
Max units (incl. initial)
int
4
maxUnits
Show all 28 settings
Setting
Type
Default
Variable
Risk % of equity PER UNIT
float
1.0
riskPct
Use profit targets?
bool
true
useTargets
Target 1 (in N) - Close 1 unit
float
3.0
target1N
Target 2 (in N) - Close 1 unit
float
6.0
target2N
Target 3 (in N) - Close 1 unit
float
9.0
target3N
Use market regime filter?
bool
false
useMarket
Market symbol for regime (if used)
symbol
SPY
marketSym
Regime timeframe (if used)
timeframe
D
marketTF
Market MA length (if used)
int
200
marketLen
Min 20-bar avg volume (chart TF)
int
0
minVol
Plot signals & stops?
bool
true
showSignals
Plot Donchian bands?
bool
true
plotDon
Plot RSI?
bool
true
plotRSI
Backtest FROM (yyyy-mm-dd)
time
timestamp("2022-01-01T00:00:00")
fromDate
Backtest TO (yyyy-mm-dd)
time
timestamp("2099-12-31T23:59:59")
toDate
Force FLAT at range start?
bool
true
flatAtFrom
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 overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
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 trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros
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 combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC