I want send orders when current time of my PC will be like 19.20
I`m using function Now to compare current time with these constants (int Var1=19, int Var 2=20) like:
if (Now.Hour == Var1 && Now.Minutes ==Var2) =>Open Order
But (Now.Minutes) always not equal system minutes.
I`m did it and in OnBarUpdate and inside OnMarket. The same result!
I don`t understand why !? How I can check current time ??
Comment