Hi Hadi
This page in the book has all the info you should need.
https://book.mql4.com/trading/ordersend
Jellybean

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,
I want to write a code to open a pending order which:
when the price reaches "a" the order opens, with TP and SL set to "p" pips.
My problem is with "a" part.
I've searched the forum for a day but couldn't find the answer.
Thanks in advance,
Hadi