DislikedThere is a GetLastError() function you need to call after each attempt.
if GetLastError() != 0, you have a problem, and need to call your OrderModify command again. Consider using a while statement
While (GetLastError() != 0)
{
OrderModify
sleep(1000);
}
Also check to make sure that your not getting Error = 130 in your logs, as that means the SL/TP values are wrong.Ignored
- #647,364
- May 24, 2012 2:33pm May 24, 2012 2:33pm
- | Joined Feb 2008 | Status: Suffering from Casandra syndrome | 1,384 Posts
- #647,373
- May 24, 2012 2:48pm May 24, 2012 2:48pm
- | Joined Feb 2008 | Status: Suffering from Casandra syndrome | 1,384 Posts
- #647,376
- May 24, 2012 3:02pm May 24, 2012 3:02pm
- | Joined Feb 2008 | Status: Suffering from Casandra syndrome | 1,384 Posts