Set Take Profit to be 10 pips above OrderOpenPrice() (MQL4)

 

Hello forum, good day.

Is it possible to set Take Profit to be 10 pips above OrderOpenPrice()?

Your help will be much appreciated.

Best regards and thank you,

codeMolecules 

 
codeMolecules:

Hello forum, good day.

Is it possible to set Take Profit to be 10 pips above OrderOpenPrice()?

Your help will be much appreciated.

Best regards and thank you,

codeMolecules 

Yes
 

It depends when you set the TP . You cannot modify the TP if it is too close to the Current price at the time.

Also TP for a Buy has to be above the current Ask

TP for a Sell has to be below the current Bid 

 
GumRai:

It depends when you set the TP . You cannot modify the TP if it is too close to the Current price at the time.

Also TP for a Buy has to be above the current Ask

TP for a Sell has to be below the current Bid 

Thank you very much GumRai.

Best regards,

codeMolecules 

Reason: