I am using tick chart when a particular size volume appears the indicator should plot a dot above it say I want to plot a Red Dot above ticks which has volume equal to 550.
I am trying to modify High Volume Indicator,but I get the error on compiling "SpecificVolume,member names can not be same as their enclosing types"
plz help
public class Specific Volume : Indicator
{
#region Variables
// Wizard generated variables
private int SpecificVolume = 550; // Default setting for SpecificVolume
private Color SpecificAlert = Color.Gold;
// User defined variables (add any user defined variables below)
#endregion
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(new Plot(new Pen(Color.Blue, 2), PlotStyle.Bar, "Volume"));
Add(new Line(Color.DarkGray, 0, "Zero line"));
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
Value.Set(Volume[0]);
if (Volume[0] = SpecificVolume)
{
DrawDot("VolDot" + CurrentBar,true, 0, High[0] + 5*TickSize, highAlert);
}
}

Comment