Brokers that use ECN will not accept a SL when the order is submitted. You have to do an OrderModify() or manage the trade on the client. If your broker is not ECN, then the problem is a bad value; use NormalizeDouble() to get rid of the extra digits. Actually you should use NormalizeDouble for all trade transactions.
- #21
- Jun 25, 2011 3:56pm Jun 25, 2011 3:56pm
- Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
- #23
- Aug 2, 2011 11:35pm Aug 2, 2011 11:35pm
- Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
- #25
- Aug 4, 2011 3:41pm Aug 4, 2011 3:41pm
- Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
- #38
- Edited 5:00pm May 10, 2012 4:44pm | Edited 5:00pm
- Joined Jan 2011 | Status: Trader | 1,299 Posts