The inputs are setup as properties for the indicator, so you can enter 5 times, these time entry's are the setting used in the period.
protected override void Initialize()
{
Add(PeriodType.Minute, time1);
Add(PeriodType.Minute, time2);
Add(PeriodType.Minute, time3);
Add(PeriodType.Minute, time4);
Add(PeriodType.Minute, time5);
Add(new Plot(Color.FromKnownColor(KnownColor.Blue), PlotStyle.Line, "LT1"));
Add(new Plot(Color.FromKnownColor(KnownColor.Aqua), PlotStyle.Line, "LT2"));
Add(new Plot(Color.FromKnownColor(KnownColor.Purple), PlotStyle.Line, "LT3"));
Add(new Plot(Color.FromKnownColor(KnownColor.Lime), PlotStyle.Line, "LT4"));
Add(new Plot(Color.FromKnownColor(KnownColor.Gold), PlotStyle.Line, "LT5"));
}
I can get the SMA through a function for each indicator and even plot it, but the plots that are greater then the chart period don't join together.
So for example, I set a chart with 10 minute bars, and set Time1 to 5, Time2 to 10, Time3 to 30, Time4 to 60 and Time5 to 300.
The time period set greater then 10 don't join, like on the 30 minute mark it will draw a value but it is a little dot, any value in between the BarArray, for example 35, 40,50 etc
the value of that plot is 0.
How do I get it to keep the original value and plot on update? Or what am I doing wrong to make this not work? If i haven't explained this well enough Ill provide examples. Any help or examples at all would be greatly appreciated.

Comment