Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Libraries | Pips to Point Conversion Factor

MetaTrader Experts, Indicators, Scripts and Libraries

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
15636

Best MetaTrader Indicators + Profitable Expert Advisors