• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple indicator to draw vertical lines at time of day

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

    Simple indicator to draw vertical lines at time of day

    Hello,

    Is there a simple indicator that will draw vertical lines at differentiate times of day on the chart...say one at midnight, or the open and close of a market?

    Thanks

    #2
    Turtle Trader,

    You can use session break lines pre built with your chart to draw vertical lines for those times. You will then need to custom program an indicator to draw vertical lines at other times.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Vertical Lines

      Is there an indicator that can draw vertical lines every x number of bars.

      Comment


        #4
        GeorgeO, unfortunately I'm not aware of already created one, you would need to custom code via our NinjaScript, you can access the bars count with CurrentBar.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I'm not aware of one either, but I can program it for your for payment.

          Let me know...

          Last edited by mountainclimber; 05-07-2010, 09:07 AM.

          Comment


            #6
            Originally posted by GeorgeO View Post
            Is there an indicator that can draw vertical lines every x number of bars.
            Here is the concept how to implement that idea:

            if (FirstTickOfBar)
            {
            if (CurrentBar % XNumberOfBars == 0)
            {
            DrawVerticalLine("VL" + CurrentBar, 0, Color.Blue);
            }
            }

            Regards
            Ralph

            Comment


              #7
              If you want to get creative with your lines this might help also:
              http://www.ninjatrader.com/support/h...b=drawvertical

              Last edited by mountainclimber; 05-07-2010, 09:04 AM.

              Comment


                #8
                Vertical Lines

                Thanks Ralph. I am not a programmer so I wouldn't be able to exploit the tip you provided. If you have time maybe you can code it further. Thank you.

                Comment


                  #9
                  George,

                  here is one.

                  Regards
                  Ralph
                  Attached Files

                  Comment


                    #10
                    Vertical Lines

                    Ralph - Thank you so much. At the risk of sounding unappreciative, is it possible to start the count from a particular bar. Typically I start the count from a low or high pivot. Could you include a start date parameter and a start bar parameter?.

                    Comment


                      #11
                      George,

                      now you can define a start date. The indicator starts plotting at the first bar of that day. In addition you can define a bar offset related to that start point. For example, the default offset of zero starts plotting at the first bar of day and an offset of one starts plotting one bar later, etc.

                      Regards
                      Ralph
                      Attached Files

                      Comment


                        #12
                        Vertical Lines

                        Ralph,

                        Thanks a lot. That's precisely what am looking for. Much appreciated.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Nat11, Today, 04:30 AM
                        1 response
                        13 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Started by Option Whisperer, Yesterday, 11:50 AM
                        2 responses
                        10 views
                        0 likes
                        Last Post Option Whisperer  
                        Started by TraderJim618, Yesterday, 01:20 PM
                        1 response
                        6 views
                        0 likes
                        Last Post NinjaTrader_ChrisL  
                        Started by drpapp, 01-24-2019, 06:57 AM
                        6 responses
                        75 views
                        1 like
                        Last Post brucerobinson  
                        Started by ttodua, 12-06-2019, 11:40 PM
                        1 response
                        13 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Working...
                        X