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 Jimmyk, 01-26-2018, 05:19 AM
|
6 responses
834 views
0 likes
|
Last Post
by emuns
Today, 11:27 AM
|
||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,290 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
10 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
11 responses
62 views
0 likes
|
Last Post Today, 10:08 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 09:55 AM |
Comment