Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Can not compile strategy

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

    Can not compile strategy

    I am trying to write a strategy with a custom indicator (trade devils buy/sell momentum) and I am getting an error saying that it can not compile the ninjascript. I have a friend getting the same error message when he trys as well. I have contacted the vendor but their website says they do not provide support for the strategy builder. Is there a way to see what's causing the issue with compiling?

    #2
    Hello Tyler803,

    Some indicators are not designed to work in the Strategy Builder. It is sometimes necessary to unlock the script and code by hand, or contact the developer to make changes to the indicator so that it is compatible with the Strategy Builder.

    Below is a link to a forum post with instructions on how to find compile errors in the NinjaScript Editor.


    Please provide a screenshot of the errors and I will be happy to assist.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Tyler803,

      Some indicators are not designed to work in the Strategy Builder. It is sometimes necessary to unlock the script and code by hand, or contact the developer to make changes to the indicator so that it is compatible with the Strategy Builder.

      Below is a link to a forum post with instructions on how to find compile errors in the NinjaScript Editor.
      https://forum.ninjatrader.com/forum/...64#post1211564

      Please provide a screenshot of the errors and I will be happy to assist.
      Click image for larger version

Name:	
Views:	0
Size:	238.4 KB
ID:	1246992

      Comment


        #4
        Hello Tyler803,

        I'm not familiar with TDUBuySellMomentum, but the parameters you are supplying to the overload is incorrect.

        Put the cursor just inside the parenthesis. Then hit Ctrl + Spacebar on the keyboard. Then take a screenshot of the overload signature (or hit print screen and paste into MS Paint).

        What is the overload signature for this custom indicator?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello Tyler803,

          I'm not familiar with TDUBuySellMomentum, but the parameters you are supplying to the overload is incorrect.

          Put the cursor just inside the parenthesis. Then hit Ctrl + Spacebar on the keyboard. Then take a screenshot of the overload signature (or hit print screen and paste into MS Paint).

          What is the overload signature for this custom indicator?
          Click image for larger version

Name:	
Views:	0
Size:	243.0 KB
ID:	1247017

          Comment


            #6
            Hello Tyler803,

            From the looks of it, this custom indicator has no parameters in the overloads. The Input series is added by default.

            You might have to set properties after instantiating.

            private MyIndicatorName myIndy;

            myIndy = MyIndicatorName();

            myIndy.CustomPropertyName = 10;


            I would recommend you reach out to the vendor or author that created this indicator for instructions on how to call it from NinjaScript.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_ChelseaB View Post
              Hello Tyler803,

              From the looks of it, this custom indicator has no parameters in the overloads. The Input series is added by default.

              You might have to set properties after instantiating.

              private MyIndicatorName myIndy;

              myIndy = MyIndicatorName();

              myIndy.CustomPropertyName = 10;


              I would recommend you reach out to the vendor or author that created this indicator for instructions on how to call it from NinjaScript.
              Thanks Chelsea, I am reaching out to trade devils

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by burtoninlondon, Today, 12:38 AM
              0 responses
              9 views
              0 likes
              Last Post burtoninlondon  
              Started by AaronKoRn, Yesterday, 09:49 PM
              0 responses
              14 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Yesterday, 08:42 PM
              0 responses
              11 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Yesterday, 07:51 PM
              0 responses
              13 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,983 views
              3 likes
              Last Post jhudas88  
              Working...
              X