我尝试关闭条形索引,但它不起作用。例如,橙色标签显示为 4154.4177,但 ES MINI 期货应显示为 4150.50 或 4150.25。因为它以 0.25 分的增量移动。谢谢!
label.delete(rsidown)
yrsil = al*bar_index + bl
rsidown := label.new(bar_index, yrsil,
text=str.tostring(yrsil, "#.####"), color=color.red, style=label.style_text_outline, yloc=yloc.price)
label.delete(rsiup)
yrsih = ah*bar_index + bh
rsiup := label.new(bar_index, yrsih, text=str.tostring(yrsih, "#.####"), color=color.green, style=label.style_text_outline, yloc=yloc.price)
你应该试试这个在你的标签上打勾的交易视图价值:
label.delete(rsiup)
HighPlace = ta.highest(10)
yrsih = ah*bar_index + bh
rsiup := label.new(bar_index, HighPlace, text=str.tostring(yrsih/syminfo.mintick, "#"), color=color.green, style=label.style_label_down, yloc=yloc.price)
label.delete(rsidown)
LowPlace = ta.lowest(10)
yrsil = (al*bar_index + bl)
rsidown := label.new(bar_index, LowPlace, text=str.tostring(yrsil/syminfo.mintick, "#"), color=color.red, style=label.style_label_up, yloc=yloc.price)