I am getting two errors. How do I handle/debug these two errors:
Error 1: My strategy disables when I get the following two errors:
2020-10-27 16:04:53:685|3|4|Indicator 'SMA': Error on calling 'OnBarUpdate' method on bar 2532: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2020-10-27 16:04:53:706|3|4|Strategy 'STFUTTRENDFOLLOW': Error on calling 'EventHandlerBarsUpdate' method: Object reference not set to an instance of an object.
Error 2: I don't see any errors and my strategy is still running or enabled. Last night I left my strategy to run, however this morning I noticed that strategy didn't get into any trades after 3:46AM last night. Which is very odd behavior because it was getting into trades when I left it to run. Please see attached my log file.
Error 3. Error received from TD Ameritrade account activity stream: Invalid Key … I tried reconnecting with TD Ameritrade already.
Thanks,
Comment