Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Period Separator
Collapse
X
-
Period Separator
Does anyone know where or if a custom period separator indicator exists for NT7?Tags: None
-
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.
Comment
-
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
656 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
371 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment