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

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.

    The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies
    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 hurleydood, 09-12-2019, 10:45 AM
            14 responses
            1,093 views
            0 likes
            Last Post Board game geek  
            Started by cre8able, Yesterday, 04:16 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cre8able, Yesterday, 04:22 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by stafe, 04-15-2024, 08:34 PM
            5 responses
            28 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by StrongLikeBull, Yesterday, 04:05 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X