早安,
我想获得图表上的蜡烛总数。我设法以多种方式做到这一点,但没有一个适用于“xxx”命令:
var int total_candles = 0
if barstate.islast
total_candles := bar_index + 1
当我调用我的变量时:
compteur = input.int(defval = total_candles , title='Nombre de bougies')
我收到以下错误:
14:11:07
Erreur à 37:31 Cannot call 'input.int' with argument 'defval'='total_candles'. An argument of 'series int' type was used but a 'const int' is expected.
14:11:07
Erreur à 187:18 The end value of the "for" loop must be a number.
我想在图表的最开头开始我的线,而不管它的长度如何。
你能帮帮我吗?
提前致谢