Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    BertrandNinjaTrader Customer Service

    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 bortz, 11-06-2023, 08:04 AM
              47 responses
              1,605 views
              0 likes
              Last Post aligator  
              Started by jaybedreamin, Today, 05:56 PM
              0 responses
              8 views
              0 likes
              Last Post jaybedreamin  
              Started by DJ888, 04-16-2024, 06:09 PM
              6 responses
              18 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by Jon17, Today, 04:33 PM
              0 responses
              4 views
              0 likes
              Last Post Jon17
              by Jon17
               
              Started by Javierw.ok, Today, 04:12 PM
              0 responses
              13 views
              0 likes
              Last Post Javierw.ok  
              Working...
              X