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 Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,768 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        9 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        7 views
        0 likes
        Last Post rocketman7  
        Working...
        X