It is already a double, otherwise it would not print as such. Explain in more detail and show your code, otherwise we can only speculate.
It is already a double, otherwise it would not print as such. Explain in more detail and show your code, otherwise we can only speculate.
This is my code
FloatingBuf0CtAchatCt[x] = iCustom(NULL,0,"Market//Floating Gain Meter","",indicator_digits,HistoryBarsAmount,followHistoryTrading,gainSignalPeriod,gainMainPeriod,"",sendAlerts,sendMail,sendNotification,
showArrows,showLines,showResult,"","",tradingMode_,"",useReverse_,"",profitTargetMode_,lossTargetMode_,"",useOnlyPipsTargets,
"",activeTradeDirection_,"",useCommonProfit_,"",safeModeForCommonProfit_,safeDegree_,"","","",firstTrigger,firstCommonProfit,secondTrigger,
secondCommonProfit,"",ArrowSize,buyArrow,buyTPArrow,sellArrow,sellTPArrow,buyProfitLine,buyLossLine,sellProfitLine,sellLossLine,0,x);
Print("Achat Floating Achat Ct 4 2"," Float0 ",FloatingBuf0CtAchatCt[0]," float1 ",FloatingBuf0CtAchatCt[1]," Float2 ",FloatingBuf0CtAchatCt[2]," Float3 ",FloatingBuf0CtAchatCt[3]);
// Example code to print a fixed point "double" to number of digits of the current symbol Print( "FloatingBuf0CtAchatCt[0] = ", DoubleToString( FloatingBuf0CtAchatCt[0], _Digits ) ); // Example code to print a fixed point "double" to 2 more digits than that of the current symbol Print( "FloatingBuf0CtAchatCt[0] = ", DoubleToString( FloatingBuf0CtAchatCt[0], _Digits + 2 ) );
The code above is untested, and uncompiled. It was simply typed out by memory.
Please note, that the function DoubleToString is only required for outputting the value as a string. The variable itself is already in double precession floating point binary representation and needs no conversion.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have an iCustom inside an expert,
When I execute the iCustom, I receive this message
2022.10.30 21:11:53.789 2021.01.04 12:00:00 Big Trend V140 GBPJPYi,H1: Float Gain Meter Buf0CtAchatCt Float0 2.3e-05 Float1 5.7e-05 Float2 7.9e-05 Float3 9.6e-05
How can I convert this number in double.
Thank you.