Summary

Moving Average (Middle Bollinger Band).

Value

The main result.

Example

//...
[Parameter("Source")]
public DataSeries Source { get; set; }
[Parameter("BandPeriods", DefaultValue = 14)]
public int BandPeriod { get; set; }
[Parameter("Std", DefaultValue = 14)]
public int std { get; set; }
[Parameter("MAType")]
public MovingAverageType MAType { get; set; }
//...
private BollingerBands boll;
//...
protected override void OnStart()
{
    boll = Indicators.BollingerBands(Source,BandPeriod,std,MAType);
}
protected override void OnBar()
{
    Print("Current Main Bollinger Band's price is: {0}", boll.Main.LastValue);
}
//...