Esempio n. 1
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. 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 = 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
            }, ""));
        }
Esempio n. 4
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaBase.EMA(FormulaData.op_Multiply(FormulaData.op_Division(this.get_ADVANCE(), FormulaData.op_Addition(this.get_ADVANCE(), this.get_DECLINE())), FormulaData.op_Implicit(100.0)), this.N)
     }, ""));
 }
Esempio n. 5
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. 6
0
 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))
     }, ""));
 }
Esempio n. 7
0
 public virtual FormulaPackage Run(IDataProvider dp)
 {
     this.DataProvider = (__Null)dp;
     return(new FormulaPackage(new FormulaData[1]
     {
         FormulaData.op_Multiply(FormulaData.op_Division(FormulaBase.COUNT(FormulaData.op_GreaterThan(this.get_CLOSE(), FormulaBase.REF(this.get_CLOSE(), 1.0)), this.N), FormulaData.op_Implicit(this.N)), FormulaData.op_Implicit(100.0))
     }, ""));
 }
Esempio n. 8
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. 9
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. 10
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData = FormulaBase.REF(this.get_CLOSE(), 1.0);

            formulaData.Name = (__Null)"LC";
            return(new FormulaPackage(new FormulaData[1]
            {
                FormulaData.op_Multiply(FormulaData.op_Division(FormulaBase.SUM(FormulaBase.IF(FormulaData.op_GreaterThan(this.get_CLOSE(), formulaData), this.get_VOL(), FormulaData.op_Implicit(0.0)), this.N), FormulaBase.SUM(FormulaBase.IF(FormulaData.op_LessThanOrEqual(this.get_CLOSE(), formulaData), this.get_VOL(), FormulaData.op_Implicit(0.0)), this.N)), FormulaData.op_Implicit(100.0))
            }, ""));
        }
Esempio n. 11
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. 12
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(FormulaBase.EMA(this.get_CLOSE(), this.SHORT), FormulaBase.EMA(this.get_CLOSE(), this.LONG)), FormulaBase.EMA(this.get_CLOSE(), this.LONG)), FormulaData.op_Implicit(100.0));

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

            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData1,
                formulaData2
            }, ""));
        }
Esempio n. 13
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. 14
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(FormulaData.op_Subtraction(this.get_CLOSE(), this.get_LOW()), FormulaData.op_Subtraction(this.get_HIGH(), this.get_CLOSE())), FormulaData.op_Subtraction(this.get_HIGH(), this.get_LOW())), this.get_VOL());

            formulaData1.Name = (__Null)"AD";
            FormulaData formulaData2 = FormulaData.op_Division(FormulaBase.MA(formulaData1, this.N), FormulaBase.MA(this.get_VOL(), this.N));

            formulaData2.Name = (__Null)"CMF";
            formulaData2.SetAttrs("COLORSTICK");
            return(new FormulaPackage(new FormulaData[1]
            {
                formulaData2
            }, ""));
        }
Esempio n. 15
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. 16
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.SUM(FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(FormulaData.op_Subtraction(this.get_CLOSE(), this.get_LOW()), FormulaData.op_Subtraction(this.get_HIGH(), this.get_CLOSE())), FormulaData.op_Subtraction(this.get_HIGH(), this.get_LOW())), this.get_VOL()), 0.0);

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

            formulaData2.Name = (__Null)"M";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData1,
                formulaData2
            }, ""));
        }
Esempio n. 17
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. 18
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)"K";
            FormulaData formulaData2 = FormulaBase.MA(formulaData1, this.M);

            formulaData2.Name = (__Null)"D";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData1,
                formulaData2
            }, ""));
        }
Esempio n. 19
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";
            FormulaData formulaData7 = FormulaData.op_Division(FormulaData.op_Multiply(formulaData5, FormulaData.op_Implicit(100.0)), formulaData1);

            formulaData7.Name = (__Null)"MDI";
            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.M);

            formulaData8.Name = (__Null)"ADX";
            FormulaData formulaData9 = FormulaData.op_Division(FormulaData.op_Addition(formulaData8, FormulaBase.REF(formulaData8, this.M)), FormulaData.op_Implicit(2.0));

            formulaData9.Name = (__Null)"ADXR";
            return(new FormulaPackage(new FormulaData[4]
            {
                formulaData6,
                formulaData7,
                formulaData8,
                formulaData9
            }, ""));
        }
Esempio n. 20
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. 21
0
        public virtual FormulaPackage Run(IDataProvider dp)
        {
            this.DataProvider = (__Null)dp;
            FormulaData formulaData1 = FormulaBase.EMA(FormulaBase.EMA(FormulaBase.EMA(this.get_CLOSE(), this.N), this.N), this.N);

            formulaData1.Name = (__Null)"TR";
            FormulaData formulaData2 = FormulaData.op_Multiply(FormulaData.op_Division(FormulaData.op_Subtraction(formulaData1, FormulaBase.REF(formulaData1, 1.0)), FormulaBase.REF(formulaData1, 1.0)), FormulaData.op_Implicit(100.0));

            formulaData2.Name = (__Null)"TRIX ";
            FormulaData formulaData3 = FormulaBase.MA(formulaData2, this.M);

            formulaData3.Name = (__Null)"TRMA ";
            return(new FormulaPackage(new FormulaData[2]
            {
                formulaData2,
                formulaData3
            }, ""));
        }
Esempio n. 22
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";
            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
            }, ""));
        }
Esempio n. 23
0
        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
            }, ""));
        }
Esempio n. 24
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
            }, ""));
        }
Esempio n. 25
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. 26
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. 27
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(), this.get_OPEN()), FormulaData.op_Subtraction(this.get_HIGH(), this.get_LOW())), this.get_VOL());

            formulaData1.Name = (__Null)"WVAD ";
            FormulaData formulaData2 = FormulaBase.MA(formulaData1, this.N1);

            formulaData2.Name = (__Null)"MA1";
            FormulaData formulaData3 = FormulaBase.MA(formulaData1, this.N2);

            formulaData3.Name = (__Null)"MA2";
            return(new FormulaPackage(new FormulaData[3]
            {
                formulaData1,
                formulaData2,
                formulaData3
            }, ""));
        }
Esempio n. 28
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. 29
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. 30
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 = FormulaBase.ABS(FormulaData.op_Subtraction(this.get_HIGH(), formulaData1));

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

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

            formulaData4.Name = (__Null)"CC";
            FormulaData formulaData5 = FormulaBase.ABS(FormulaData.op_Subtraction(formulaData1, FormulaBase.REF(this.get_OPEN(), 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_CLOSE(), formulaData1), FormulaData.op_Division(FormulaData.op_Subtraction(this.get_CLOSE(), this.get_OPEN()), FormulaData.op_Implicit(2.0))), formulaData1), FormulaBase.REF(this.get_OPEN(), 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";
            FormulaData formulaData9 = FormulaBase.SUM(formulaData8, 0.0);

            formulaData9.Name = (__Null)"ASI";
            return(new FormulaPackage(new FormulaData[1]
            {
                formulaData9
            }, ""));
        }