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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    174 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    329 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    355 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    182 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X