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 usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      21 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X