public void GetPricesFromTick() { AlsiTrade_Backend.UpdateDB.FullHistoricUpdate_MasterMinute(_ContractName); PricesSyncedEvent p = new PricesSyncedEvent(); p.ReadyForTradeCalcs = true; onPriceSync(this, p); }
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); } }