When I use this code in a backtest, it assumes that all trades occurred at the same time i.e. whatever time im running the backtest:
if (ToTime(Time[0]) >= 125500
Is there a way to refer to the actual trade time, or else the # of bars that have occurred since that trading days opening bar? For example market opens 930am, thats bar 1, then next 30 minutes bar 2, next 30 minutes bar 3, etc?
Comment