What is gapSize cast as?
gapSize is double.. :) I omitted the definition
Print( "Gap detect - Size: ", DoubleToString(gapSize, Digits));
I found that
Print( "prevClose: ", prevClose );
is 1.3783...... so Close[1] is 4 digits...
I need 5digits, why I lost a digit?
The use of DoubleToString( gapSize, Digits ); only give: 0.00000
:/
Ok,
this works....
int start() { double prevClose = NormalizeDouble( Close[1], Digits ); double actOpen = NormalizeDouble( Open[0], Digits ); double range = prevClose - actOpen; Print( "prevClose = ", DoubleToString( prevClose, Digits ) ); Print( "actOpen = ", DoubleToString( actOpen, Digits ) ); Print( "range = ", DoubleToString( range, Digits ) ); return(0); }
but is fuckin' insane.
Mindexperiment:
Ok,
this works....
but is fuckin' insane.
Please watch your language and read the documentation before becoming rude.
Current build is 646, you are using an old build.
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 there,
why if
getDigits() = 5
then
Prints -> "Gap detect - Size: 0"
Because prevClose and actOpen is 4 digits....
so for example 1.38157 - 1.38151 = 0 but should be 0.00006
I'm a bit confuse
Andy