Forum

Order Modify

Hello Everyone, I have been experiencing intermittent issues with my OrderModify code and I have not been able to figure out what is causing it to fail. Typically the EA opens and order and then modifies it. But lately, the EA opens and order and never modifies the SL and TP. Hopefully the issue is

Flexing the limits of a variable

Just wondering if this would pose a problem, as it compiles, but I don't believe it will work. string BuyOrSell = "Both" ; int intOrderType; if (BuyOrSell == "Both" ) intOrderType = OP_BUY || OP_SELL;