Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator doesn't appear in Add Indicator

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

    Indicator doesn't appear in Add Indicator

    Hi,
    I created a new indicator which compiles and appears in the Ninjascript Explorer in the editor but for some reason it's not appearing in Add Indicator!
    Any ideas why please?
    Thanks,
    iq

    #2
    Ok I tracked down and found the problem.

    I had the following line in the SetDefaults:
    path = NinjaTrader.Core.Globals.UserDataDir + Instrument.FullName + ".csv";

    It seems that the Instrument.FullName is whats causing the problem. I assume its because its not available at that stage??

    Moving it to Configure made it work!

    Comment


      #3
      Hello iq200,

      Thanks for your posts.

      With reference to the help guide on Instruments class, "Warning: The properties in this class should NOT be accessed within the OnStateChange() method before the State has reached State.DataLoaded"

      Reference: http://ninjatrader.com/support/helpG...instrument.htm
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      3 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      238 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      384 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      4 views
      0 likes
      Last Post oviejo
      by oviejo
       
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      125 views
      0 likes
      Last Post Leeroy_Jenkins  
      Working...
      X