Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

5 Day High Low Bar

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

    5 Day High Low Bar

    I would like to display a horizontal line that represents the 5 day high and one displays the 5 day low on the price graph. Obviously, it would update for each bar. The line would only go back to the beginning of the 5th bar and would extend in a ray to the right side of the chart.

    How do I do that?

    #2
    I should add that the line would be the max 5 day high and the max 5 day low.

    Comment


      #3
      Use DrawRay(). You sound to be on daily bars so it is very easy to determine where 5 bars ago were. To determine the price just use MAX(High, 5)[0]. For the low you can use MIN(Low, 5)[0]. Then just draw the rays forward.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        I generally trade a 1 minute bar. Can this be done with a one minute bar?

        Comment


          #5
          Hi, please check this post from our sharing - http://www.ninjatrader-support2.com/...id=131&catid=1

          This tracks the 3 Day High / Low, it should be not hard to modify it for longer days back from there.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          51 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          31 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          165 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          100 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          160 views
          2 likes
          Last Post CaptainJack  
          Working...
          X