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!
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
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 Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
4 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
41 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
19 views
0 likes
|
Last Post Today, 03:03 PM |
Comment