1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
MACD + BB + RSI [Alorse] signals long entries on MACD crossover above signal with RSI below 50 and price below BB basis, plus optional DMI filter. Short entries are available but disabled by default. Long exits trigger on RSI above 70 and price above upper BB, or after configured bars. Parameters adjust MACD lengths, BB settings, RSI period, and DMI options. Position size uses equity percentage with default commission.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Version
string
txtVer
version
Source
source
close
src
Length Fast
int
12
fast_length
Slow
int
26
slow_length
Signal Smoothing
int
9
signal_length
Oscillator
string
EMA
sma_source
Signal Line
string
EMA
sma_signal
╔═════ Show Bollinger Bands ═════╗
bool
true
isBB
Length
int
20
length
StdDev
float
2.0
mult
Offset
int
0
offset
Length
int
14
lenRSI
Show all 24 settings
Setting
Type
Default
Variable
╔═════ DMI Filter ═════╗
bool
false
isDMI
DI Length
int
14
len
ADX Smoothing
int
13
lensig
key level
int
23
keyLevel
Long entries
bool
true
showLong
Short entries
bool
false
showShort
Close after X # bars
bool
false
closeAfterXBars
# bars
int
20
xBars
╔══════ Enable ══════╗
bool
false
useSL
Percent
float
10
SLPercent
╔══════ Enable ══════╗
bool
false
useTP
Percent
float
1.2
TPPercent
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 identifies trend-following entries using a triple exponential moving average alignment and ATR-based exits on the main price chart. Long signals trigger when the fast EMA is above the medium EMA and medium is above slow, accompanied by a close ab
This educational strategy demonstrates moving average crossovers filtered by RSI momentum, incorporating ATR-based risk management. It calculates a 10-period SMA, a 30-period SMA, a 14-period RSI, and a 14-period ATR. Long entries trigger when the fast SMA cro
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 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
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
This strategy calculates Bollinger Bands, a configurable moving average slope, Stochastic RSI, ATR, and ADX directly on the price chart. It evaluates trend bias and momentum conditions to generate long and short swing entries using percent-of-equity sizing. Th