aksamyo
10-24-2009, 07:38 PM
Attached is a simple code that creates an "Invalid Cast from DateTime to Double" error in the Log. It will compile clean but if you backtest the code with any NYSE stock, you will get that error in the log.
Once that error appears, it will continue to display that error even after you fix the source of the error. By changing "Category" to "GridCategory" it should have fixed the problem, but the error continues to appear during backtesting.
Since using "Category" instead of "GridCategory" does not cause syntax error during compilation, many people will get this log error if they copy the source code from 6.5.
Once that error appears, it will continue to display that error even after you fix the source of the error. By changing "Category" to "GridCategory" it should have fixed the problem, but the error continues to appear during backtesting.
Since using "Category" instead of "GridCategory" does not cause syntax error during compilation, many people will get this log error if they copy the source code from 6.5.