Download MetaTrader 5
To add comments, please log in or register
Post web links to other trader's signals and make profit
Winsor Hoang
4743
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