Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Plot Labels

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

    #16
    yes calling AddChartIndicator(myIndicator) in State.DataLoaded

    Comment


      #17
      yes calling AddChartIndicator(myIndicator) in State.DataLoaded
      Last edited by dibDab; 03-03-2023, 09:13 AM.

      Comment


        #18
        Hello dibDab,

        Are you calling a plot value from the indicator in OnBarUpdate()? (Or calling Update() if there are no plots to call?)

        AddChartIndicatorDrawTest_NT8.zip
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          yes calling AddChartIndicator()

          this works when I add just the indicator

          Code:
          else if (State == State.DataLoaded)
          {
              Draw.TextFixed(this, "tag1", "A", TextPosition.TopLeft, Plots[1].Brush, SFont, null, null, 70);
              Draw.TextFixed(this, "tag0", "\r\yB", TextPosition.TopLeft, Plots[0].Brush, SFont, null, null, 70);
          }​
          but not when the strategy adds the indicator
          Last edited by dibDab; 03-03-2023, 10:43 AM.

          Comment


            #20
            Hello dibDab,

            In post # 18 I am asking if you are calling the indicator plot value in OnBarUpdate().

            This post has a working example for you to learn from.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            647 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            368 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            571 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X