Why doesn't this delay trading for 5 seconds? New comment [Deleted] 2016.09.27 23:36 I have this code before my ordersend, but yet orders are opened immediately. Shouldn't this loop be locking the EA up for 5 seconds?int seconds = (int)TimeCurrent(); while((int)TimeCurrent()-5 < seconds) {Sleep(1000);RefreshRates();} IsConnected() How Do I Get The S&R Values From This Indi? Code going into Unknown state William Roeder 2016.09.28 01:02 #1 Print out your variables, and find out why. New comment
I have this code before my ordersend, but yet orders are opened immediately. Shouldn't this loop be locking the EA up for 5 seconds?