So, I created a painfully simple strat which utilizes nothing but the RSI. When I went to run it on my chart, I got this in the log: Error on calling 'OnBarUpdate' method for strategy 'MyStrategy': Object reference not set to an instance of an object.
I read somewhere that this had to do with nulls BUT here's my code:
Opposite for shorts (using the 70 line).
It doesn't get much simpler than that. Also, after doing this, another one of my strats, with which I've never had a problem, starting throwing the same error. Does anyone know if anything else might be causing this? It's just plain weird.
Thanks,
Dave
Can you help answer these questions from other members on futures io?
Thanks for your reply, traderwerks. Anymore detail on that, though? I haven't done anything different with this one than normal and I definitely don't understand why a strat that's been working perfectly for months suddenly throws an error message every time I try and load it.
Thanks for your reply, traderwerks. Anymore detail on that, though? I haven't done anything different with this one than normal and I definitely don't understand why a strat that's been working perfectly for months suddenly throws an error message every time I try and load it.
Thanks again,
Dave
I cannot tell you exactly because I just saw a code snippet. Whatever the problem is , just watch what you are doing with the entryOrder. Just walk through the Code and e answer should pop out.