- Second question from a beginner - The three last values
- 4 & 5 points calculation issue
- Number of digits on graph output
double m = DoubleToStr(iMA("EURUSDi", PERIOD_M1, 7, 0, MODE_EMA, PRICE_CLOSE, 0), 5); Print("MA: ", m);
try
string m = DoubleToStr(iMA("EURUSDi", PERIOD_M1, 7, 0, MODE_EMA, PRICE_CLOSE, 0), 5); Print("MA: ", m);
.
try
.
If I need to display the value I need to convert to string then convert it back to double type to calculate then convert it again to string to display the 5 digits??
DoubleToStr() -> StrToDouble() -> DoubleToStr()
I want to know if I get the 4 digit it means there's a invisible 5th digits Or I need to convert to string to get the 5th digits then convert it back to double to calculate??
I discovered the double() function to convert the value to double type. Is double() and StrToDouble() are the same??
If I need to display the value I need to convert to string then convert it back to double type to calculate then convert it again to string to display the 5 digits??
DoubleToStr() -> StrToDouble() -> DoubleToStr()
No, of course not, if you want to work with the MA value, get it as a double first then use DoubleToStr() in the Print
double m=iMA("EURUSDi",PERIOD_M1,7,0,MODE_EMA,PRICE_CLOSE,0); Print("MA: ",DoubleToStr(m,5));
Is double() ??? There is no such function as far as I know
I discovered the double() function to convert the value to double type. Is double() and StrToDouble() are the same??
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use