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
The trend is a fast EMA above or below a slow EMA on a chosen higher timeframe, shown as a background color. An entry marks when price crosses a 9-period EMA in the trend direction while RSI is not past its overbought or oversold level. ATR multiples are set for stop and target, and alerts are available. It places no orders and the higher-timeframe reading can change while that bar is open.
Higher-timeframe fast and slow EMA trend background
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
HTF Resolution
timeframe
60
htf_res
HTF Fast EMA Length
int
20
htf_fast_len
HTF Slow EMA Length
int
50
htf_slow_len
LTF Fast EMA Length
int
9
ltf_fast_len
RSI Length
int
14
rsi_len
RSI Overbought Level
int
70
rsi_ob
RSI Oversold Level
int
30
rsi_os
ATR Length
int
14
atr_len
Stop Loss ATR Multiplier
float
1.5
sl_mult
Take Profit ATR Multiplier
float
3.0
tp_mult
Show Entry Signals
bool
true
show_plots
Show HTF Trend Background
bool
true
show_bg
Show all 13 settings
Setting
Type
Default
Variable
Enable Alerts
bool
true
alert_on
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 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
Sniper Algo is a multi-indicator technical analysis suite that plots directly on the main price chart. It integrates Ichimoku Kinko Hyo components, automated support and resistance zones, dual exponential moving averages, and optional buy and sell signals. Use
The indicator plots the fast 9 and slow 15 EMA on the price chart and colors the area between them green for bullish trend and red for bearish. It generates BUY signals on the fast EMA crossing above the slow EMA and SELL signals on the opposite crossover. Sig
The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec