Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CandleStick OnRender Error
Collapse
X
-
CandleStick OnRender Error
2015-10-28 18:10:41:242|3|4|Chart style 'Candlestick': Error on calling 'OnRender' method: System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.Data.BarsSeries.GetClose(Int32 index) at NinjaTrader.Data.Bars.GetClose(Int32 index) at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.On Render(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars) at NinjaTrader.NinjaScript.ChartStyles.ChartStyle.Ren der(RenderTarget pRenderTarget, ChartControl chartControl, ChartScale chartScale, ChartBars chartBars)
Tags: None
-
I think i hit the same error type but with a different error message this morning.
Before connecting to my data provider my chart also had not all historical data properly loaded.
I got the following two errors in the log.
2015-10-28 08:44:52:651 ERROR: Indicator 'ATR': Error on calling 'OnBarUpdate' method on bar 2592: Object reference not set to an instance of an object.
2015-10-28 08:44:52:651 ERROR: Failed to call 'Add' method: Object reference not set to an instance of an object.
After connecting to my data provider the chart now has all historical data properly loaded and there were no errors.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
670 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment