Summary

Returns the Accumulative Swing Index indicator instance.

Syntax

AccumulativeSwingIndex(int limitMoveValue)

Parameters

Example

 
//...
[Parameter(DefaultValue = 20)]
public int limitMove { get; set; }

[Output("Main")]
public IndicatorDataSeries Result { get; set; }

private AccumulativeSwingIndex asi;
protected override void Initialize()
{
   asi = Indicators.AccumulativeSwingIndex(limitMove);
}

public override void Calculate(int index)
{
    Result[index] = asi.Result[index];//This stores current AccumulativeSwingIndex to Result Output
    Print("Previous AccumulativeSwingIndex is: {0}", asi.Result[index-1]);// This prints previous AccumulativeSwingIndex to log
}
//...