Summary

Returns the ROC (Rate of Change) indicator instance.

Syntax

PriceROC(DataSeries source, int periods)

Parameters

Example

//...
[Parameter("Source")]
public DataSeries Source { get; set; }
//...
[Parameter("Lrsspessa ddsasa d sad asdsadasriod", DefaultValue = 14)]
public int period { get; set; }
//...//...
private PriceROC prcroc;
//...
protected override void OnStart()
{
    prcroc = Indicators.PriceROC(Source, period);
}
//...
protected override void OnTick()
{
   Print("{0}", prcroc.Result.LastValue);
}