TradingView
informanerd
13 Jun 2020 pukul 15.47

MTF Shifting BBs + Reverse Engineering RSIs Overlay on Chart 

Euro / U.S. DollarFOREX.com

Huraian

Another multi-timeframe indicator presents 3 MTF (each) Bollinger Bands and 3 MTF (each) Reverse Engineering RSI and of course with shifting (left/right) capability.
RERSI in a simple term is the RSI but on the main chart alongside with candles.

There are many adjustable options like:
- Show/Hide each BB
- Show/Hide each MA
- Non-integer BB deviation values
- Positive/Negative shifting values
- Show/Hide each RSI
- Show/Hide each RSI Mid Level
- Adjustable Overbought, Oversold and Mid Levels values

I wrote this after my first script MTFSBB, because it's very useful to have BBs and RSIs together on a chart.
Calculating RERSIs will take some time, so be patient with it and feel free to use it.

Nota Keluaran

A tweak to default order of band colors
Komen
praween9204011174
// © informanerd
//@version=4

study(title = "MultiTimeFrame (MTF) Shifting Bollinger Bands (BB) + Reverse Engineering Relative Strength Indexes (RE RSI) Overlay On Chart", shorttitle = "MTF.S.BB.RE.RSI", overlay = true)

// inputs

showBB1 = input(true, title = "Show BB 1")
showMA1 = input(true, title = "Show MA 1")
timeframeBB1 = input("", title = "BB Timeframe 1", type = input.resolution)
sourceBB1 = input(close, title = "BB Source 1", type = input.source)
period1 = input(20, title = "Period 1", type = input.integer, minval = 2)
deviation1 = input(2.0, title = "Deviation 1", type = input.float, minval = 1)
shiftBB1 = input(0, title = "BB Shift 1", type = input.integer)

showRSI1 = input(true, title = "Show RSI 1")
showML1 = input(true, title = "Show Mid Level 1")
timeframeRSI1 = input("", title = "RSI Timeframe 1", type = input.resolution)
sourceRSI1 = input(close, title = "RSI Source 1", type = input.source)
length1 = input(14, title = "Length 1", type = input.integer, minval = 1)
obL1 = input(70, title = "Overbought Level 1", type = input.integer, minval = 0, maxval = 100)
midL1 = input(50, title = "Mid Level 1", type = input.integer, minval = 0, maxval = 100)
osL1 = input(30, title = "Oversold Level 1", type = input.integer, minval = 0, maxval = 100)
shiftRSI1 = input(0, title = "RSI Shift 1", type = input.integer)

showBB2 = input(true, title = "Show BB 2")
showMA2 = input(true, title = "Show MA 2")
timeframeBB2 = input("", title = "BB Timeframe 2", type = input.resolution)
sourceBB2 = input(close, title = "BB Source 2", type = input.source)
period2 = input(20, title = "Period 2", type = input.integer, minval = 2)
deviation2 = input(2.0, title = "Deviation 2", type = input.float, minval = 1)
shiftBB2 = input(0, title = "BB Shift 2", type = input.integer)

showRSI2 = input(true, title = "Show RSI 2")
showML2 = input(true, title = "Show Mid Level 2")
timeframeRSI2 = input("", title = "RSI Timeframe 2", type = input.resolution)
sourceRSI2 = input(close, title = "RSI Source 2", type = input.source)
length2 = input(14, title = "Length 2", type = input.integer, minval = 1)
obL2 = input(70, title = "Overbought Level 2", type = input.integer, minval = 0, maxval = 100)
midL2 = input(50, title = "Mid Level 2", type = input.integer, minval = 0, maxval = 100)
osL2 = input(30, title = "Oversold Level 2", type = input.integer, minval = 0, maxval = 100)
shiftRSI2 = input(0, title = "RSI Shift 2", type = input.integer)

showBB3 = input(true, title = "Show BB 3")
showMA3 = input(true, title = "Show MA 3")
timeframeBB3 = input("", title = "BB Timeframe 3", type = input.resolution)
sourceBB3 = input(close, title = "BB Source 3", type = input.source)
period3 = input(20, title = "Period 3", type = input.integer, minval = 2)
deviation3 = input(2.0, title = "Deviation 3", type = input.float, minval = 1)
shiftBB3 = input(0, title = "BB Shift 3", type = input.integer)

showRSI3 = input(true, title = "Show RSI 3")
showML3 = input(true, title = "Show Mid Level 3")
t
praween9204011174
praween9204011174
Version 6
praween9204011174
praween9204011174
Lebih