尝试在每天开放时绘制水平射线,我的代码由于某种原因没有绘制任何内容
d
答案 0 :(得分:0)
// mrtuanvn
//@version=4
study("Open Ray to right", overlay=true)
higherTF1 = input("D", type=input.resolution)
dailyopen = security(syminfo.tickerid, higherTF1, open)
line1 = line.new(x1=bar_index-1, y1=dailyopen, x2=bar_index, y2=dailyopen, xloc=xloc.bar_index, style=line.style_solid,extend=extend.right, color=color.green)
line.delete(line1[1]) // remove the previous line when new bar appears