Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy won't compile
Collapse
X
-
Strategy won't compile
I am trying to create a very simple strategy using TSsupertrend indicator, but when I click "finish" in strategy builder, I get error saying that it can't compile. It opens editor and the errors at the bottom all say that TSsupertrend is a method and not appropriate for this action. Why? It's an indicator same as any other indicator, as far as I know. I have not had any problems using other indicators in strategy builder. Thanks.Tags: None
-
Hello mattstraw69,
Thank you for your post.
Please provide a screenshot of the full error message when you compile in the NinjaScript Editor.- To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
- Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
-
-
Hello mattstraw69,
Thank you for that information.
Please reach out to the vendor/developer of TSSuperTrend to report this error you are receiving. The error appears to be related to a namespace path; it could be related to the namespace path for a custom class in the TSSuperTrend script, or it could be that the indicator class has a class or enum inside of it that is being used as a parameter to the indicator method. This would mean that the fully qualified namespace would need to be used in the indicator method or a using statement might need to be added. Ultimately, this all comes down to the source code for TSSuperTrend which is why the vendor/developer needs to be involved to help identify and resolve the error.
We have a demonstration of declaring enums outside of the indicator class and using the fully qualified namespace path in the indicator property. This is best demonstrated in the NinjaTrader 8 reference sample, as the NinjaTrader 7 version doesn't properly implement a custom namespace:
NinjaTrader 8 - https://ninjatrader.com/support/help...ned_parame.htm
NinjaTrader 7 - https://ninjatrader.com/support/help...ned_parame.htm
Thank you for your time. Feel free to reach out with any additional questions or concerns.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
556 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment