Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
841 B
3
Indexable
[High,Low,Open,Close] = request.security_lower_tf(syminfo.tickerid, res, [high,low,open,close])    
float[] hhigh = na
float[] llow = na
float[] oopen = na
float[] cclose = na
hhigh := High
llow := Low
oopen := Open
cclose := Close
var float sampleassigning = na
if array.size(hhigh) > 0
    sampleassigning := array.get(hhigh,0)// - llow
var testTable = table.new(position = position.bottom_right, columns = 1, rows = 5, bgcolor = color.yellow, border_width = 1)
table.cell(testTable,column=0,row=0,text='hhigh: ' + str.tostring(hhigh) + ' llow: ' + str.tostring(llow),text_color=color.black)
table.cell(testTable,column=0,row=1,text='oopen: ' + str.tostring(oopen) + ' cclose: ' + str.tostring(cclose),text_color=color.black)
table.cell(testTable,column=0,row=2,text='sample range: ' + str.tostring(sampleassigning),text_color=color.black)