Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Period Separator

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

    Period Separator

    Does anyone know where or if a custom period separator indicator exists for NT7?

    #2
    Hello jrichardson83,

    Thank you for writing in. Could you please elaborate on what a custom period separator indicator does so I can investigate further for you?

    Thank you in advance.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Example

      Hello Michael,

      Essentially, the custom period separator allows the user to select the way in which the chart will be divided up in terms of time. I don't like vertical grid lines which do not provide me any really useful information, and so I use custom period separators in my other trading platforms. I've attached a screen shot of how I use them in Marketscope 2.0.

      This is a 4hr chart and to the left you can see a vertical line drawn at the beginning of October. This custom indicator allows me pretty significant latitude in choosing the specific parameters I want to see. In this instance the default grid would've drawn too many lines. Its the same way in NT7.
      Attached Files

      Comment


        #4
        Hello,

        I am not aware of any indicator that does this however is possible through custom programming.

        You could do this by using GetNextBeginEnd() and DrawVerticle Line. For more information on GetNextBeginEnd please see the following link, http://ninjatrader.com/support/helpG...xtbeginend.htm. For more information on DrawVerticalLine() please see the following link, http://ninjatrader.com/support/helpG...xtbeginend.htm.
        You can disable the Horizontal Grid lines and Vertical Grid lines from custom programming as well. Please see the following link on VerticalGridlines, http://ninjatrader.com/support/helpG...lgridlines.htm, and the following link on HorizontalGridLines, http://ninjatrader.com/support/helpG...lgridlines.htm

        An example of this is below.

        private DateTime sessionBegin;

        private DateTime sessionEnd;

        private int myTag = 0;

        protected override void Initialize()

        {

        VerticalGridLines = false;

        HorizontalGridLines = false;

        protected override void OnBarUpdate();

        {

        if(Bars.FirstBarOfSession)

        {

        myTag++;

        Bars.Session.GetNextBeginEnd(Time[0], 0, out sessionBegin, out sessionEnd);

        }

        DrawVerticalLine("Session Begin" + myTag, sessionBegin, Color.Red, DashStyle.Dashed, 2);

        DrawVerticalLine("Session End" + myTag, sessionEnd, Color.Red, DashStyle.Dashed, 2);

        }

        If we can be of any other assistance please let us know.
        Cody B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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