Using your @sampleMultiTimeFrame.cs as a base
I've added the following lines to protected override void Initialize()
Add(PeriodType.Day,1);
Add(SMA(8));
Add(SMA(21));
After compiling I get the following error twice
The best overloaded method match for NT.Indicator.IndicatorBase.Add(nt.gui.chart.line)'
Argument '1'; cannot convert from NT.Indicator.SMA to nt.gui.chart.line
Any ideas?
Also your example uses
if (BarsInProgress != 0) return;
and i already use
if (CurrentBar < 2) return;
can you tell me what the difference is and should i be able to use either?
Thanks
Comment