Пример #1
0
        public override void OnEnd(Object sender, IStrategyOnEndArgument argument)
        {
            IStrategyDrawer_PriceRect drawHelper = StrategyHelper.Drawer.GetDrawer_KLine(MainKLinePeriod);

            drawHelper.DrawPolyLine(maPrice_1, color_1);
            drawHelper.DrawPolyLine(maPrice_2, color_2);
            drawHelper.DrawPolyLine(maPrice_3, color_3);
            drawHelper.DrawPolyLine(maPrice_4, color_4);
            drawHelper.DrawPolyLine(maPrice_5, color_5);
            drawHelper.DrawTitle(1, "MA组合(" + Param_1 + "," + Param_2 + "," + Param_3 + "," + Param_4 + "," + Param_5 + ")", color_2);
        }
Пример #2
0
        public override void OnEnd(object sender, IStrategyOnEndArgument argument)
        {
            DrawAccount();
            IStrategyDrawer_PriceRect drawHelper = StrategyHelper.Drawer.GetDrawer_KLine(MainKLinePeriod);
            List <float> ma10 = referedStrategy_MA10.MAList;
            List <float> ma20 = referedStrategy_MA20.MAList;

            drawHelper.DrawPolyLine(ma10, color_1);
            drawHelper.DrawPolyLine(ma20, color_2);
            //drawHelper.DrawTitle(1, "MA组合(" + Param_1 + "," + Param_2 + "," + Param_3 + "," + Param_4 + "," + Param_5 + ")", color_2);
        }
Пример #3
0
        public override void OnEnd(object sender, IStrategyOnEndArgument argument)
        {
            IStrategyDrawer_PriceRect drawHelper = StrategyHelper.Drawer.GetDrawer_KLine(period);
            StrategyArray <double>    arr        = looper_ma.GetMaData(MaPeriod).Data;
            List <float> ff = new List <float>();

            for (int i = 0; i < arr.Count; i++)
            {
                ff.Add((float)arr[i]);
            }
            drawHelper.DrawPolyLine(ff, System.Drawing.Color.Green);

            for (int i = 0; i < platForms.Count; i++)
            {
                Platform platform = platForms[i];
                DrawPlatform(platform, drawHelper);
            }

            StrategyHelper.QueryResultManager.AddQueryResult(new StrategyQueryResult_Platform(platForms));
        }