Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems accessing TickSize

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

    Problems accessing TickSize

    Hi,

    When I try to access TickSize in Initialize method, using for instance
    Code:
    Print(TickSize)
    I get exception

    "Failed to call method 'Initialize' for indicator 'xx': 'BarsInProgress' property can not be accessed from within 'Initialize' method"

    #2
    Originally posted by gomifromparis View Post
    Hi,

    When I try to access TickSize in Initialize method, using for instance
    Code:
    Print(TickSize)
    I get exception

    "Failed to call method 'Initialize' for indicator 'xx': 'BarsInProgress' property can not be accessed from within 'Initialize' method"
    This is due to a changed implementation to accomodate multi-series strategies.. You could try something like this:

    Code:
    [FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] (Instrument != [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])[/SIZE][/FONT]
    [SIZE=2][FONT=Courier New]    Print(Instrument.MasterInstrument.TickSize);[/FONT][/SIZE]
    [/SIZE][/FONT]
    RayNinjaTrader Customer Service

    Comment


      #3
      thanks, it works.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      626 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      359 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      562 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      567 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X