Another frustrating attempt at doing anything productive with MTF Indicators in ver.7
I am simply trying to plot the previous hours closing levels and the previous days closing levels(sesion EOD as defined in instrument manager).
I can see 5min closes when using 1min primary bars.
Also 59min closes.
Can't plot anything greater on 1 min charts.
Additionally, has MTF in 7 been tested to Production standard?
Thank you
protected override void Initialize()
{
// This works
Add(PeriodType.Minute, 5);
//This doesn't
//Add(PeriodType.Minute, 60);
//This doesn't
// Add(PeriodType.Day, 1);
Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "LongStopIn"));
Overlay = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
// Can only plot values < 59 min
LongStopIn.Set(Closes[1][1]);
}

Comment