/// <summary>
/// Colors the background whenever Volume is greater that 5000 on bar
/// </summary>
[Description("Colors the background whenever Volume is greater that 5000 on bar")]
public class VolumeColor : Strategy
{
#region Variables
// Wizard generated variables
// User defined variables (add any user defined variables below)
#endregion
/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (Volume[0] > 5000)
{
BackColorAll = Color.LemonChiffon;
}
}
#region Properties
#endregion
}
}

Comment