Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time Regions

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

    Time Regions

    Hi I found this Time Region indicator here ,it draws colored time regions,but only three regions.


    Plz help he make changes to this indicator.I need
    multiple regions,(my session time is 6 hours 15 min)
    I want vertical lines every 15 or 30 min
    color not necessary

    regards

    #2
    Originally posted by SLASH View Post
    Hi I found this Time Region indicator here ,it draws colored time regions,but only three regions.


    Plz help he make changes to this indicator.I need
    multiple regions,(my session time is 6 hours 15 min)
    I want vertical lines every 15 or 30 min
    color not necessary

    regards
    The indicator mentioned does not handle time zones and different daylight savings schedules correctly. You would need to define your trading session by entering begin time, end time and time zone. Then draw vertical lines at a fixed interval within the selected session. Attached is a screenshot of an indicator that shows how it could be done. You could also have a look at the source code of this indicator.

    Attached Files

    Comment


      #3
      I want vertical lines after every few minutes(say 5 min or 15 min or 30 min, or 60 min etc) ,all my session on my volume bar chart .

      Comment


        #4
        Originally posted by SLASH View Post
        I want vertical lines after every few minutes(say 5 min or 15 min or 30 min, or 60 min etc) ,all my session on my volume bar chart .
        Then you would need to identify the session start and add vertical lines as needed. The problem here is that the volume bars will not align to the vertical lines but will overlap from one into the next segment.

        NinjaTrader comes with a script method DrawVerticalLine(), which you can use to achieve what you wish. Best use the syntax

        Code:
        DrawVerticalLine(string tag, DateTime time,  Color  color, DashStyle dashStyle,  int  width)
        Last edited by Harry; 04-22-2015, 07:16 AM.

        Comment


          #5
          Thanks Harry, found this indicator here post 7 http://www.ninjatrader.com/support/f...+vertical+line

          how can I draw these lines to panel 2 and 3 too ?

          Comment


            #6
            Hello SLASH,

            Thank you for your response.

            The indicators can draw on their own panel or the price panel only. Please take a look at the DrawOnPricePanel at the following link: http://www.ninjatrader.com/support/h...pricepanel.htm

            Comment

            Latest Posts

            Collapse

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