Esempio n. 1
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.LR(this.get_C(), this.N);

            formulaData1.Name = (__Null)"A ";
            FormulaData formulaData2 = FormulaData.op_Subtraction(this.get_C(), formulaData1);

            formulaData2.Name = (__Null)"DIST ";
            FormulaData formulaData3 = FormulaData.op_Implicit(FormulaBase.MAX(new double[2]
            {
                FormulaBase.MAXVALUE(formulaData2),
                FormulaBase.MINVALUE(formulaData2)
            }) * this.P / 100.0);

            formulaData3.Name = (__Null)"M  ";
            FormulaData formulaData4 = FormulaData.op_Addition(formulaData1, formulaData3);

            formulaData4.Name = (__Null)"UPPER ";
            FormulaData formulaData5 = FormulaData.op_Subtraction(formulaData1, formulaData3);

            formulaData5.Name = (__Null)"LOWER ";
            FormulaData formulaData6 = formulaData1;

            this.SETNAME(formulaData1, "");
            this.SETTEXTVISIBLE(formulaData4, false);
            this.SETTEXTVISIBLE(formulaData5, false);
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData4,
                formulaData5,
                formulaData6
            }, ""));
        }
Esempio n. 2
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.REF(this.get_CLOSE(), 1.0);

            formulaData1.Name = (__Null)"LC ";
            FormulaData formulaData2 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaBase.SMA(FormulaBase.MAX(new FormulaData[2]
            {
                FormulaData.op_Subtraction(this.get_CLOSE(), formulaData1),
                FormulaData.op_Implicit(0.0)
            }), this.N1, 1.0), FormulaBase.SMA(FormulaBase.ABS(FormulaData.op_Subtraction(this.get_CLOSE(), formulaData1)), this.N1, 1.0)), FormulaData.op_Implicit(100.0));

            formulaData2.Name = (__Null)"RSI";
            FormulaData formulaData3 = FormulaData.op_Implicit(70.0);

            formulaData3.SetAttrs("HIGHSPEED");
            FormulaData formulaData4 = FormulaData.op_Implicit(30.0);

            formulaData4.SetAttrs("HIGHSPEED");
            FormulaData formulaData5 = this.FILLRGN(FormulaData.op_GreaterThan(formulaData2, FormulaData.op_Implicit(70.0)), formulaData2, FormulaData.op_Implicit(70.0));

            formulaData5.SetAttrs("BRUSH#20808000");
            FormulaData formulaData6 = this.FILLRGN(FormulaData.op_LessThan(formulaData2, FormulaData.op_Implicit(30.0)), formulaData2, FormulaData.op_Implicit(30.0));

            formulaData6.SetAttrs("BRUSH#20800000");
            return(new FormulaPackage(new FormulaData[5]
            {
                formulaData2,
                formulaData3,
                formulaData4,
                formulaData5,
                formulaData6
            }, ""));
        }
Esempio n. 3
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.IF(FormulaData.op_BitwiseAnd(FormulaData.op_GreaterThanOrEqual(this.get_YEAR(), FormulaData.op_Implicit(2010.0)), FormulaData.op_GreaterThanOrEqual(this.get_MONTH(), FormulaData.op_Implicit(2.0))), FormulaData.op_Implicit(0.0), FormulaData.op_Implicit(1.0));

            formulaData1.Name = (__Null)"VAR1";
            FormulaData formulaData2 = FormulaData.op_Multiply(this.get_VOL(), this.get_C());

            formulaData2.Name = (__Null)"VAR2";
            FormulaData formulaData3 = FormulaData.op_Division(FormulaBase.EMA(formulaData2, 13.0), FormulaBase.EMA(this.get_VOL(), 13.0));

            formulaData3.Name = (__Null)"VAR3";
            FormulaData formulaData4 = FormulaData.op_Multiply(FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(FormulaBase.EMA(this.get_CLOSE(), this.P1), formulaData3), formulaData3), FormulaData.op_Implicit(100.0)), formulaData1);

            formulaData4.Name = (__Null)"CYS";
            FormulaData formulaData5 = FormulaData.op_Multiply(FormulaBase.EMA(formulaData4, this.P2), formulaData1);

            formulaData5.Name = (__Null)"ML";
            FormulaData formulaData6 = FormulaData.op_Implicit(0.0);

            formulaData6.Name = (__Null)"LO";
            formulaData6.SetAttrs(" POINTDOT");
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData4,
                formulaData5,
                formulaData6
            }, ""));
        }
Esempio n. 4
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaData.op_Division(FormulaData.op_Multiply(FormulaData.op_Implicit(100.0), FormulaData.op_Subtraction(FormulaBase.HHV(this.get_HIGH(), this.N), this.get_CLOSE())), FormulaData.op_Subtraction(FormulaBase.HHV(this.get_HIGH(), this.N), FormulaBase.LLV(this.get_LOW(), this.N)))
     }, ""));
 }
Esempio n. 5
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaData.op_Multiply(FormulaData.op_Division(FormulaBase.SMA(FormulaBase.MAX(new FormulaData[2]
         {
             FormulaData.op_Subtraction(this.get_VOL(), FormulaBase.REF(this.get_VOL(), 1.0)),
             FormulaData.op_Implicit(0.0)
         }), this.N, 1.0), FormulaBase.SMA(FormulaBase.ABS(FormulaData.op_Subtraction(this.get_VOL(), FormulaBase.REF(this.get_VOL(), 1.0))), this.N, 1.0)), FormulaData.op_Implicit(100.0))
     }, ""));
 }
Esempio n. 6
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaBase.SUM(FormulaBase.IF(FormulaData.op_GreaterThan(this.get_CLOSE(), FormulaBase.REF(this.get_CLOSE(), 1.0)), FormulaData.op_Subtraction(this.get_CLOSE(), FormulaBase.MIN(new FormulaData[2]
         {
             FormulaBase.REF(this.get_CLOSE(), 1.0),
             this.get_LOW()
         })), FormulaBase.IF(FormulaData.op_LessThan(this.get_CLOSE(), FormulaBase.REF(this.get_CLOSE(), 1.0)), FormulaData.op_Subtraction(this.get_CLOSE(), FormulaBase.MAX(new FormulaData[2]
         {
             FormulaBase.REF(this.get_CLOSE(), 1.0),
             this.get_HIGH()
         })), FormulaData.op_Implicit(0.0))), 0.0)
     }, ""));
 }
Esempio n. 7
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.REF(this.get_CLOSE(), 1.0);

            formulaData1.Name = (__Null)"LC ";
            FormulaData formulaData2 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaBase.SMA(FormulaBase.MAX(new FormulaData[2]
            {
                FormulaData.op_Subtraction(this.get_CLOSE(), formulaData1),
                FormulaData.op_Implicit(0.0)
            }), this.N1, 1.0), FormulaBase.SMA(FormulaBase.ABS(FormulaData.op_Subtraction(this.get_CLOSE(), formulaData1)), this.N1, 1.0)), FormulaData.op_Implicit(100.0));

            formulaData2.Name = (__Null)"RSI";
            return(new FormulaPackage(new FormulaData[1]
            {
                formulaData2
            }, ""));
        }
Esempio n. 8
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Subtraction(FormulaBase.EMA(this.get_CLOSE(), this.SHORT), FormulaBase.EMA(this.get_CLOSE(), this.LONG));

            formulaData1.Name = (__Null)"DIFF ";
            FormulaData formulaData2 = FormulaBase.EMA(formulaData1, this.M);

            formulaData2.Name = (__Null)"DEA  ";
            FormulaData formulaData3 = FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), FormulaData.op_Subtraction(formulaData1, formulaData2));

            formulaData3.Name = (__Null)"MACD ";
            formulaData3.SetAttrs(" COLORSTICK");
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData1,
                formulaData2,
                formulaData3
            }, ""));
        }
Esempio n. 9
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_Addition(formulaData1, FormulaData.op_Subtraction(FormulaData.op_Addition(FormulaData.op_UnaryNegation(this.get_L()), FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData1)), FormulaData.op_Addition(FormulaData.op_UnaryNegation(this.get_H()), FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData1))));

            formulaData2.Name = (__Null)"S";
            formulaData2.SetAttrs("COLOR#80C080");
            FormulaData formulaData3 = FormulaData.op_Subtraction(formulaData1, FormulaData.op_Subtraction(FormulaData.op_Addition(FormulaData.op_UnaryNegation(this.get_L()), FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData1)), FormulaData.op_Addition(FormulaData.op_UnaryNegation(this.get_H()), FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData1))));

            formulaData3.Name = (__Null)"R";
            formulaData3.SetAttrs("COLOR#80C080");
            FormulaData formulaData4 = this.FILLRGN(FormulaData.op_Implicit(1.0), formulaData2, formulaData3);

            formulaData4.SetAttrs("BRUSH#2000C000");
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData2,
                formulaData3,
                formulaData4
            }, ""));
        }
Esempio n. 10
0
        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";
            formulaData2.SetAttrs("COLOR#8080C0");
            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";
            formulaData3.SetAttrs("COLOR#8080C0");
            FormulaData formulaData4 = this.FILLRGN(FormulaData.op_Implicit(1.0), formulaData3, formulaData2);

            formulaData4.SetAttrs("BRUSH#200000C0");
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData2,
                formulaData3,
                formulaData4
            }, ""));
        }
Esempio n. 11
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(this.get_CLOSE(), FormulaBase.MA(this.get_CLOSE(), this.L1)), FormulaBase.MA(this.get_CLOSE(), this.L1)), FormulaData.op_Implicit(100.0));

            formulaData1.Name = (__Null)"BIAS1 ";
            FormulaData formulaData2 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(this.get_CLOSE(), FormulaBase.MA(this.get_CLOSE(), this.L2)), FormulaBase.MA(this.get_CLOSE(), this.L2)), FormulaData.op_Implicit(100.0));

            formulaData2.Name = (__Null)"BIAS2 ";
            FormulaData formulaData3 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(this.get_CLOSE(), FormulaBase.MA(this.get_CLOSE(), this.L3)), FormulaBase.MA(this.get_CLOSE(), this.L3)), FormulaData.op_Implicit(100.0));

            formulaData3.Name = (__Null)"BIAS3 ";
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData1,
                formulaData2,
                formulaData3
            }, ""));
        }
Esempio n. 12
0
        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
            }, ""));
        }
Esempio n. 13
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.EMA(this.get_V(), this.N1);

            formulaData1.Name = (__Null)"E1 ";
            FormulaData formulaData2 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(formulaData1, FormulaBase.EMA(this.get_V(), this.N2)), formulaData1), FormulaData.op_Implicit(100.0));

            formulaData2.Name = (__Null)"PVO ";
            formulaData2.SetAttrs("WIDTH1.6,HIGHQUALITY");
            FormulaData formulaData3 = FormulaBase.EMA(formulaData2, this.N3);

            formulaData3.Name = (__Null)"M ";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData2,
                formulaData3
            }, ""));
        }
Esempio n. 14
0
        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.ABS(FormulaData.op_Subtraction(this.get_H(), formulaData1));

            formulaData2.Name = (__Null)"AA";
            FormulaData formulaData3 = FormulaBase.ABS(FormulaData.op_Subtraction(this.get_L(), formulaData1));

            formulaData3.Name = (__Null)"BB";
            FormulaData formulaData4 = FormulaBase.ABS(FormulaData.op_Subtraction(this.get_H(), FormulaBase.REF(this.get_L(), 1.0)));

            formulaData4.Name = (__Null)"CC";
            FormulaData formulaData5 = FormulaBase.ABS(FormulaData.op_Subtraction(formulaData1, FormulaBase.REF(this.get_O(), 1.0)));

            formulaData5.Name = (__Null)"DD";
            FormulaData formulaData6 = FormulaBase.IF(FormulaData.op_BitwiseAnd(FormulaData.op_GreaterThan(formulaData2, formulaData3), FormulaData.op_GreaterThan(formulaData2, formulaData4)), FormulaData.op_Addition(FormulaData.op_Addition(formulaData2, FormulaData.op_Division(formulaData3, FormulaData.op_Implicit(2.0))), FormulaData.op_Division(formulaData5, FormulaData.op_Implicit(4.0))), FormulaBase.IF(FormulaData.op_BitwiseAnd(FormulaData.op_GreaterThan(formulaData3, formulaData4), FormulaData.op_GreaterThan(formulaData3, formulaData2)), FormulaData.op_Addition(FormulaData.op_Addition(formulaData3, FormulaData.op_Division(formulaData2, FormulaData.op_Implicit(2.0))), FormulaData.op_Division(formulaData5, FormulaData.op_Implicit(4.0))), FormulaData.op_Addition(formulaData4, FormulaData.op_Division(formulaData5, FormulaData.op_Implicit(4.0)))));

            formulaData6.Name = (__Null)"R";
            FormulaData formulaData7 = FormulaData.op_Subtraction(FormulaData.op_Addition(FormulaData.op_Addition(FormulaData.op_Subtraction(this.get_C(), formulaData1), FormulaData.op_Division(FormulaData.op_Subtraction(this.get_C(), this.get_O()), FormulaData.op_Implicit(2.0))), formulaData1), FormulaBase.REF(this.get_O(), 1.0));

            formulaData7.Name = (__Null)"X";
            FormulaData formulaData8 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Multiply(FormulaData.op_Implicit(16.0), formulaData7), formulaData6), FormulaBase.MAX(new FormulaData[2]
            {
                formulaData2,
                formulaData3
            }));

            formulaData8.Name = (__Null)"SI";
            return(new FormulaPackage(new FormulaData[1]
            {
                formulaData8
            }, ""));
        }
Esempio n. 15
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(this.get_C(), FormulaBase.LLV(this.get_L(), this.N)), FormulaData.op_Subtraction(FormulaBase.HHV(this.get_H(), this.N), FormulaBase.LLV(this.get_L(), this.N))), FormulaData.op_Implicit(100.0));

            formulaData1.Name = (__Null)"A";
            FormulaData formulaData2 = FormulaBase.MA(formulaData1, this.M1);

            formulaData2.Name = (__Null)"K";
            formulaData2.SetAttrs("COLORDARKGREEN,WIDTH2,HIGHQUALITY");
            FormulaData formulaData3 = FormulaBase.MA(formulaData2, this.M2);

            formulaData3.Name = (__Null)"D";
            FormulaData formulaData4 = this.PARTLINE(FormulaData.op_GreaterThanOrEqual(formulaData2, formulaData3), formulaData2);

            formulaData4.SetAttrs("COLORRED,WIDTH2,HIGHQUALITY");
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData2,
                formulaData3,
                formulaData4
            }, ""));
        }
Esempio n. 16
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(this.get_CLOSE(), FormulaBase.LLV(this.get_LOW(), this.N)), FormulaData.op_Subtraction(FormulaBase.HHV(this.get_HIGH(), this.N), FormulaBase.LLV(this.get_LOW(), this.N))), FormulaData.op_Implicit(100.0));

            formulaData1.Name = (__Null)"A";
            FormulaData formulaData2 = FormulaBase.MA(formulaData1, this.M1);

            formulaData2.Name = (__Null)"K";
            FormulaData formulaData3 = FormulaBase.MA(formulaData2, this.M2);

            formulaData3.Name = (__Null)"D";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData2,
                formulaData3
            }, ""));
        }
Esempio n. 17
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaData.op_Division(this.get_C(), this.FML(this.STOCKCODE, "C", 0, 0)), FormulaData.op_Implicit(100.0));

            formulaData1.Name = (__Null)"PR";
            formulaData1.SetAttrs("HIGHQUALITY");
            FormulaData formulaData2 = FormulaBase.EMA(formulaData1, this.N);

            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData1,
                formulaData2
            }, ""));
        }
Esempio n. 18
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData = FormulaBase.EMA(FormulaData.op_Subtraction(this.get_HIGH(), this.get_LOW()), this.N);

            formulaData.Name = (__Null)"EC ";
            return(new FormulaPackage(new FormulaData[1]
            {
                FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(formulaData, FormulaBase.REF(formulaData, this.N)), FormulaBase.REF(formulaData, this.N)), FormulaData.op_Implicit(100.0))
            }, ""));
        }
Esempio n. 19
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
            }, ""));
        }
Esempio n. 20
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.SUM(FormulaBase.IF(FormulaData.op_GreaterThan(this.get_CLOSE(), FormulaBase.REF(this.get_CLOSE(), 1.0)), this.get_VOL(), FormulaBase.IF(FormulaData.op_LessThan(this.get_CLOSE(), FormulaBase.REF(this.get_CLOSE(), 1.0)), FormulaData.op_UnaryNegation(this.get_VOL()), FormulaData.op_Implicit(0.0))), 0.0);

            formulaData1.Name = (__Null)"OBV";
            formulaData1.SetAttrs("WIDTH2");
            FormulaData formulaData2 = FormulaBase.MA(formulaData1, this.N);

            formulaData2.Name = (__Null)"M";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData1,
                formulaData2
            }, ""));
        }
Esempio n. 21
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)))
            }, ""));
        }
Esempio n. 22
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaBase.MA(this.get_CLOSE(), this.N), FormulaData.op_Implicit(1.06));

            formulaData1.Name = (__Null)"UPPER ";
            FormulaData formulaData2 = FormulaData.op_Multiply(FormulaBase.MA(this.get_CLOSE(), this.N), FormulaData.op_Implicit(0.94));

            formulaData2.Name = (__Null)"LOWER ";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData1,
                formulaData2
            }, ""));
        }
Esempio n. 23
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData = FormulaData.op_Multiply(FormulaData.op_Multiply(FormulaData.op_Implicit(this.P), FormulaBase.STD(this.get_C(), this.N)), FormulaData.op_Implicit(2.0));

            formulaData.SetAttrs("WIDTH1.6,HIGHQUALITY");
            return(new FormulaPackage(new FormulaData[1]
            {
                formulaData
            }, ""));
        }
Esempio n. 24
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaData.op_Subtraction(FormulaData.op_Division(FormulaBase.EMA(FormulaData.op_Subtraction(this.get_ADVANCE(), this.get_DECLINE()), this.N1), FormulaData.op_Implicit(10.0)), FormulaData.op_Division(FormulaBase.EMA(FormulaData.op_Subtraction(this.get_ADVANCE(), this.get_DECLINE()), this.N2), FormulaData.op_Implicit(20.0)))
     }, ""));
 }
Esempio n. 25
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Division(FormulaData.op_Addition(FormulaData.op_Addition(this.get_HIGH(), this.get_LOW()), this.get_CLOSE()), FormulaData.op_Implicit(3.0));

            formulaData1.Name = (__Null)"TP ";
            FormulaData formulaData2 = FormulaData.op_Multiply(formulaData1, this.get_V());

            formulaData2.Name = (__Null)"MF ";
            return(new FormulaPackage(new FormulaData[1]
            {
                formulaData2
            }, ""));
        }
Esempio n. 26
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaBase.IF(FormulaData.op_LessThan(this.get_C(), FormulaBase.REF(this.get_C(), this.N)), FormulaData.op_Division(FormulaData.op_Subtraction(this.get_C(), FormulaBase.REF(this.get_C(), this.N)), FormulaBase.REF(this.get_C(), this.N)), FormulaBase.IF(FormulaData.op_Equality(this.get_C(), FormulaBase.REF(this.get_C(), this.N)), FormulaData.op_Implicit(0.0), FormulaData.op_Division(FormulaData.op_Subtraction(this.get_C(), FormulaBase.REF(this.get_C(), this.N)), this.get_C())))
     }, ""));
 }
Esempio n. 27
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 = this.DRAWAXISY(formulaData3, -10.0, 12.0);

            formulaData5.Name = (__Null)"R ";
            formulaData5.SetAttrs("WIDTH2,COLOR#A0FF0000,AXISMARGIN12");
            FormulaData formulaData6 = this.DRAWAXISY(formulaData4, -10.0, 12.0);

            formulaData6.Name = (__Null)"S ";
            formulaData6.SetAttrs("WIDTH2,COLOR#A0004000");
            FormulaData formulaData7 = this.DRAWTEXTAXISY(formulaData3, "R", 1.0);

            formulaData7.SetAttrs("COLOR#FF0000,VCENTER");
            FormulaData formulaData8 = this.DRAWTEXTAXISY(formulaData4, "S", 1.0);

            formulaData8.SetAttrs("COLOR#004000,VCENTER");
            this.SETNAME("SR");
            return(new FormulaPackage(new FormulaData[4]
            {
                formulaData5,
                formulaData6,
                formulaData7,
                formulaData8
            }, ""));
        }
Esempio n. 28
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Division(FormulaData.op_Addition(FormulaData.op_Addition(this.get_HIGH(), this.get_LOW()), this.get_CLOSE()), FormulaData.op_Implicit(3.0));

            formulaData1.Name = (__Null)"TYP";
            FormulaData formulaData2 = FormulaBase.LLV(this.get_LOW(), this.N);

            formulaData2.Name = (__Null)"LL";
            FormulaData formulaData3 = FormulaBase.HHV(this.get_HIGH(), this.N);

            formulaData3.Name = (__Null)"HH";
            FormulaData formulaData4 = FormulaData.op_Addition(formulaData1, FormulaData.op_Subtraction(formulaData1, formulaData2));

            formulaData4.Name = (__Null)"WR";
            FormulaData formulaData5 = FormulaData.op_Addition(formulaData1, FormulaData.op_Subtraction(formulaData3, formulaData2));

            formulaData5.Name = (__Null)"MR";
            FormulaData formulaData6 = FormulaData.op_Subtraction(FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData3), formulaData2);

            formulaData6.Name = (__Null)"SR";
            FormulaData formulaData7 = FormulaData.op_Subtraction(formulaData1, FormulaData.op_Subtraction(formulaData3, formulaData1));

            formulaData7.Name = (__Null)"WS";
            FormulaData formulaData8 = FormulaData.op_Subtraction(formulaData1, FormulaData.op_Subtraction(formulaData3, formulaData2));

            formulaData8.Name = (__Null)"MS";
            FormulaData formulaData9 = FormulaData.op_Subtraction(FormulaData.op_Multiply(FormulaData.op_Implicit(2.0), formulaData2), formulaData3);

            formulaData9.Name = (__Null)"SS";
            return(new FormulaPackage(new FormulaData[6]
            {
                formulaData4,
                formulaData5,
                formulaData6,
                formulaData7,
                formulaData8,
                formulaData9
            }, ""));
        }
Esempio n. 29
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.SUM(FormulaBase.MAX(new FormulaData[2]
            {
                FormulaBase.MAX(new FormulaData[2]
                {
                    FormulaData.op_Subtraction(this.get_HIGH(), this.get_LOW()),
                    FormulaBase.ABS(FormulaData.op_Subtraction(this.get_HIGH(), FormulaBase.REF(this.get_CLOSE(), 1.0)))
                }),
                FormulaBase.ABS(FormulaData.op_Subtraction(this.get_LOW(), FormulaBase.REF(this.get_CLOSE(), 1.0)))
            }), this.N);

            formulaData1.Name = (__Null)"TR ";
            FormulaData formulaData2 = FormulaData.op_Subtraction(this.get_HIGH(), FormulaBase.REF(this.get_HIGH(), 1.0));

            formulaData2.Name = (__Null)"HD ";
            FormulaData formulaData3 = FormulaData.op_Subtraction(FormulaBase.REF(this.get_LOW(), 1.0), this.get_LOW());

            formulaData3.Name = (__Null)"LD ";
            FormulaData formulaData4 = FormulaBase.SUM(FormulaBase.IF(FormulaData.op_BitwiseAnd(FormulaData.op_GreaterThan(formulaData2, FormulaData.op_Implicit(0.0)), FormulaData.op_GreaterThan(formulaData2, formulaData3)), formulaData2, FormulaData.op_Implicit(0.0)), this.N);

            formulaData4.Name = (__Null)"DMP";
            FormulaData formulaData5 = FormulaBase.SUM(FormulaBase.IF(FormulaData.op_BitwiseAnd(FormulaData.op_GreaterThan(formulaData3, FormulaData.op_Implicit(0.0)), FormulaData.op_GreaterThan(formulaData3, formulaData2)), formulaData3, FormulaData.op_Implicit(0.0)), this.N);

            formulaData5.Name = (__Null)"DMM";
            FormulaData formulaData6 = FormulaData.op_Division(FormulaData.op_Multiply(formulaData4, FormulaData.op_Implicit(100.0)), formulaData1);

            formulaData6.Name = (__Null)"PDI";
            this.SETNAME(formulaData6, "+DI");
            FormulaData formulaData7 = FormulaData.op_Division(FormulaData.op_Multiply(formulaData5, FormulaData.op_Implicit(100.0)), formulaData1);

            formulaData7.Name = (__Null)"MDI";
            this.SETNAME(formulaData7, "-DI");
            FormulaData formulaData8 = FormulaBase.MA(FormulaData.op_Multiply(FormulaData.op_Division(FormulaBase.ABS(FormulaData.op_Subtraction(formulaData7, formulaData6)), FormulaData.op_Addition(formulaData7, formulaData6)), FormulaData.op_Implicit(100.0)), this.N);

            formulaData8.Name = (__Null)"ADX";
            formulaData8.SetAttrs("WIDTH2");
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData6,
                formulaData7,
                formulaData8
            }, ""));
        }
Esempio n. 30
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaBase.SUM(FormulaBase.IF(this.get_ISUP(), this.get_VOL(), FormulaBase.IF(this.get_ISDOWN(), FormulaData.op_UnaryNegation(this.get_VOL()), FormulaData.op_Implicit(0.0))), 0.0)
     }, ""));
 }