Result


Summary

The resulting time series of the WeightedMovingAverage Indicator calculation

Syntax

public IndicatorDataSeries Result{ get; }

Example 1

private WeightedMovingAverage _weightedMovingAverage;
protected override void OnStart()
{
    _weightedMovingAverage = Indicators.WeightedMovingAverage(Source, Period);
}
protected override void OnTick()
{
    if(Trade.IsExecuting)
        return;
    int index = MarketSeries.Close.Count - 1;
    if(Symbol.Bid > _weightedMovingAverage.Result[index])
    {
        Trade.CreateMarketOrder(TradeType.Buy, Symbol, Volume);
    }
 }