I would like to get the high value of the current day. And the high value should be taken from previous bars of the current day.
I tried this code
security(syminfo.ticker, "D", high, lookahead=barmerge.lookahead_on)
But the problem is that it is taking the high value of the current day after all the current day's candles.
Thank you.