Libraries: Pips to Point Conversion Function

 

Pips to Point Conversion Function:

This is a function. 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.

Author: Cher Nian Goh

 

I usually use like below


double pip;

if (Digits==2 || Digits==4) pip=Point; else pip=10*Point;

//exmaple= stoploss*pip;
 
Good idea