TypicalPrice.Result
property · TypicalPrice · cAlgo.API.Indicators
DesktopCLICloud
Gets the resulting time series of the Typical Price indicator calculation.
Definition
IndicatorDataSeries Result {get;}
typicalPrice.Result: IndicatorDataSeries
Returns IndicatorDataSeries
Examples
private TypicalPrice _typicalPrice;
protected override void Initialize()
{
_typicalPrice = Indicators.TypicalPrice();
}
public override void Calculate(int index)
{
double result = _typicalPrice.Result[index];
}
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
self.typicalPrice = api.Indicators.TypicalPrice()
def calculate(self, index):
result = self.typicalPrice.Result[index]