Download MetaTrader 5

Pips Calculation Solution for All Trading Instruments

To add comments, please log in or register
Winsor Hoang
4927
Winsor Hoang 2015.10.05 20:54 

Gents,

I am a bit scatter brain at the moment. I would like your input on the code for pips calculation for all trading instruments. Please let me know if you think that it will not work for all brokers.


   if (Digits % 2 == 1)   { pips  = Point*10; } 
   else   {  pips  = Point;    }

      sOP = "BUY";
      clOP = Aqua;
      market_price = Ask;
      market_SL = Ask - (StopLoss1*pips);
      market_TP = Ask + (TakeProfit1*pips);


To add comments, please log in or register