| 
 PureBytes Links 
Trading Reference Links 
 | 
I created a signal that verifies Excellent ! 
I run it on TS2K global server data for like 300 days back with no error messages.
When I try to apply this signal to a chart of  4 years of ascii data a message appears:
RUNTIME ERROR
Floating point invalid numbers in calculation
This error sometime indicates a division by zero error
with a zero also in the numerator.
Incorrect example: 
Value1 = value2 / value3
Correct example = IFF(Value2 = 0,0, Value2 / Value3);
Well, I do have those lines in my code, such as:
If RateOfChange(Close Data2/Close data3, RL) > BZ Then Buy;
I tried: 
IFF(Data2=0,0 Close Data2/Close data3, RL) > BZ Then Buy
but this gave errors
I also tried: 
If Close Data2 <>0 and Close Data3 <>0 and RateOfChange(Close Data2/Close data3, RL) > BZ Then Buy;
but this gave the same error again
Anybody have any clues ?
Appreciate your input -
Davis
 
 |