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

Making indicator value accessable to new indicator

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

    #16
    Hello Pete77,

    Without the UncleFrank code I’m unable to diagnose what the issue is.

    If you’d like to upload the UncleFrank.cs file I will take a look.
    Alan P.NinjaTrader Customer Service

    Comment


      #17
      I wish I could do that, but the code or I should say the idea for the code is from a third party. Meanwhile I forgotten how to load a strategy onto my chart, strategy is grayed out on my right click menu. Can you help with that? You have been very helpful and I appreciate it.

      Comment


        #18
        Hello Pete77,

        Without the code I’m unable to debug or offer suggestions as to the issue. I would suggest you contact the third party in regards to your question.

        Regarding adding a strategy to a chart, you should confirm that Chart Trader is disabled by right clicking on the chart>properties and making sure Show Chart Trader is set to false. Note, if chart trader is enabled you can not add a strategy to the chart.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #19
          Thanks, I will take you up on your offer.

          UF1 is the host. I wish to access two variables from UF1to use in the UF3 indicator in order to create an alert. I need to use the second indicator in order to get tick by tick. The main program, UF1, works best if CalculateAtBarClose is set to true.

          If I uncomment the two lines in UF3 I get an error message "Unable to access top1 due to protect level" or "UF1 is a type but is being used as a variable".

          Your help will be appreciated.
          Attached Files

          Comment


            #20
            Hello Pete77,

            Your commented out lines are referencing UF().top1, top1 is a private variable in UF1. If you use a capitalized T in Top1 to refer to the public variable Top1 you should be able to compile without error.

            For example,

            if(CrossAbove(Close, UF1().Top1, 1))
            Print(UF1()Top1);

            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by ursavent, Today, 12:54 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by cre8able, Today, 01:01 PM
            0 responses
            3 views
            0 likes
            Last Post cre8able  
            Started by manitshah915, Today, 12:59 PM
            0 responses
            3 views
            0 likes
            Last Post manitshah915  
            Started by Mizzouman1, Today, 07:35 AM
            3 responses
            17 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by RubenCazorla, Today, 09:07 AM
            2 responses
            13 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X