Daniel Cioca:
Hello! I have one doubt about computing PipSize
double Pip() { // double pip =0; int dig =(int)MarketInfo(_Symbol,MODE_DIGITS); switch(dig) { case 2: point=0.1 ; break; case 3: point=0.01 ; break; case 5: point=0.0001 ; break; } return(pip); }
You do not change the value of pip so your function returns 0 every time.
Hi..it was a typo
double Pip() { // double pip =0; int dig =(int)MarketInfo(_Symbol,MODE_DIGITS); switch(dig) { case 2: pip=0.1 ; break; case 3: pip=0.01 ; break; case 5: pip=0.0001 ; break; } return(pip); }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 have one doubt about computing PipSize
I have This:
Not sure about case 2.
I have seen another model.
Both of them are similar except when there are 2 digits.