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
Signals can fire on a touch of the band, on a regime flip, or both. Optional filters use the opening range of each session, ADX strength, an ATR minimum and a 50 EMA. After the first entry it can add up to 49 further entries in the profit direction at fixed steps, with target, stop and trailing options set in points or percent.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Enable BUY (long fade)
bool
true
enLong
Enable SELL (short fade)
bool
true
enShort
Fire signal on
string
Both
trigMode
Qty per entry (first + each pyramid)
float
1.0
baseQty
Pivot point period
int
2
ppPrd
ATR factor
float
3.
ppFactor
ATR period
int
10
ppAtrLen
Use ORB filter
bool
true
useOrb
ORB length (first N candles of session)
int
3
orbBars
DI length
int
14
diLen
ADX smoothing
int
14
adxSm
Min ADX to enter
float
20
minAdx
Show all 27 settings
Setting
Type
Default
Variable
Use ATR filter
bool
false
useAtr
ATR length
int
14
atrLen
ATR must be greater than
float
10
atrThr
Use EMA filter
bool
true
useEma
EMA length
int
50
emaLen
Number of pyramids after first entry
int
2
numPyr
Pyramid step type
string
Points
pyrType
Pyramid step (in unit above)
float
20
pyrVal
Target type
string
Points
tgtMode
Target value
float
60
tgtVal
SL type
string
Points
slMode
SL value
float
40
slVal
Trailing type
string
Off
trlMode
Trailing distance
float
30
trlVal
Plot ATR (own scale)
bool
false
showAtrP
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 the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi
This strategy trades opening gap fades on the DAX index during the European Xetra session. At the 09:00 CET market open, it measures the opening price against the previous close relative to an ATR threshold. If a gap exceeds the threshold, it fades the move by
This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe
This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T
The FTB Strategy is a short-only overlay strategy targeting EURUSD during the European session from 0200-0700. It enters short positions when filters confirm RSI overbought, a bullish prior bar close, or a high price level within lookback bars, combined with a
This mean-reversion trading strategy targets XAUUSD during the Asian trading session. It generates buy signals when price touches the lower Bollinger Band and RSI is oversold, and sell signals when price reaches the upper band and RSI is overbought. Trades are