public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaData.op_Subtraction(FormulaBase.REF(this.get_HIGH(), 1.0), FormulaBase.REF(this.get_LOW(), 1.0)); formulaData1.Name = (__Null)"PT "; FormulaData formulaData2 = FormulaData.op_Division(FormulaData.op_Addition(FormulaData.op_Addition(this.get_HIGH(), this.get_LOW()), this.get_CLOSE()), FormulaData.op_Implicit(3.0)); formulaData2.Name = (__Null)"CDP "; FormulaData formulaData3 = FormulaData.op_Addition(formulaData2, formulaData1); formulaData3.Name = (__Null)"AH "; FormulaData formulaData4 = FormulaData.op_Subtraction(formulaData2, formulaData1); formulaData4.Name = (__Null)"AL "; FormulaData formulaData5 = FormulaData.op_Subtraction(FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData2), this.get_LOW()); formulaData5.Name = (__Null)"NH "; FormulaData formulaData6 = FormulaData.op_Subtraction(FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData2), this.get_HIGH()); formulaData6.Name = (__Null)"NL "; return(new FormulaPackage(new FormulaData[5] { formulaData2, formulaData3, formulaData4, formulaData5, formulaData6 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; return(new FormulaPackage(new FormulaData[1] { FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(this.get_VOL(), FormulaBase.REF(this.get_VOL(), this.N)), FormulaBase.REF(this.get_VOL(), this.N)), FormulaData.op_Implicit(100.0)) }, "")); }
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))) }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaBase.REF(this.get_C(), 1.0); formulaData1.Name = (__Null)"LC "; FormulaData formulaData2 = FormulaBase.MIN(new FormulaData[2] { this.get_L(), formulaData1 }); formulaData2.Name = (__Null)"TL "; FormulaData formulaData3 = FormulaData.op_Subtraction(this.get_C(), formulaData2); formulaData3.Name = (__Null)"BP "; FormulaData formulaData4 = FormulaBase.MAX(new FormulaData[3] { FormulaData.op_Subtraction(this.get_H(), this.get_L()), FormulaBase.ABS(FormulaData.op_Subtraction(formulaData1, this.get_H())), FormulaBase.ABS(FormulaData.op_Subtraction(formulaData1, this.get_L())) }); formulaData4.Name = (__Null)"TR "; FormulaData formulaData5 = FormulaBase.MA(formulaData3, this.N1); formulaData5.Name = (__Null)"BPSUM1 "; FormulaData formulaData6 = FormulaBase.MA(formulaData3, this.N2); formulaData6.Name = (__Null)"BPSUM2 "; FormulaData formulaData7 = FormulaBase.MA(formulaData3, this.N3); formulaData7.Name = (__Null)"BPSUM3 "; FormulaData formulaData8 = FormulaBase.MA(formulaData4, this.N1); formulaData8.Name = (__Null)"TRSUM1 "; FormulaData formulaData9 = FormulaBase.MA(formulaData4, this.N2); formulaData9.Name = (__Null)"TRSUM2 "; FormulaData formulaData10 = FormulaBase.MA(formulaData4, this.N3); formulaData10.Name = (__Null)"TRSUM3 "; FormulaData formulaData11 = FormulaData.op_Addition(FormulaData.op_Addition(FormulaData.op_Multiply(FormulaData.op_Implicit(4.0), FormulaData.op_Division(formulaData5, formulaData8)), FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), FormulaData.op_Division(formulaData6, formulaData9))), FormulaData.op_Division(formulaData7, formulaData10)); formulaData11.Name = (__Null)"RAWUO "; FormulaData formulaData12 = FormulaData.op_Multiply(FormulaData.op_Division(formulaData11, FormulaData.op_Implicit(7.0)), FormulaData.op_Implicit(100.0)); formulaData12.SetAttrs("WIDTH1.6,HIGHQUALITY"); return(new FormulaPackage(new FormulaData[1] { formulaData12 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaBase.SUM(FormulaData.op_Subtraction(this.get_ADVANCE(), this.get_DECLINE()), 0.0); formulaData1.Name = (__Null)"ADL "; FormulaData formulaData2 = FormulaData.op_Subtraction(FormulaBase.MA(formulaData1, this.SHORT), FormulaBase.MA(formulaData1, this.LONG)); formulaData2.Name = (__Null)"CHA "; return(new FormulaPackage(new FormulaData[1] { formulaData2 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaBase.MAX(new FormulaData[2] { FormulaBase.ABS(FormulaData.op_Subtraction(this.get_H(), FormulaBase.REF(this.get_H(), 1.0))), FormulaBase.ABS(FormulaData.op_Subtraction(this.get_L(), FormulaBase.REF(this.get_L(), 1.0))) }).Name = (__Null)"TR"; FormulaData formulaData1 = FormulaBase.IF(FormulaData.op_LessThanOrEqual(FormulaData.op_Addition(this.get_H(), this.get_L()), FormulaData.op_Addition(FormulaBase.REF(this.get_H(), 1.0), FormulaBase.REF(this.get_L(), 1.0))), FormulaData.op_Implicit(0.0), FormulaBase.MAX(new FormulaData[2] { FormulaBase.ABS(FormulaData.op_Subtraction(this.get_H(), FormulaBase.REF(this.get_H(), 1.0))), FormulaBase.ABS(FormulaData.op_Subtraction(this.get_L(), FormulaBase.REF(this.get_L(), 1.0))) })); formulaData1.Name = (__Null)"DMZ"; FormulaData formulaData2 = FormulaBase.IF(FormulaData.op_GreaterThanOrEqual(FormulaData.op_Addition(this.get_H(), this.get_L()), FormulaData.op_Addition(FormulaBase.REF(this.get_H(), 1.0), FormulaBase.REF(this.get_L(), 1.0))), FormulaData.op_Implicit(0.0), FormulaBase.MAX(new FormulaData[2] { FormulaBase.ABS(FormulaData.op_Subtraction(this.get_H(), FormulaBase.REF(this.get_H(), 1.0))), FormulaBase.ABS(FormulaData.op_Subtraction(this.get_L(), FormulaBase.REF(this.get_L(), 1.0))) })); formulaData2.Name = (__Null)"DMF"; FormulaData formulaData3 = FormulaData.op_Division(FormulaBase.SUM(formulaData1, this.N), FormulaData.op_Addition(FormulaBase.SUM(formulaData1, this.N), FormulaBase.SUM(formulaData2, this.N))); formulaData3.Name = (__Null)"DIZ"; FormulaData formulaData4 = FormulaData.op_Division(FormulaBase.SUM(formulaData2, this.N), FormulaData.op_Addition(FormulaBase.SUM(formulaData2, this.N), FormulaBase.SUM(formulaData1, this.N))); formulaData4.Name = (__Null)"DIF"; FormulaData formulaData5 = FormulaData.op_Subtraction(formulaData3, formulaData4); formulaData5.Name = (__Null)"DDI"; formulaData5.SetAttrs("COLORSTICK"); FormulaData formulaData6 = FormulaBase.SMA(formulaData5, this.N1, this.M); formulaData6.Name = (__Null)"ADDI"; FormulaData formulaData7 = FormulaBase.MA(formulaData6, this.M1); formulaData7.Name = (__Null)"AD"; return(new FormulaPackage(new FormulaData[3] { formulaData5, formulaData6, formulaData7 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaBase.HHV(this.get_H(), this.N); formulaData1.Name = (__Null)"A "; FormulaData formulaData2 = FormulaBase.LLV(this.get_L(), this.N); formulaData2.Name = (__Null)"B "; FormulaData formulaData3 = FormulaData.op_Multiply(FormulaBase.BACKSET(this.get_ISLASTBAR(), this.N), FormulaData.op_Implicit(formulaData1.get_LASTDATA())); formulaData3.Name = (__Null)"HH"; formulaData3.SetAttrs("WIDTH2"); FormulaData formulaData4 = FormulaData.op_Multiply(FormulaBase.BACKSET(this.get_ISLASTBAR(), this.N), FormulaData.op_Implicit(formulaData2.get_LASTDATA())); formulaData4.Name = (__Null)"LL"; formulaData4.SetAttrs("WIDTH2"); FormulaData formulaData5 = FormulaData.op_Subtraction(formulaData3, formulaData4); formulaData5.Name = (__Null)"HEIGHT "; FormulaData formulaData6 = FormulaData.op_Addition(formulaData4, FormulaData.op_Multiply(formulaData5, FormulaData.op_Implicit(0.382))); formulaData6.Name = (__Null)"A1 "; FormulaData formulaData7 = FormulaData.op_Addition(formulaData4, FormulaData.op_Multiply(formulaData5, FormulaData.op_Implicit(0.5))); formulaData7.Name = (__Null)"A2 "; FormulaData formulaData8 = FormulaData.op_Addition(formulaData4, FormulaData.op_Multiply(formulaData5, FormulaData.op_Implicit(0.618))); formulaData8.Name = (__Null)"A3 "; this.SETTEXTVISIBLE(formulaData3, false); this.SETTEXTVISIBLE(formulaData4, false); this.SETTEXTVISIBLE(formulaData6, false); this.SETTEXTVISIBLE(formulaData7, false); this.SETTEXTVISIBLE(formulaData8, false); return(new FormulaPackage(new FormulaData[5] { formulaData3, formulaData4, formulaData6, formulaData7, formulaData8 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaData.op_Division(FormulaData.op_Addition(FormulaData.op_Addition(FormulaData.op_Addition(FormulaBase.MA(this.get_CLOSE(), 3.0), FormulaBase.MA(this.get_CLOSE(), 6.0)), FormulaBase.MA(this.get_CLOSE(), 12.0)), FormulaBase.MA(this.get_CLOSE(), 24.0)), FormulaData.op_Implicit(4.0)); formulaData1.Name = (__Null)"BBI"; FormulaData formulaData2 = FormulaData.op_Addition(formulaData1, FormulaData.op_Multiply(FormulaData.op_Implicit(this.P), FormulaBase.STD(formulaData1, this.N))); formulaData2.Name = (__Null)"UPR"; FormulaData formulaData3 = FormulaData.op_Subtraction(formulaData1, FormulaData.op_Multiply(FormulaData.op_Implicit(this.P), FormulaBase.STD(formulaData1, this.N))); formulaData3.Name = (__Null)"DWN"; return(new FormulaPackage(new FormulaData[3] { formulaData1, formulaData2, formulaData3 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaBase.MA(this.get_CLOSE(), this.N); formulaData1.Name = (__Null)"MID "; FormulaData formulaData2 = FormulaData.op_Addition(formulaData1, FormulaData.op_Multiply(FormulaData.op_Implicit(this.P), FormulaBase.STD(this.get_CLOSE(), this.N))); formulaData2.Name = (__Null)"UPPER"; FormulaData formulaData3 = FormulaData.op_Subtraction(formulaData1, FormulaData.op_Multiply(FormulaData.op_Implicit(this.P), FormulaBase.STD(this.get_CLOSE(), this.N))); formulaData3.Name = (__Null)"LOWER"; return(new FormulaPackage(new FormulaData[3] { formulaData1, formulaData2, formulaData3 }, "")); }
public virtual FormulaPackage Run(IDataProvider dp) { this.DataProvider = (__Null)dp; FormulaData formulaData1 = FormulaData.op_Division(FormulaData.op_Addition(FormulaData.op_Addition(this.get_H(), this.get_L()), this.get_C()), FormulaData.op_Implicit(3.0)); formulaData1.Name = (__Null)"M "; FormulaData formulaData2 = FormulaData.op_Subtraction(this.get_H(), this.get_L()); formulaData2.Name = (__Null)"A "; FormulaData formulaData3 = FormulaData.op_Addition(formulaData1, formulaData2); formulaData3.Name = (__Null)"RR"; FormulaData formulaData4 = FormulaData.op_Subtraction(formulaData1, formulaData2); formulaData4.Name = (__Null)"SS"; FormulaData formulaData5 = FormulaData.op_Multiply(FormulaBase.BACKSET(this.get_ISLASTBAR(), 5.0), FormulaData.op_Implicit(formulaData3.get_LASTDATA())); formulaData5.Name = (__Null)"R"; formulaData5.SetAttrs("WIDTH2,HIGHSPEED,COLORRED"); FormulaData formulaData6 = FormulaData.op_Multiply(FormulaBase.BACKSET(this.get_ISLASTBAR(), 5.0), FormulaData.op_Implicit(formulaData4.get_LASTDATA())); formulaData6.Name = (__Null)"S"; formulaData6.SetAttrs("WIDTH2,HIGHSPEED,COLORDARKGREEN"); FormulaData formulaData7 = this.DRAWNUMBER(FormulaData.op_Equality(FormulaBase.BARSSINCE(formulaData5), FormulaData.op_Implicit(1.0)), formulaData5, formulaData5, "F2"); formulaData7.SetAttrs("LABEL0,VCENTER,RIGHT,COLORRED"); FormulaData formulaData8 = this.DRAWNUMBER(FormulaData.op_Equality(FormulaBase.BARSSINCE(formulaData6), FormulaData.op_Implicit(1.0)), formulaData6, formulaData6, "F2"); formulaData8.SetAttrs("LABEL0,VCENTER,RIGHT,COLORDARKGREEN"); return(new FormulaPackage(new FormulaData[4] { formulaData5, formulaData6, formulaData7, formulaData8 }, "")); }