How to calculate pips between two values

 

Hi,

val1: 1.40900
val2: 1.41100

How can I get 20 points?



Regards,

Dejkan

 

chris.dotan: How to calculate pips between two values
chris.dotan: How can I get 20 points?

  1. Make up your mind. Do you want 20 points or 2 PIPs?

  2. PIP, Point, or Tick are all different in general.
              What is a TICK? - MQL4 programming forum (2014)

    Unless you manually adjust your SL/TP for each separate symbol, using Point means code breaks on 4 digit brokers, exotics (e.g. USDZAR where spread is over 500 points), and metals. Compute what a PIP is and use it, not points.
              How to manage JPY pairs with parameters? - MQL4 programming forum (2017)
              Slippage defined in index points - Expert Advisors and Automated Trading - MQL5 programming forum (2018)

  3. 20 points
    (val2-val1)/_Point
    2 PIPs
    (val2-val1)/PIP
Reason: