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 CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            324 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            205 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            193 views
            1 like
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            283 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            240 views
            0 likes
            Last Post CarlTrading  
            Working...
            X