Closing trades
You have to select the order to use functions like OrderType(), OrderOpenPrice()... Check OrderSelect()
OrderModify(ticket,OrderOpenPrice(),Bid-Point*trldistance,OrderTakeProfit(),0,Green);
- OrderSelect first
- What are Function return values ? How do I use them ? - MQL4 forum
- Adjust for 4/5 digit brokers
- Do not use normalizeDouble ever.
Hi all,
I've written a simple ea, but I can't get something done in this code. I want to trail the profit of the group inclusive the loss ones.
Thanks,
Jason