1Copy the scriptPress Copy script above, or the copy button on the code below.
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
193 lines of Pine Script v5 from Tradingview/opening-range-v2.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Opening Range combines higher-timeframe MACD and RSI filters with standard deviation volume heatmap thresholds to assess directional bias and volume intensity. Main settings allow customization of the DSL length, MACD and RSI timeframes and parameters, standard deviation periods, and volume thresholds. Because it retrieves higher-timeframe data using lookahead, historical bars exhibit lookahead bias.
Directional sentiment line ribbon overlay
Multi-timeframe MACD and RSI trend filters
Volume heatmap thresholds using standard deviation
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Length
int
150
dsl_length
MACD Source
source
close
macd_source
MACD Fast
int
12
macd_fast
MACD Slow
int
26
macd_slow
MACD Length
int
9
macd_length
MACD Timeframe
timeframe
15
macd_tf
RSI Source
source
close
rsi_source
RSI Length
int
14
rsi_length
Above Trigger
int
50
rsi_above_trigger
Below Trigger
int
50
rsi_below_trigger
RSI Timeframe
timeframe
15
rsi_tf
MA Length
int
610
hm_length
Show all 32 settings
Setting
Type
Default
Variable
Std Length
int
610
hm_slength
Extra High Volume Threshold
float
4
thresholdExtraHigh
High Volume Threshold
float
2.5
thresholdHigh
Medium Volume Threshold
float
1
thresholdMedium
Normal Volume Threshold
float
-0.5
thresholdNormal
Up Extra High
color
#00FF00
cupthresholdExtraHigh
Up High
color
#30FF30
cupthresholdHigh
Up Medium
color
#60FF60
cupthresholdMedium
Up Normal
color
#8FFF8F
cupthresholdNormal
Up Low
color
#BFFFBF
cupthresholdLow
Down Extra High
color
#FF0000
cdnthresholdExtraHigh
Down High
color
#FF3030
cdnthresholdHigh
Down Medium
color
#FF6060
cdnthresholdMedium
Down Normal
color
#FF8F8F
cdnthresholdNormal
Down Low
color
#FFBFBF
cdnthresholdLow
Heatmap Extra High
color
chm1
chmthresholdExtraHigh
Heatmap High
color
chm2
chmthresholdHigh
Heatmap Medium
color
chm3
chmthresholdMedium
Heatmap Normal
color
chm4
chmthresholdNormal
Heatmap Low
color
chm5
chmthresholdLow
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 generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem
This overlay indicator plots a SuperTrend using a 10-period ATR with a multiplier of 3, drawing up and down stop lines and a faint trend fill on the price chart. It compares a 9-period EMA with an 18-period EMA and a 12/26/9 MACD against its signal, and it req
Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne
MasterTrader V1 is an indicator that plots two exponential moving averages (fast length 9, slow length 21) and RSI (length 14) on the close price chart. It generates long entry signals when the fast EMA crosses above the slow EMA, RSI stays between 30 and 70,
This indicator calculates dual Exponential Moving Averages alongside their slopes, normalized distance, and momentum to detect trend shifts on the price chart. It plots standard EMA crossovers while also assessing early warning conditions when EMAs approach ea
This Pine Script indicator plots fast and slow EMA lines on the price chart to identify trend direction. It applies RSI and MACD filters to confirm momentum strength and checks volume against its average for confirmation. Buy signals trigger on fast EMA crossi