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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    28 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    26 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    139 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X