The indicator works, the math is correct (I can see this from the data box plus copious use of print statements to the output window). Everything works fine BUT.....
My problem is my lack of true understanding of the Add() and/or DataSeries commands.
I have enough of it down to get everything to work EXCEPT that I cannot 'see' anything being plotted to the chart.
Here's a snip or two:
protected override void Initialize()
{
Add(new Plot(Color.Green, PlotStyle.Bar, "Barplot"));
....
}
protected override void OnBarUpdate()
{
......
double barplotnum = Close[0];
Barplot.Set(barplotnum);
}
#region Properties
.....
public DataSeries Barplot
{
get { return Values[3]; }
}
#endregion
Yes, the above "Values[3]" is evidently correct as I have other plots that are working fine. They were copy and pasted from other indicators but when I tried to duplicate my "BarPlot" plot, it would not show up on screen.
I feel like I am so close, but I just can't see it..
Comment