Hi, when plotting say a MA for example, the EUR/USD, it returns the value as 1.xxxxx (5 digits). How can I increase that to say 8 digits -
1.xxxxxxxx? Using this in a MA slope EA. TIA!
- Return of digits after decimal point
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Discussion of article "Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners"
- MA doesn't return anything. It shows what it is coded to do. You can't change it.
- If you are coding your own indicator, you should read the manual.
IndicatorDigits - Custom Indicators - MQL4 Reference - Reading indicators into an EA you get a double. Floating-point has infinite number of decimals.
Print out your values to the precision you want with DoubleToString - Conversion Functions - MQL4 Reference.
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