Histogram


Summary

The Histogram (bar graph)

Remarks

Histogram of MACD: difference between the blue and red lines

Syntax

public IndicatorDataSeries Histogram{ get; }

Example 1

//...
private MacdCrossOver _macdCrossOver;
[Output("Histogram")]
public IndicatorDataSeries Histogram { get; set; }
protected override void Initialize()
{
    _macdCrossOver = Indicators.MacdCrossOver(LongCycle, ShortCycle, Period);
}
public override void Calculate(int index)
{
    Histogram[index] = _macdCrossOver.Histogram[index];
    //...
}