Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy shows in editor does not show up in strategies

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

    Strategy shows in editor does not show up in strategies

    Hi,

    I have created strategies before with no issues. I created one today and it has no errors when complied, there are no errors in any file. I can see it in editor but it doesnt show up in Strategies in Analyser. Please help

    #2
    Hello Thisisit,

    Thank you for your post.

    If your strategies are not showing up in the drop-down list of strategies of the analyzer then that suggests there is an issue with the strategies themselves. Specifically, there is likely an error in OnStateChange().

    Keep in mind that while it may compile successfully, the compiler cannot check "run time" logic errors, which can only occur when you run (or load) the strategy.

    A good first step here is to check the "Log" tab of the Ninjatrader Control center and look for any errors related to the strategies as if there is a run time error is would show in the log tab.

    If there are no log errors, check (in the Ninjascript editor open each strategy) to see if the strategies have the same name (IE you made a copy of the strategy and made your changes but unintentionally left the name the same as an existing one).

    In general, you want the filename of the strategy (this is what Ninjascript editor uses to open the script) to be the same as the public class name and most importantly that inside OnStateChange and within State.SetDefaults, the Name = field (This is what the drop-down or strategy selector uses) shows the same name as the public class name.​

    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    85 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    23 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    31 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    31 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X