I try write the code with limitation of one trade per minute, but it doesn't work (perhaps problem is with logic). I tried many versions with break, Sleep(). Have anyone any suggestions?
Print("mtoop==",mtoop); // current time minus 1 minute, works
for (int j=OrdersTotal()-1;j>=0;j--)
if (mtoop <z && z<mt) break; // Sleep(60000) doesn't work
To add comments, please log in or register