Can someone tell me, why does this code execute more than once?
var testalert = true
if testalert and timenow > 1724003180000
strategy.order("TestLong", strategy.long, limit=61000, qty=0.5, comment="ENTER-LONG_BINANCE-FUTURES_BTCUSDT_Ondrejs-Bot_30M_472398966e86382d84031451")
label.new(x=bar_index, y = open, text=str.tostring(timenow), color=color.red, style=label.style_label_down, textcolor=color.white, size=size.large)
testalert := false
For the record, I am setting this in the strategy settings:
calc_on_every_tick=true
But that still doesn’t explain it, does it?