I tried to draw out the "for loop" number with using label.new
and str.tostring[i]
in the following script. However, the number drawing is more than what the "for loop" number is, the "for loop" number is 0 to 9 (this is only 10 ), but the label drawing on the chart is more than 10.
//@version=6
strategy("History referencing", overlay = true)
if barstate.isconfirmed
for i = 0 to 9
label.new(
bar_index - i,
high[i],
str.tostring(i),
textcolor = color.white,
size = size.large
)
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744286616a4566829.html
评论列表(0条)