public void loadCandles() { sh = new StorageHistory() { security = this, timespan = TimeSpan.FromMinutes(5) }; sh.loadCandles(); candles = sh.candles; }
public Signaler() { security = new Security { Id = "SIH7@FORTS" }; sh = new StorageHistory() { security = this.security, timespan = TimeSpan.FromMinutes(5) }; sh.loadCandles(); //foreach (Candle c in sh.candles) Console.WriteLine("Security:{0} Time:{2} ClosePrice:{1}", c.Security, c.ClosePrice, c.CloseTime); }