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

Access to .dll indicator

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

    Access to .dll indicator

    I have a custom licensed indicator which is a dll so I have no .cs source. It shows on the NT indicator list for a chart and works fine. I can see the values on the chart. It also shows the values on the data window.

    How can I reference/retreive the values/plots of this dll in a custom indicator? I want to compare/retrieve the values the same as a normal indicator.

    I hope you don't say I can't and burst my bubble.

    Cliff

    #2
    Hi Cliff,

    See this section of our Help Guide - http://www.ninjatrader-support.com/H...ndicators.html
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray


      Thanks. I am ashamed I missed that. I will crawl back under my rock now....

      Cliff

      Comment


        #4
        No worries. There soon will be an import function which will our lives easier.

        Comment


          #5
          Dierk

          I crawled back out from under my rock.

          I added the DLL. That was easy. The not defined error went away but I have a new error.

          Now I get an error on compile:
          'NinjaTrader.Indicator.ABC123' is a 'Type' but is used like a 'variable'

          I tired several variations.

          On a chart that uses the indicator it says:

          ABC123(1) : The(1) parameter determines a display attribute.

          I tried: if (ABC123(1).Pivot1[0] < High[0])

          I wanted to check/compare the plot value "Pivot1". This is the value shown in the data window.

          Call me blind. What did I miss?

          Comment


            #6
            Originally posted by ct View Post
            Now I get an error on compile:
            'NinjaTrader.Indicator.ABC123' is a 'Type' but is used like a 'variable'
            What is code line in question? Just click on the error.

            Comment


              #7
              Dierk

              I did and it is that line of code that has generates the error. It also said that was the statement in error on the compile errors at the bottom.

              I added a simple statement to help isolate the issue.

              I have the special NT build you created to correct the editor problem. I don't have the latest NT6 live build but I don't think this is the issue.

              Cliff

              Comment


                #8
                I'm confused: Please post the erroneous code line. Thanks.

                Comment


                  #9
                  Dierk

                  Here it is:

                  if (ABC123(1)[0] < High[0] + 1 * TickSize)
                  {
                  // test custom indicator
                  return;
                  }

                  I also tried this which I think is correct:

                  if (ABC123(1).PivotR4[0] < High[0] + 1 * TickSize)
                  {
                  // test custom indicator
                  return;
                  }

                  Cliff

                  PS: Also this is an email test to your email.
                  Last edited by ct; 05-07-2007, 02:13 AM.

                  Comment


                    #10
                    a) sorry I don't know what causes this compile error. May be you use ABC123 for a variable or property as well ?!?
                    b) the email notification worked well on my non-NT email

                    Comment


                      #11
                      Dierk

                      ok, the email issue must be localized to me.

                      Can I send you the code to have a look? I don't want to post it.

                      Cliff

                      Comment


                        #12
                        Yep, please send me the indicator and all required files related.

                        Comment


                          #13
                          Dierk

                          Any timing or estimate on the dll import function?

                          I am trying to decide if I want to develop a workaround or just wait for the import tool.

                          Regards

                          Cliff

                          Comment


                            #14
                            Likely end of this week

                            Comment


                              #15
                              YEAH!!!!! Double Yeah! You made my day.

                              Danke sehr viel

                              Cliff

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by geddyisodin, Today, 05:20 AM
                              1 response
                              11 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by Max238, Today, 01:28 AM
                              3 responses
                              31 views
                              0 likes
                              Last Post Max238
                              by Max238
                               
                              Started by timko, Today, 06:45 AM
                              2 responses
                              12 views
                              0 likes
                              Last Post NinjaTrader_ChristopherJ  
                              Started by habeebft, Today, 07:27 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post habeebft  
                              Started by Tim-c, Today, 03:54 AM
                              1 response
                              8 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Working...
                              X