I'm trying to set begin and end time for an indicator.
In fibonacci retracement under DATA you can set Start and End time.
I want to be able to do the same with the VWMA or any other indicator.
I tried GETNEXTBEGINEND http://ninjatrader.com/support/helpG...xtbeginend.htm
I followed the exemple
private DateTime sessionBegin;
private DateTime sessionEnd;
protected override void OnBarUpdate()
{
// On the start of a new session, get the next begin or end session time and its corresponding paired session begin/end time.
if (Bars.FirstBarOfSession)
Bars.Session.GetNextBeginEnd(BarsArray[0], 0, out sessionBegin, out sessionEnd);
Print("Session Start: " + sessionBegin + " Session End: " + sessionEnd);
}
It compile but i dont see where in the indicator i can set start and end time.
Any idea why?
Frank
thank you
Comment