Announcement

Collapse
No announcement yet.

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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            177 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            332 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            254 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            356 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            184 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X