Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error with Path in SetDefault State

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

    Error with Path in SetDefault State

    Hello NT8 Team,

    I wrote a test indicator to export tick data to a file.
    There is some error in one way than other.

    If i set path in SetDefault state then Log shows the error of instance and this happens just before indicator dialogue box loads up. After error pops my indicator is not available in indicator selection dialogue. Though there is no compile error.

    But when i set path in Configure state then no error anywhere and indicator works perfect.

    Can you explain cause of this behavior ?

    I see path setting in SetDefault state working in below example, whats different in my case ?

    Attached Files
    Devdas
    NinjaTrader Ecosystem Vendor - Devdas

    #2
    No one ?

    Devdas
    NinjaTrader Ecosystem Vendor - Devdas

    Comment


      #3
      Hello devdas,

      Thanks for writing in.

      Note that NinjaTrader 8 beta items fall secondary in priority to NinjaTrader 7 inquiries.

      Per the NinjaTrader 8 beta help guide: Bug reports will be reviewed by our support and development staff inside of a 48 hour period. This does not include holidays and weekends.

      See the link below on Bug reports and providing feedback.



      I will be investigating this further and will return with my findings.

      Thank you for your patience.
      Zachary G.NinjaTrader Customer Service

      Comment


        #4
        Hello devdas,

        This is occurring because you are attempting to access Instrument.MasterInstrument.Name in State.SetDefaults.

        You are unable to access this in SetDefaults.

        Please take a look at this link for more information about MasterInstrument: http://ninjatrader.com/support/helpG...instrument.htm

        "Warning: Properties in this class should NOT be accessed during State.SetDefaults from within the OnStateChange() method."
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        673 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X