ATR-based stop loss and take profit multipliers, each defaulting to 1.0, set exit distances. A position side setting limits trading to long, short or both. Further settings cover cloud lengths, MACD lengths, stochastic smoothing and the ATR smoothing method. Results depend heavily on the chosen settings.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Conversion Line Length
int
9
conversionPeriods
Base Line Length
int
26
basePeriods
Lagging Span 2 Length
int
52
laggingSpan2Periods
Displacement
int
26
displacement
Fast Length
int
12
fast_length
Slow Length
int
26
slow_length
Source
source
close
src
Signal Smoothing
int
9
signal_length
Simple MA (Oscillator)
bool
false
sma_source
Simple MA (Signal Line)
bool
false
sma_signal
%K Length
int
5
periodK
%K Smoothing
int
3
smoothK
Show all 22 settings
Setting
Type
Default
Variable
%D Smoothing
int
3
periodD
Atr Length
int
8
atrlength
Stop loss multi Atr
float
1.0
SMulti
Take profit multi Atr
float
1.0
TMulti
Smoothing
string
RMA
smoothing
Position side
string
Both
operation_type
Show sl&tp lines
bool
true
showlines
MA Length
int
100
sma_len
Backtesting Start Time
time
timestamp("1 Jan 2020 00:00 +0000")
i_startTime
Backtesting End Time
time
timestamp("31 Dec 2025 23:59 +0000")
i_endTime
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 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 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
CombinedBinHAndClucV6 is a trading strategy based on the popular BinHV45 and ClucMay72018 algorithms. It calculates dual Bollinger Bands, Exponential Moving Averages, Relative Strength Index, Average True Range, and volume metrics across primary and one-hour h
LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set