Calculate Target Price using Pips value

 

Hi guys,

I have to calculate the final target price (and stop loss) using the pips.

I mean: 

Suppose to be in EURUSD, and the price is: 1.223 , I have to add 25 pips.

I also have to implement this formula for all the possible crosses so I think I have to manage some digits checks...

Can you help me please or do you have some formula to share ?

Thanks to support !

 
Using Points means code breaks on 4 digit brokers, exotics (e.g. USDZAR where spread is over 500 points,) and metals. Compute what a PIP is and use it, not points.
          How to manage JPY pairs with parameters? - MQL4 and MetaTrader 4 - MQL4 programming forum
          Slippage defined in index points - Currency Pairs - Expert Advisors and Automated Trading - MQL5 programming forum
Reason: