faustf: is possible required 5 digit at function ???
- If you do not use #property strict, Print output's 4 digits. With #property strict: Data of float type are output with 5 digits after a decimal point. To output real numbers with another accuracy or in a predefined format, use the PrintFormat() function
Print - Common Functions - MQL4 Reference - You don't want to output 5, you want to output what the pair uses. (USDJPY is 2 or 3) Don't assume:
string price_as_string(double p){return DoubleToStr(p, Digits); }
i answer me is normal because take a realtime price thankz and when the price is a 0 like 1.5240 the 0 not consider
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
hi guy i notice , my broker have 5 digit before dot (example bid or Ask price 1.25636) , but when i use marketinfo() MarketInfo(OrderSymbol(),MODE_ASK) return me only 4 digit , why ????
is possible required 5 digit at function ??? , exist some option or trick for have ???
thankz at all