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 Mindset, Today, 06:46 AM
        0 responses
        8 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, Yesterday, 05:21 PM
        0 responses
        12 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        15 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        82 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        47 views
        0 likes
        Last Post PaulMohn  
        Working...
        X