Pips to Point Conversion Factor – library MetaTrader 4

Explanation: This is a conversion factor. It is used to detect whether broker is 4 or 5 digits. As MetaTrader 4 calculates everything using point basis, coder can use this function to convert pips to point for machine reading.

E.g.: If you want to set stop loss of 50 pips for 5 digit broker, refer to this function by convert it to 500 points for machine to read.

If 5 digit broker:

stoploss*PipsToPointFactor
=50pips*10
=500points
📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks