Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText

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

    DrawText

    Hi support!

    Since I upgraded my Ninja Trader to new version 6.5.1000.9, I´ve got a problem with my custom indicator.

    When I use DrawText("test1","test", 0, High[0],Color.White) or something like this I can see text next to the indicator not next the current bar as I expected.

    When I use DrawDiamond("highForNextBar", true, 0, High[0],Color.White), Diamond appears on correct position(see attached pictures).

    In old version was text on the same position as diamond.

    I tried to make new strategy, simple indicator but unfortunately without success.

    I need display text next to the current bar. Where I can find any solution?
    Attached Files

    #2
    Hi rcotrade, welcome to the NinjaTrader support forums! Are you sure you have not set DrawOnPricePanel to false in your second screenshot?

    Comment


      #3
      Hi Bertrand,

      :-) unfornutately not.
      Do you think I put to test Ninja Trader support?
      I´m just kidding :-).
      I think all the team have a lot of work... ;-)

      Code:

      protected override void Initialize()
      {
      CalculateOnBarClose = false;
      DrawOnPricePanel = true;
      PaintPriceMarkers = false;
      valueFormatStringSet();
      }
      .
      .
      .
      protected override void OnBarUpdate()
      {
      DrawText("highForNextBar","TEST", 0, High[0],Color.White);
      }

      or

      protected override void OnBarUpdate()
      {
      DrawDiamond("highForNextBar", true, 0, High[0],Color.White);
      }

      .
      .
      .
      Thanks
      rcotrade

      Comment


        #4
        rcotrade,

        I am unable to reproduce. Please try attached reference on your end.
        Attached Files
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          :-(

          Hmm, something is wrong on my Ninja...

          Nothing change...
          - when I put your indicator into my chart and y- value is set to Close[0],
          I can´t see nothing

          - I tried to put it into panel 2 and set y-value to 0.4,
          ....DrawText("fdsa", "TEXT", 0, 0.4, Color.Blue);
          text appear on right position but in panel 2.

          I will try to reinstal Ninja in the evening and we will see....

          Thanks for your support.

          rcotrade
          Attached Files

          Comment


            #6
            rcotrade,

            Please try on a minute chart. See if that makes any difference. If not, please be sure to clear your internet browser cache before you reinstall.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Resolved

              Problem resolved. After reinstallation everything seems to be OK.
              Thank you for your support.

              rcotrade

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              577 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              334 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X