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 kenz987, Today, 12:34 PM
        0 responses
        1 view
        0 likes
        Last Post kenz987
        by kenz987
         
        Started by sgordet, Today, 07:56 AM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by trdninstyle, 11-26-2024, 12:23 PM
        77 responses
        244 views
        0 likes
        Last Post trdninstyle  
        Started by AgriTrdr, Today, 10:35 AM
        2 responses
        17 views
        0 likes
        Last Post AgriTrdr  
        Started by Elevator2TheTop, Today, 11:30 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X