Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Horizontal Lines from specific time periods (overnight)

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

    Drawing Horizontal Lines from specific time periods (overnight)

    Hello,
    Instead of doing this manually each day (see image) , is there a way to automate drawing a horizontal line from the high of a time period from 9pm - 3am? And do likewise with the low?

    I can get it to work from midnight to 3 am, but am not sure how to get it to start from 9pm since it is a different day.

    #2
    Hello centrino2,

    Thank you for your post.

    We have an existing sample script which demonstrates obtaining the highest high and lowest low from a specified time period.



    This script will plot the values on the chart, however you can edit it to instead draw a horizontal line on the highest high or lowest low value.

    Draw.HorizontalLine() - https://ninjatrader.com/support/help...zontalline.htm

    Please let us know if you have any further questions.

    Comment


      #3
      Hello,

      Thanks for the prompt reply. I am able to make that work but only from a time period from the same day. For example: midnight - 3am. How would you get this to work when one needs to consider a start time from a prior day? Such as 9pm - 3 am?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      600 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X