Open a pending order in at specific price

 

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

 

Hi Hadi

This page in the book has all the info you should need.

https://book.mql4.com/trading/ordersend

Jellybean

Reason: