Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Not Showing Up

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

  • NinjaTrader_Gaby
    replied
    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.

    Leave a comment:


  • ThatMikey
    replied
    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.

    Leave a comment:


  • NinjaTrader_Gaby
    replied
    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. ​

    Leave a comment:


  • ThatMikey
    started a topic Strategy Not Showing Up

    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?

Latest Posts

Collapse

Topics Statistics Last Post
Started by MSerag, Today, 11:09 AM
1 response
6 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by ChrisR, Yesterday, 12:04 PM
6 responses
29 views
0 likes
Last Post NinjaTrader_Jesse  
Started by AgriTrdr, Today, 10:35 AM
1 response
10 views
0 likes
Last Post NinjaTrader_Gaby  
Started by trdninstyle, 11-26-2024, 12:23 PM
76 responses
237 views
0 likes
Last Post trdninstyle  
Started by Carlos19, Today, 10:15 AM
1 response
6 views
0 likes
Last Post NinjaTrader_Erick  
Working...
X