12-09-2011, 02:15 AM
|
#2 |
Join Date: May 2010 Thanks: 0
Thanked 47 Times in 38 Posts
| Re: Floating Point Invalid Number in Calculation Within the range of data you're trying to plot, one of the calculations within your strategy is trying to return both an extremely small and extremely large value (if indeed you're certain you're not dividing by 0). If your code is well written, conscise, then experiment with replacing segments of complex calculations with whole numbers. For instance instead of value1=myLongFormula use value1=smallPortionOf_myL ongFormula, or if necessary take it all the way to value1=1; But that's the advanced debugging, before that you should try simply commenting out code until you find the likely target.
Last edited by onesmith; 12-09-2011 at 02:55 AM.
|
| |