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 chbruno, 04-24-2024, 04:10 PM
      4 responses
      50 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      10 responses
      398 views
      1 like
      Last Post beobast
      by beobast
       
      Started by lorem, Yesterday, 09:18 AM
      5 responses
      20 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by WHICKED, Today, 12:56 PM
      2 responses
      15 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Felix Reichert, Today, 02:12 PM
      0 responses
      4 views
      0 likes
      Last Post Felix Reichert  
      Working...
      X