PIPS or POINTS?

 

I am new to MQL5 programming, I made below code:

MqlTick Latest_Price;
SymbolInfoTick(Symbol(), Latest_Price);
int gap = (Latest_Price.ask - Latest_Price.bid)/Point();

My question: the result I got in gap variable... is it in PIP or POINTS?

 

You divided by point so it is in points.

PIP, Point, or Tick are all different in general.
          Ticks, PIPs or points in the GUI. Make up your mind. - MQL4 programming forum #1 (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)

 
William Roeder #:

You divided by point so it is in points.

PIP, Point, or Tick are all different in general.
          Ticks, PIPs or points in the GUI. Make up your mind. - MQL4 programming forum #1 (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)

Thanks... now its clear :)
Reason: