Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy not showing up in list

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

    Strategy not showing up in list

    When I go to add a strategy by right click -> new strategy, my newly created strategy does not show up in the list so that I may select it for trading...

    What are some things I should look for to prevent this from happening?

    #2
    Hello brucelevy,

    Thanks for your post.

    Assuming the strategy has compiled successfully:

    Is the file name the same as the strategy (public class) name? In this case, you might be looking for one name and it may be something else. When editing you are opening by file name, when adding the strategy you are looking at the public class name.

    When you go to apply the strategy, are any errors showing in the "log" tab of the control center? What can happen is that if you have an error in the OnStateChange() method when you go to New>strategy the OnStateChange() is called and a run-time type error can occur which removes the strategy from the available list as a preventative measure.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ZenCortexCLICK, Today, 04:58 AM
    0 responses
    2 views
    0 likes
    Last Post ZenCortexCLICK  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    172 responses
    2,280 views
    0 likes
    Last Post sidlercom80  
    Started by Irukandji, Yesterday, 02:53 AM
    2 responses
    17 views
    0 likes
    Last Post Irukandji  
    Started by adeelshahzad, Today, 03:54 AM
    0 responses
    5 views
    0 likes
    Last Post adeelshahzad  
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X