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

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, 10: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:


              Last edited by mountainclimber; 05-07-2010, 10: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 kaywai, 09-01-2023, 08:44 PM
                        5 responses
                        601 views
                        0 likes
                        Last Post NinjaTrader_Jason  
                        Started by xiinteractive, 04-09-2024, 08:08 AM
                        6 responses
                        22 views
                        0 likes
                        Last Post xiinteractive  
                        Started by Pattontje, Yesterday, 02:10 PM
                        2 responses
                        19 views
                        0 likes
                        Last Post Pattontje  
                        Started by flybuzz, 04-21-2024, 04:07 PM
                        17 responses
                        230 views
                        0 likes
                        Last Post TradingLoss  
                        Started by agclub, 04-21-2024, 08:57 PM
                        3 responses
                        17 views
                        0 likes
                        Last Post TradingLoss  
                        Working...
                        X