Here is the most basic code to display an indicator:
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(Close[0]);
}
/*
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
{
}
*/
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(Close[0]);
}
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
{
// Prevents Plot0.Set() in OnBarUpdate() to be executed ???
}
Thanks.
Comment