Below is a code segment:
public class MyWMACrossoverDot : Indicator
{
#region Variables
// Wizard generated variables
private int fastperiod = 6;
private int slowperiod = 30;
// 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()
{
CalculateOnBarClose = false;
Overlay = true;
}
Comment