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 cmoran13, 04-16-2026, 01:02 PM
              0 responses
              43 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              27 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              163 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              98 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              158 views
              2 likes
              Last Post CaptainJack  
              Working...
              X