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

Call values from a custom indicator I purchased

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

    Call values from a custom indicator I purchased

    I purchased some custom indicators and would like to use the output in a custom indicator that I want to write.

    These indicator can be used in Bloodhound and I can see the values in the data window, so I am assuming the outputs are public. But as an example, I thought that if I did the following I could pull IT_SpeedTick into my indicator.

    if(IT_SpeedTick().Threshold1[0] > 0)
    BackBrush = Brushes.White;

    I thought that would get me the output of the Threshold1 variable.

    But I get an error that says "The name 'IT_SpeedTick' does not exist in the current context.


    Click image for larger version

Name:	image.png
Views:	104
Size:	11.0 KB
ID:	1236363


    Also, the IT_PullBackAlert doesn't show any output in the data window. It prints an icon on the bar where it's true. Does that mean its a boolean? And how would I read that value into my custom indicator?

    any help is appreciated​

    #2
    Intelli-prompt does find IT_SpeedTick, if that help


    Click image for larger version

Name:	image.png
Views:	82
Size:	109.8 KB
ID:	1236369
    Attached Files

    Comment


      #3
      Do I have to pass all the parameters to the indicator that I am calling to get it to work?

      Comment


        #4
        When I pass the parameters that I see in the data box, I get a message that I'm missing an argument. Is that the instrument and period? If so, how do I pass them in the parameter list?


        Click image for larger version

Name:	image.png
Views:	85
Size:	83.0 KB
ID:	1236372

        Comment


          #5
          Hello cre8able,

          I first suggest that you contact the vendor or author that distributes this software for instructions on how to use their software in a NinjaScript Strategy or Indicator.

          That said, type the method name and add parenthesis, place the cursor between the parenthesis and press Ctrl + Shift + Spacebar to open the intelliprompt.


          What overload signatures are you seeing in the intelliprompt?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hey Chelsea

            I get the yellow frame but no signatures when I Ctrl + Shift + Spacebar

            any sugestions?


            Click image for larger version

Name:	image.png
Views:	73
Size:	5.3 KB
ID:	1236505

            Comment


              #7
              Hello cre8able,

              The vendor should just be able to tell you what the overload signatures are.

              However, you might try the same using Visual Studio if you have it installed. (Click the Visual Studio icon on the NinjaScript Editor toolbar)
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by jrp2099, Today, 08:01 AM
              0 responses
              1 view
              0 likes
              Last Post jrp2099
              by jrp2099
               
              Started by sofortune, 05-10-2024, 10:28 AM
              5 responses
              33 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by thumper57, 05-11-2024, 04:30 PM
              11 responses
              34 views
              0 likes
              Last Post thumper57  
              Started by FAQtrader, 04-25-2024, 12:00 PM
              8 responses
              142 views
              0 likes
              Last Post Joshua 1:8  
              Started by ETFVoyageur, Today, 05:50 AM
              3 responses
              20 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X