Ejemplo n.º 1
0
        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
            }, ""));
        }
Ejemplo n.º 2
0
        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
            }, ""));
        }