Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Not Showing Up

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

    Strategy Not Showing Up

    I have a strategy that I can successfully compile but doesn't show up when I attempt to add it to a chart. There are no errors during compilation, no grey'd out coloring on the ninjascript editor panel or any other form of error I can think to find. Why is this happening?

    #2
    Hello ThatMikey,

    Thank you for your post.

    If your strategies are not showing up in the list of available strategies 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 need further assistance. ​
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Yes. I had to reconfigure some of that and it now shows up. I am having difficulty getting the strategy to only enter one order.

      Comment


        #4
        Hello,

        Please create a new post in the Strategy Development section of the forums if you have a new inquiry. Please note, any time you reply to a thread, this will go to the person you are working with. Reply instead of starting a new thread when you would like to continue investigating an existing inquiry.

        Any time you start a new thread, this will create a new inquiry and a new case ticket, which will be answered by the first person available and may not be the person you are previously working with. Start a new thread instead of a reply when you have a new question that is unrelated to a previous inquiry. This will allow us to properly track each issue.

        We appreciate your cooperation in this regard.
        Gaby V.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NasdaqAnalytica, Today, 03:33 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Auvrayphil, Today, 03:44 PM
        0 responses
        3 views
        0 likes
        Last Post Auvrayphil  
        Started by jamesbhardwaj, Today, 04:41 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by diorfo, Today, 12:48 PM
        5 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by cp202822, Today, 01:38 PM
        2 responses
        13 views
        0 likes
        Last Post cp202822  
        Working...
        X