OrderModify error 1
Why am I getting OrderModify error 1 when this executes?
Post more of your code looking at it their might be more errors but for one you should have takeprofit value in the ordermodify. If you are not altering it use ordertakeprofit to leave it the same i.e.
OrderModify(ticket1,order_price, Ask + 0.0005,OrderTakeProfit(),0,Blue);
Post more of your code looking at it their might be more errors but for one you should have takeprofit value in the ordermodify. If you are not altering it use ordertakeprofit to leave it the same i.e.
tonny: not really
the question is r u using OrderSelect
Why am I getting OrderModify error 1 when this executes?
- Based on the above code, how would you know that you're getting any error? What are Function return values ? How do I use them ? - MQL4 forum
- What is order_price? Once the order opens, it can't be changed. Once the order opens, it may not be equal to the original price because of slippage. Use OrderSelect()/OrderOpenPrice()
- What is order_stoploss. Do you update it after modifying the order? Use OrderSelect()/OrderStopLoss()
- EA's must be coded to recover from terminal restarts (BSOD/power/reboot) Do you recreate those variables or are you writing and reading them from a file (persistent storage)
tonny: not really
the question is r u using OrderSelect
Why am I getting OrderModify error 1 when this executes?