WeightedClose


Summary

The WeightedClose indicator is an average of each day's price with extra weight given to the closing price.

Remarks

Similar to the Median Price and Typical Price Indicators

Syntax

public WeightedClose WeightedClose()
public WeightedClose WeightedClose(MarketSeries marketSeries)

Example 1

//...
private WeightedClose weightedCloseSeries;
//...
protected override void OnStart()
{
    weightedCloseSeries = Indicators.WeightedClose();
    //...
}
protected override void OnBar()
{
    double weightedCloseValue = weightedCloseSeries.Result[index];
    //...
}