5min MACD Scalp by Joel (3commas) enters long and short positions directly on the price chart using customizable percentage-based stop loss and take profit targets. Traders can enable histogram peak and average filters, set multi-timeframe resolutions, and configure post-loss trade pause logic to halt strategy execution for a specified number of bars.
EMA trend filter with crossover or price position options
MACD entry signals with histogram peak lookback filters
Optional RSI momentum filter with customizable thresholds
Percentage-based take profit and stop loss execution
Trade pause counter following consecutive losing trades
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Long
bool
true
i_chkLong
Short
bool
true
i_chkShort
Start Date
time
timestamp('01 Jan 2020 00:00 +0100')
i_startTime
End Date
time
timestamp('1 Jan 2099 00:00 +0100')
i_endTime
Long TP (%)
float
0.5
i_longProfitPerc
Short TP (%)
float
0.5
i_shortProfitPerc
Long SL (%)
float
0.4
i_longStopPerc
Short SL (%)
float
0.4
i_shortStopPerc
For how many bars?
int
0
i_tradePause
Only loosing trades
bool
true
i_tradePauseLoss
| How much?
int
1
i_tradeLossNum
Trend type
string
Ema cross
i_emaOpt
Show all 40 settings
Setting
Type
Default
Variable
Ema fast lenght
int
50
i_emaFast
Ema slow lenght
int
200
i_emaSlow
Valid cross?
int
350
i_emaTrendBarsBack
MACD resolution
timeframe
i_macdRes
Fast Length
int
12
i_macdFastLen
Slow Length
int
26
i_macdSlowLen
Signal Smoothing
int
9
i_macdSignalLen
Min histogram value
float
0.00000
i_histMin
Lookback period
int
10
i_histHighestLookback
Compare with histogram average?
bool
false
i_useHistChk
Avg histogram lenght
int
50
i_histAvgLookback
% above avg
int
50
i_aboveHist
Use RSI Filter
bool
false
i_rsiChk
TimeFrame
timeframe
i_rsiRes
Lenght
int
14
i_rsiLen
Min for Long
float
0.0
i_rsiMinLong
Max for Long
float
70.0
i_rsiMaxLong
Min for Short
float
30.0
i_rsiMinShort
Max for Short
float
100.0
i_rsiMaxShort
RSI direction confirmation
bool
false
i_rsiDirectChk
Bars back for direction
int
1
i_rsiDirectLen
Use Pullback filter
bool
false
i_usePullbackChk
Lookback period
int
2
i_pullbackCount
More than
int
2
i_pullbackBigger
Show back tester
bool
true
i_drawTester
i_testerPosition
string
Top right
i_testerPosition
R:R
float
1.0
i_rr
Starting Balance
float
100.0
startBalance
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 trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th
This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c
The Reverse RSI Strategy is a scalping system designed for forex pairs during specific trading sessions. It combines a smoothed RSI indicator with five Exponential Moving Averages to identify mean-reversion trade opportunities. Position sizing dynamically adju
This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al
This strategy goes long when RSI is below the oversold level and short when RSI is above the overbought level, and it can require price to agree with a 200-period EMA. It opens only when flat and, on the entry bar, sets a fixed take profit and stop loss from t
This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo