I'm quite a Noob when it comes to progamming, but still I don't know why the following Indicator below is not plotted (compilation is not the problem).
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Overlay = false;
}
protected override void OnBarUpdate()
{
int Innenstab = 1;
if (Close[0] < High[1]);
{
Innenstab = Innenstab - 1;
}
Plot0.Set(Innenstab);
}
The if statement works, but the plotting only if the "Close" and "High" bars are set to [0]. why is this? what am I doing wrong?
Being gratefule for your help,
yours,
Andrew
Comment