Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assembly References

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

    Assembly References

    I've an indicator in .dll form. Is it possible to refer the methods and use it in custom strategy?

    #2
    Hi ark321, thanks for posting. You can use the indicator in your strategy. You can find how to access it using the IntelliSense system in the NinjaScript Editor, or it should be viewable in the Indicators folder of the strategy builder. In the Editor you can type "NinjaTrader.NinjaScript.Indicators." and once you type the last dot operator it will populate a list of all available indicators.

    Kind regards,
    -ChrisL

    Comment


      #3
      Thanks. This is what I'm seeing when I add .dot at the end of the indicator. Are these the available methods/references in that indicator (which I dont think so),

      Comment


        #4
        Hi ark321, the list is correct. If the indicator doesn't have any public Plots or public Series<t> objects then it's data will not be accessible. Do you get a vlaue when you printout its Values array e.g.

        NinjaTrader.NinjaScript.Indicators.SMA sma;
        sma = SMA(14);
        Print(sma.Values[0][0]);

        Comment


          #5
          I'm having compilation issue. It says the 'type or namespace could not be found (are you missing directive or assebly reference)'

          Comment


            #6
            Hi ark, could you post a screen shot of the code you are using and the compile error?

            Comment


              #7

              Comment


                #8
                Hi ark, the indicator is in the Indicators namespace, so you should not need and more using statements. It should be in the NinjaTrader.NinjaScript.Indicators namespace.

                Kind regards,
                -ChrisL

                Comment


                  #9
                  Got it. Now, I'm able to access the indicator using intellisense but I still get this error when I declare

                  Comment


                    #10
                    never mind. It seems to be resolving. Thanks for the help

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Yesterday, 05:17 AM
                    0 responses
                    55 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    132 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    73 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    45 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    49 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X