Things do not always compile just as we intend them to. I remember an occasion where the only way I could use Ask in one particular circumstance was to create a string with the DoubleToStr function, then extract the value of the string into a separate double.Khalaad wrote:Every time.SteveHopwood wrote:Does this happen every time, or just occasionally?Khalaad wrote:Any idea, why why the EA executes two trades simultaneously, rather than one:
Khalid
Khalid
In bool bool SendSingleTrade, try removing the 'else' from this block, and testing the crim thingy explicitly:
Code: Select all
else
{
ticket = OrderSend(symbol, type, lotsize, price, slippage, stop, take, comment, MagicNumber, expiry, col);
}Code: Select all
if (!CriminalIsECN) ticket = OrderSend(symbol, type, lotsize, price, slippage, stop, take, comment, MagicNumber, expiry, col);