I'm trying to add a longer term MACD to my indicator. Below code is copied from NT7 strategy sample, but still causing errors:
protected override void Initialize()
{
// Add 10 minute Bars object to the strategy
Add(PeriodType.Minute, 10);
Add(MACD(5,20,30)); // This line causing errors
//Add(SMA(50)); -- orig NT code also causing errors if uncomment --
CalculateOnBarClose = true;
}
If I remove Add MACD and uncomment the original NT code: Add(SMA(50)); this will cause the same errors. The strategy sample compiles w/out errors.
I just noticed another problem: the Add(PeriodType.Minute, 10); causing all my arrows up/down dissapearing from the chart. If I comment this line - all works fine.
Thank you.
Regards, Art.

Comment