I tried using the ToTime method in NinjaTrader but am having trouble getting it to work. I get this error:
if (ToTime(Time[0]) >= ToTime(Hour, fivemin, 0))
if (ToTime(Time[0]) >= ToTime(9, 30, 0))
But it still gave me the same errors. Even when trying to copy and paste the sample code from the NinjaTrader manual it gives me hte same error. Can you please tell me what I am doing wrong or is this a bug?
Thanks,
Matt

Comment