Sure I'm in error but I can't find it.
This is the code :
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Black), PlotStyle.Bar, "Snipervol"));
Overlay = false;
CalculateOnBarClose = false;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (CurrentBar < 100)
return;
double M = SMA(Volume,smaperiod)[0];
Snipervol.Set((Volume[0]/M)*100);
}
Comment