Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy won't compile

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

    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.

    #2
    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.
    ​I look forward to your reply.

    Comment


      #3
      Click image for larger version

Name:	image.png
Views:	159
Size:	624.9 KB
ID:	1235257​Her you go. Please let me know if this is all you need.

      Comment


        #4
        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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        52 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X