Navigation´╝ÜHome > Content >

ZP_StandardFunctions.mq4

Time: 2013-01-13 | Download file:ZP_StandardFunctions.mq4

//+------------------------------------------------------------------+
//|                                         ZP_StandardFunctions.mq4 |
//|                                                      Ron Mauldin |
//|                                                  http://fx41.com |
//+------------------------------------------------------------------+
#property copyright "Ron Mauldin"
#property link      "http://fx41.com"

#property library

//SetPoint
//Created by Robert Hill 
//Used with myPoint to have a standard PIP digits instead of the MQL function Point
double SetPoint(string mySymbol){
 double mPoint, myDigits;
 myDigits = MarketInfo (mySymbol, MODE_DIGITS);
 if (myDigits < 4)
  mPoint = 0.01;
 else
  mPoint = 0.0001;
 return(mPoint);
}
//+------------------------------------------------------------------+

Recommend