You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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);
}