Exemplo n.º 1
0
 internal Consecutive(TrendFollowingBasicFutures strategics, Holding ho)
 {
     Short           = new Stack <double>();
     Long            = new Stack <double>();
     tf              = strategics;
     this.strategics = strategics;
     this.ho         = ho;
     ho.Send        += OnReceiveDrawChart;
 }
Exemplo n.º 2
0
        public Holding(TrendFollowingBasicFutures strategics)
        {
            TF = strategics;
            var catalog = strategics.SetCatalog(strategics);

            Consecutive = new Consecutive[catalog.Length];

            for (int i = 0; i < catalog.Length; i++)
            {
                Consecutive[i] = new Consecutive(catalog[i], this);
            }
        }
Exemplo n.º 3
0
        public HoldingStocks(TrendFollowingBasicFutures strategics) : base(strategics)
        {
            if (StartProgress(strategics.Code) > 0)
            {
                foreach (var con in Consecutive)
                {
                    con.Dispose();
                }
            }

            OrderNumber     = new Dictionary <string, dynamic>();
            this.strategics = strategics;

            foreach (var con in Consecutive)
            {
                con.Connect(this);
            }
        }
Exemplo n.º 4
0
 public HoldingStocks(TrendFollowingBasicFutures strategics) : base(strategics)
 {
     OrderNumber     = new Dictionary <string, dynamic>();
     this.strategics = strategics;
 }