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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
A signal appears when the chosen number of timeframes agree, optionally requiring the lower ones to flip first. Stops use an ATR multiple, targets an R multiple, with a maximum holding time. A built-in simulation counts commission and slippage, treats ambiguous bars as losses and shows a long-versus-short split. Higher timeframes use request.security without lookahead.
Four-timeframe EMA bias ladder
Optional lower-to-higher flip order
ATR stop, R-multiple target and max hold
Cost-inclusive simulated P&L with long and short split
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
TF1 (lowest — run chart here)
timeframe
1
tf1
TF2
timeframe
3
tf2
TF3
timeframe
5
tf3
TF4 (highest)
timeframe
15
tf4
TFs required to align
int
4
nReq
Strict order (lower must flip first)
bool
true
strict
Bias EMA fast
int
9
emaFast
Bias EMA slow
int
21
emaSlow
Stop = ATR x
float
1.5
atrMult
Target (R multiple)
float
1.5
rMult
Max bars in trade (else close)
int
120
maxHold
Contracts
int
1
contracts
Show all 15 settings
Setting
Type
Default
Variable
$ per point (MGC=10, GC=100)
float
10.0
ptValue
Commission $/side
float
0.74
commSide
Slippage pts/side
float
0.1
slipPts
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 multi-timeframe indicator calculates Stochastic oscillator directional bias across three user-defined timeframes. It compares %K and %D to determine whether momentum is bullish or bearish on each timeframe. When all three timeframes align in the same dire
Wick Rejection S/R Strategy identifies key support and resistance zones based on candlestick wick rejections and liquidity sweeps directly on the price chart. It calculates potential reversal and breakout retest zones using configurable wick thresholds, level
This indicator plots a Price Action Channel (PAC) based on high, low, and close moving averages alongside fast, medium, and slow trend EMAs directly on the price chart. It detects regular and Bill Williams fractals to track market structure and identifies pull
This indicator overlays multiple simple moving averages and VWAP directly on the price chart to identify directional pullback and breakout setups. It calculates synthetic Heikin-Ashi values to gauge candle touches across moving averages and requests five-minut
This indicator plots a fast and a slow exponential moving average on the price chart and marks buy and sell signals for Bitcoin scalping. A buy appears when the fast EMA crosses above the slow EMA, RSI is above its buy threshold, the MACD line is above its sig
This indicator evaluates multiple technical trading strategies and strategy combinations across various timeframes to identify the top-performing setup for Turkish stocks and other assets. Depending on whether the active chart is intraday or higher timeframe,