Here is the code:
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
Overlay = false;
PriceTypeSupported = false;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
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.
// Condition set 1
if (Open[1] > Close[1]
&& Open[2] > Close[2]
&& Open[3] > Close[3])
{
DrawArrowUp("My up arrow" + CurrentBar, false, 0, 0, Color.Lime);
}
}
#region Properties
#endregion
Regards,
Brian
Comment