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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    603 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    349 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    104 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    560 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X