Why is there no documentation on MODE_POINT or MODE_DIGITS or MarketInfo?

 

Hello, I am trying to follow a tutorial on programing with MetaEditor and im following his code but its not recognized for me.


Here is the video: https://youtu.be/nhGU18FjI54?t=717


Here is the code that the guy has in his video and for me the program wont recognize it, I am aware that it is mql4 and i'm most likely in mql5, but there is not documentation on the site or google on what i can do to fix this issue, even if the code is out dated there should be updated code on what works instead but its impossible to find. Any help would be fantastic.  



//here is a function to convert pips to price, this is used for the stop loss and take profit conversion.

double PipSize (string symbol){

   double point = MarketInfo(symbol,MODE_POINT);

   int digits = (int)MarketInfo(symbol,MODE_DIGITS);

   return (((digits%2)==1) ? point*10 : point);

   }

Write a Metatrader Expert Advisor - Step by Step (MQL4 OOP Part 8)
Write a Metatrader Expert Advisor - Step by Step (MQL4 OOP Part 8)
  • 2020.05.03
  • www.youtube.com
Follow the process step by step to create a complete working expert advisor. Not strictly OOP but this is part of the OOP series and we will build on this EA...
 

Its in the old mql4 documentation 

https://docs.mql4.com/marketinformation

Market Info - MQL4 Reference
Market Info - MQL4 Reference
  • docs.mql4.com
Market Info - MQL4 Reference
 
Lorentzos Roussos #:

Its in the old mql4 documentation 

https://docs.mql4.com/marketinformation

ok thanks for the help :)