public override FormulaPackage Run(IDataProvider dp) { this.DataProvider = dp; FormulaData formulaData = (base.HIGH + base.LOW + base.CLOSE) / 3.0; formulaData.Name = "TYP "; FormulaData formulaData2 = (formulaData - FormulaBase.MA(formulaData, this.N)) / (0.015 * FormulaBase.AVEDEV(formulaData, this.N)); return(new FormulaPackage(new FormulaData[] { formulaData2 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData = FormulaData.op_Division(FormulaData.op_Addition(FormulaData.op_Addition(this.get_HIGH(), this.get_LOW()), this.get_CLOSE()), FormulaData.op_Implicit(3.0)); formulaData.Name = (__Null)"TYP "; return(new FormulaPackage(new FormulaData[1] { FormulaData.op_Division(FormulaData.op_Subtraction(formulaData, FormulaBase.MA(formulaData, this.N)), FormulaData.op_Multiply(FormulaData.op_Implicit(0.015), FormulaBase.AVEDEV(formulaData, this.N))) }, "")); }