コード例 #1
0
 public void GetPricesFromTick()
 {
     AlsiTrade_Backend.UpdateDB.FullHistoricUpdate_MasterMinute(_ContractName);
     PricesSyncedEvent p = new PricesSyncedEvent();
     p.ReadyForTradeCalcs = true;
     onPriceSync(this, p);
 }
コード例 #2
0
        public void GetPricesFromTick()
        {
            AlsiTrade_Backend.UpdateDB.FullHistoricUpdate_MasterMinute(_ContractName);
            PricesSyncedEvent p = new PricesSyncedEvent();

            p.ReadyForTradeCalcs = true;
            onPriceSync(this, p);
        }
コード例 #3
0
 private void VerifyPrices()
 {
     var pd = GlobalObjects.Points.Last().TimeStamp;
     var t = ConvertTime(_Interval);
     if (pd.Day == t.Day && pd.Hour == t.Hour && pd.Minute == t.Minute)
     {
         AlsiTrade_Backend.UpdateDB.UpdatePricesToTempTable();
         PricesSyncedEvent p = new PricesSyncedEvent();
         p.ReadyForTradeCalcs = true;
         onPriceSync(this, p);
     }
     else
     {
         PricesSyncedEvent p = new PricesSyncedEvent();
         p.ReadyForTradeCalcs = false;
         onPriceSync(this, p);
     }
 }
コード例 #4
0
        private void VerifyPrices()
        {
            var pd = GlobalObjects.Points.Last().TimeStamp;
            var t  = ConvertTime(_Interval);

            if (pd.Day == t.Day && pd.Hour == t.Hour && pd.Minute == t.Minute)
            {
                AlsiTrade_Backend.UpdateDB.UpdatePricesToTempTable();
                PricesSyncedEvent p = new PricesSyncedEvent();
                p.ReadyForTradeCalcs = true;
                onPriceSync(this, p);
            }
            else
            {
                PricesSyncedEvent p = new PricesSyncedEvent();
                p.ReadyForTradeCalcs = false;
                onPriceSync(this, p);
            }
        }