I want to draw an Arrow after 5 minutes when volume of 1000 size comes
regards
public class HighVolAlert : Indicator
{
#region Variables
// Wizard generated variables
private int highVolume = 1000; // Default setting for HighVolume
private Color highAlert = Color.Black;
// 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] >= HighVolume)
{
DrawDiamond("VolDiamond" + CurrentBar,true, 0, High[0] + 40*TickSize, highAlert);
}
}

Comment