Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When i change Y scale - i can't see a part of chart after scrolling - why?

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

    #16
    Originally posted by NinjaTrader_Matthew View Post
    If you want to draw in the middle of the bar, you can use the Median bar property, where Median price = (High + Low) / 2.

    DrawText("tag1", "Text to draw", 0, Median[0], Color.Black);
    How to draw text in exectly time in seconds?

    Comment


      #17
      Hello agafon2,

      You would want to use the DrawText() method overload that has a DateTime Object so that you can set the DateTime of when the DrawText() is drawn at.

      DrawText(string tag, bool autoScale, string text, DateTime time, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
      JCNinjaTrader Customer Service

      Comment


        #18
        I want to draw text inside this box for example:

        Picture:



        How to do it?

        Comment


          #19
          Hello agafon2,

          You would have to use the DrawRectangle() method separately and manually draw a box around the Text that you have placed on the chart.
          JCNinjaTrader Customer Service

          Comment


            #20
            How to draw objects, which will be always on the bottom of chart?

            Picture:

            Comment


              #21
              Hello agafon2,

              This would require overriding plot method. There is a sample available with all installations that can get you started though by going to Tools -> Edit NinjaScript -> Indicator -> CustomPlotSample. It draws some text in a corner and two lines across corners of the chart.
              JCNinjaTrader Customer Service

              Comment


                #22
                What an algorithm of making Range chart? How does it count?

                Comment


                  #23
                  Hello agafon2,

                  You may see how the Range bar type and all other bars are calculated by going to (My) Documents -> NinjaTrader 7 -> bin -> Custom -> Type folder and open up the "@BarsTypes.cs" file.
                  JCNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by CaptainJack, 05-29-2026, 05:09 AM
                  0 responses
                  482 views
                  0 likes
                  Last Post CaptainJack  
                  Started by CaptainJack, 05-29-2026, 12:02 AM
                  0 responses
                  330 views
                  0 likes
                  Last Post CaptainJack  
                  Started by charlesugo_1, 05-26-2026, 05:03 PM
                  0 responses
                  259 views
                  1 like
                  Last Post charlesugo_1  
                  Started by DannyP96, 05-18-2026, 02:38 PM
                  1 response
                  347 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 05-11-2026, 05:56 AM
                  0 responses
                  312 views
                  0 likes
                  Last Post CarlTrading  
                  Working...
                  X