System.NullReferenceException
Hi,
I get the following exceptions which I've not been able to resolve:
A first chance exception of type 'System.NullReferenceException' occurred in "Exponential Moving Average":Object reference not set to an instance of an object.;
A first chance exception of type 'System.NullReferenceException' occurred in "Bollinger Bands":Object reference not set to an instance of an object.;
I get hundreds of these in my Event Log window that pollutes any other output. Originally I thought it was to do with your EMA and Bollinger Band indicators. I removed those and found source code for those indicators on the internet, compiled them and added those indicators instead. I still get those exceptions which leads me to believe that there is something else going on in the system.
Could you please let me know if there is a fix for this situation?
Regards.
Hello, AminderG!
Could you please give more information about your case:
Did you use AlgoStudio or Desktop client?
What vendor did you use?
What aggregation did you use?
You use Exponential Moving Average and Bollinger Bands at the same time?
This exceptions appears when you changed aggregation or when you added indicators?
Regards, PTMC Support.
I used AlgoStudio to compile the DLL. But this is not the problem as both your version and my compiled versions generate those errors.
I'm not sure what the vendor has to do with this? Can you elaborate?
Following are my charts and their associated aggregations:
1m = 3 days
5m = 3 days
15m = 5 days
30m = 10 days
1H = 20 days
2H = 2 months
4H = 3 months
1D = 2 years
1W = 2 years
1M = 2 years
Yes I use EMA and Bollinger Bands on all of the above charts.
The exceptions happens when I start the application and sometimes during the course of the day.
Regards.