Alex,
Here is a quick and dirty way.
Here is a quick and dirty way.
double priceToCheck = Bid; string s = DoubleToStr(priceToCheck,MarketInfo(Symbol(), MODE_DIGITS) ); Print( "Last two digits of " , priceToCheck, "=", StringSubstr(s, StringLen(s) - 2) );
Hope this help
Matias Romeo
Custom Metatrader Systems
matiasdotromeoatgmail.com
Yes
Thanks
Thanks
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
not get long on a trade above the last two numbers above 85 through 15 or short with the last two below 15 through 85.
Close = x.xx15
Close = x.xx85
how filter last two numbers in MQL ?