Professional Documents
Culture Documents
0 at
https://mozilla.org/MPL/2.0/
// © rsdesai005
//@version=5
indicator(title= "Artharjan INDIA VIX v/s Nifty Volatility Dashboard", shorttitle =
'AVIX', overlay=true)
// The following built-in color variables can be used to avoid hexadecimal color
literals: color.black, color.silver,
//color.gray, color.white, color.maroon, color.red, color.purple, color.fuchsia,
color.green, color.lime, color.olive, color.yellow, color.navy, color.blue,
color.teal, color.aqua, color.orange.
TableLocation = input.string("top_right", title='Select Table
Position',options=["top_left","top_center","top_right","middle_left","middle_center
","middle_right","bottom_left","bottom_center","bottom_right"] , tooltip="Default
location is at Centre Top")
thickness = 2
TableWidth = 0
pos1 = str.pos(comparativeTickerId, ":")
pos2 = str.pos(NiftyTickerId, ":")
if barstate.islast
table.cell(t, 0, 0, 'Reference Symbol', width=TableWidth,
text_color=color.white, bgcolor=#340370, text_size=CellTextSize)
table.cell(t, 0, 1, str.substring(comparativeTickerId,pos1+1),
width=TableWidth, text_color=color.white, bgcolor=#388e3c, text_size=CellTextSize)
table.cell(t, 0, 2, 'Forecast Period', width=TableWidth,
text_color=color.white, bgcolor=#340370, text_size=CellTextSize)
table.cell(t, 0, 3, 'Yearly', width=TableWidth, text_color=color.white,
bgcolor=#388e3c, text_size=CellTextSize)
table.cell(t, 0, 4, 'Quarterly', width=TableWidth, text_color=color.white,
bgcolor=#388e3c, text_size=CellTextSize)
table.cell(t, 0, 5, 'Monthly', width=TableWidth, text_color=color.white,
bgcolor=#388e3c, text_size=CellTextSize)
table.cell(t, 0, 6, 'Weekly', width=TableWidth, text_color=color.white,
bgcolor=#388e3c, text_size=CellTextSize)
table.cell(t, 0, 7, 'Daily', width=TableWidth, text_color=color.white,
bgcolor=#388e3c, text_size=CellTextSize)
table.cell(t, 0, 8, 'Hourly', width=TableWidth, text_color=color.white,
bgcolor=#388e3c, text_size=CellTextSize)