Afternoon, I am trying to write a simple strategy to open a long trade intra-candle and not at close. I've tried a few settings that didn't work so stripped the script down to a dummy sample. The code below opens the long at the close of the candle and not somewhere around 15343 as I'd expect. I thought this was the point of the calc_on_every_tick setting but it appears to do nothing.
//@version=5
strategy(title = 'Simple Strategy', shorttitle = 'Simple Strategy', overlay = true, calc_on_every_tick = true)
if(ta.crossover(15343, low))
strategy.entry(id = "Long", direction = strategy.long, qty = 1, stop = 5, comment = str.tostring(close))