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 sjsj2732, 03-23-2026, 04:31 AM
              0 responses
              69 views
              0 likes
              Last Post sjsj2732  
              Started by NullPointStrategies, 03-13-2026, 05:17 AM
              0 responses
              312 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              306 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              146 views
              1 like
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              108 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Working...
              X