Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Not Showing Up
Collapse
X
-
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?Tags: None
-
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
-
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
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GTBrooks, Today, 10:04 AM
|
1 response
8 views
0 likes
|
Last Post Today, 10:56 AM | ||
Started by NISNOS69, 12-08-2024, 08:00 AM
|
8 responses
22 views
0 likes
|
Last Post
by NISNOS69
Today, 10:43 AM
|
||
Started by divinajulia72, Today, 10:39 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 10:39 AM | ||
Started by AgriTrdr, Today, 10:35 AM
|
0 responses
8 views
0 likes
|
Last Post
by AgriTrdr
Today, 10:35 AM
|
||
Started by trdninstyle, 11-26-2024, 12:23 PM
|
74 responses
232 views
0 likes
|
Last Post
by trdninstyle
Today, 10:35 AM
|
Comment