Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range bars On Paint error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Range bars On Paint error

    I have a custom indicator that works perfectly on min and sec charts however when I try to run on Range bar charts I get the following error in Trace file...no error in Log file

    2010-03-07 10:05:55:614 (Market Replay Connection) Data.Bars.GetBarsNow: instrument='NQ 03-10' from='2010-03-05 17:00:00' to='2010-03-07 23:59:59' period=1 Tick splitAdjusted=False dividendAdjusted=False bars=0 session='930 to 930'
    2010-03-07 10:05:57:332 UI (re)load complete, took 3.1 secs, 107.5 secs after app start
    2010-03-07 10:06:11:889 Chart.ChartControl.OnPaint: Object reference not set to an instance of an object.
    2010-03-07 10:06:12:493 Chart.ChartControl.OnPaint: Object reference not set to an instance of an object.
    2010-03-07 10:06:21:931 Gui.WorkspaceOptions.ApplicationExit

    I will comment out code in the cs to see if the problem is in the code....however at this point I do not know why there should be any difference between a min and range chart...

    possible bug in beta 10?

    #2
    problem was in code

    range bars have different time at session open than min and sec bars

    code was checking for a specific time to set up an array...never happened...result was null object in drawtext statement

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X