Could someone please tell me how to start a strategy starting from current bar?
I've been trying to do this using below code but I am thinking there is a better way to do this. The problem with below is that if the strategy lasts more than a day then the strategy stops running unless the startTime is 100 (1min after midnight).
if (ToDay(Time[0]) >= tradingDate && ToTime(Time[0]) >= startTime)
{
do something
}
Any help is appreciated.
Thanks,

Comment