hello how can i find the barindex of the trade at 11:57 at 15 minute chart. i am using this formula and since the trade happend at 11:57 the next bar date is 00:00:00 next day. it does not work.
exitin15Minute=Name()==STOCKNAME AND BarIndex()==ValueWhen((DateNum() ==ExitDate) AND (TimeNum()>=ExitTime AND Ref(TimeNum(),-1) <ExitTime) , BarIndex());
