How to find pips between to candle stick values

 

I would like to know how I can find the number of pips between two values. For example, as shown below, if the difference between to values is greater than 20 pips:



if (iClose(_Symbol,0, 1) - iOpen( _Symbol,0, 3) > 20)    {

                     } 
 
Jackery:

I would like to know how I can find the number of pips between two values. For example, as shown below, if the difference between to values is greater than 20 pips:



get the difference divided by _Point and round up/down if you want integer result or use double for more precision and normalize the double to match the symbol digits 
 
roshjardine: get the difference divided by _Point and 
PIP, Point, or Tick are all different in general.
          What is a TICK? - MQL4 programming forum

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
          Slippage defined in index points - Currency Pairs - Expert Advisors and Automated Trading - MQL5 programming forum

 
William Roeder:
PIP, Point, or Tick are all different in general.
          What is a TICK? - MQL4 programming forum

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
          Slippage defined in index points - Currency Pairs - Expert Advisors and Automated Trading - MQL5 programming forum

thanks William for your further pointers
Reason: