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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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