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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      85 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      67 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X