if you want to print a floating point number you have to use DoubleToStr() function
.. and maybe use Digits to decide Dec Pts
Thanks zzuegg it worked great.
string PriceToStr(double p){ string pFrc = DoubleToStr(p, Digits); string pPip = DoubleToStr(p, Digits-1); if (pPip+"0" == pFrc) return(pPip); return(pFrc); }

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
I have a five digit broker. In my EA when I tell it to Alert(Ask) it only shows 4 digits comapred to the chart which shows 5. How do I get it to I get the Ask command to give me 5 digits? Would MarketInfo work?