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 int that I got in the gap variable, is it a PIP or POINT datatype?
That all depends on your broker and your definition of pips and points. Generally speaking in forex the correct is true.
For a 5 digit broker assuming you subscribe to the above definition, you gap
variable is the amount of points and shows the current spread.