"http://www.ninjatrader.com/support/forum/showthread.php?t=5314&highlight=donchianchannel+in put"
but as an beginner, I am not sure how to. Appreciate any help. Thanks.
Here is the code that I wrote, it compiled without error, but no plot shows up on the chart.
=================================================
protected override void Initialize()
{
Add(new Plot(Color.Orange, PlotStyle.Line, "myUpper"));
Add(new Plot(Color.Orange, PlotStyle.Line, "myLower"));
Overlay = false;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
myUpper.Set(DonchianChannel(MACD(12, 26, 9), period).Upper[0]);
myLower.Set(DonchianChannel(MACD(12, 26, 9), period).Lower[0]);
}
================================================== ===
Comment