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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, Yesterday, 09:41 PM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, Today, 02:41 AM
      0 responses
      6 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, Yesterday, 11:44 PM
      0 responses
      12 views
      0 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      32 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      31 views
      0 likes
      Last Post CarlTrading  
      Working...
      X