This strategy executes long positions by combining a 200-period EMA trend filter, Stochastic RSI oversold crosses, and Williams Alligator retracements, supplemented by RSI divergence detection.
200 EMA + Alligator + Stochastic Long Strategy triggers long entries when the price trades above the 200 EMA while simultaneously pulling back below the shifted Alligator lines as the Stochastic RSI crosses upward from oversold territory. Exits are driven by an RSI threshold, bar expiration, or an optional ATR-based trailing stop. It draws directly on the price chart.
200-period EMA overall trend filter
Williams Alligator smoothed moving average pullback detection
Stochastic RSI oversold crossover trigger
Regular and hidden RSI divergence scanning
Configurable maximum bar hold time and optional ATR exits
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Backtesting Start
time
timestamp("1 Jan 2015")
start
Order Expiration
int
100
maxTimeOpen
Use ATR?
bool
false
useAtr
EMA Length
int
200
len1
EMA Source
source
close
src1
EMA Offset
int
0
offset
Stochastic K
int
3
smoothK
Stochastic D
int
3
smoothD
RSI Length
int
14
lengthRSI
Stochastic Length
int
14
lengthStoch
RSI Source
source
close
src2
Jaw Length
int
13
jawLength
Show all 32 settings
Setting
Type
Default
Variable
Teeth Length
int
8
teethLength
Lips Length
int
5
lipsLength
Jaw Offset
int
8
jawOffset
Teeth Offset
int
5
teethOffset
Lips Offset
int
3
lipsOffset
RSI Period
int
9
len
RSI Source
source
close
src
Pivot Lookback Right
int
3
lbR
Pivot Lookback Left
int
1
lbL
Take Profit at RSI Level
int
80
takeProfitRSILevel
Max of Lookback Range
int
60
rangeUpper
Min of Lookback Range
int
5
rangeLower
Plot Bullish
bool
true
plotBull
Plot Hidden Bullish
bool
true
plotHiddenBull
Plot Bearish
bool
true
plotBear
Plot Hidden Bearish
bool
false
plotHiddenBear
ATR Length
int
14
length
ATR Multiplier
float
1
atrMultiplier
Profit %
float
10
longProfitPercent
Loss %
float
10
longLossPercent
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.
MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra
This strategy plots on the price chart and opens long or short positions when a weighted score from MACD, Stochastic RSI, RSI, Supertrend and a moving-average crossover exceeds a user-set trigger. Each component has its own weight and candle delay. Entries can
This strategy combines Arnaud Legoux Moving Average percentage price change calculations with an adaptive Gaussian Moving Average to generate trend-following signals. Long and short entries are triggered when the ALMA change calculation crosses above or below
This strategy generates trading signals based on a selectable momentum engine, supporting MACD, RSI, Stochastic, or Rate of Change. Entries trigger on signal crosses, zero-line crosses, or threshold crosses, with an optional moving average trend filter. Risk m
255 EMA Strategy combines an exponential moving average with Average True Range bands and standard MACD crossovers to generate entry signals. Drawn directly on the price chart, it plots the central 255 EMA along with upper and lower volatility envelopes. Trade
This strategy evaluates simple moving averages and the Relative Strength Index to generate trading signals. It calculates a 10-period SMA, a 30-period SMA, and a 14-period RSI. Long positions are entered when the fast SMA crosses above the slow SMA while RSI i