Download MetaTrader 5

Libraries: Pips to Point Conversion Function

To add comments, please log in or register
Automated-Trading
Admin
103561
Automated-Trading  

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

Siti Latifah
9009
Siti Latifah  

I usually use like below


double pip;

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

//exmaple= stoploss*pip;
Mohammad Soubra
28684
Mohammad Soubra  
Good idea
To add comments, please log in or register