ChaikinVolatility


Summary

The Chaikin Volatiliy indicator measures the trading range between the high and the low prices.

Syntax

public ChaikinVolatility ChaikinVolatility(int periods, int rateOfChange, MovingAverageType maType)
public ChaikinVolatility ChaikinVolatility(MarketSeries marketSeries, int periods, int rateOfChange, MovingAverageType maType)

Parameters

NameDescription

Example 1

private ChaikinVolatility chaikinVolatility;
protected override void OnStart()
{
    chaikinVolatility = Indicators.ChaikinVolatility(Periods, _roc, MaType);
}
protected override void OnBar()
{
    // Print to log
    Print("The Current Chaikin Volatility Value is: {0}",
             chaikinVolatility.Result.LastValue);
}