public MarketOrderCache(BarItemType barType, Guid sessionId, Guid cacheId) : base(CacheModeOption.Write) { this.identityCode = sessionId.ToString(); this.barType = barType; this.cacheId = cacheId; this.cacheMode = CacheModeOption.Write; }
public StrategyCache(object signalInstance, Guid cacheId) : base(CacheModeOption.Write) { this.barType = ((IStrategy)signalInstance).BarType; this.identityCode = ((IStrategy)signalInstance).IdentityCode; this.cacheId = cacheId; this.signalInstance = signalInstance; this.cacheMode = CacheModeOption.Write; }
public MarketOrderCache(BarItemType barType, string identityCode, Guid cacheId) : base(CacheModeOption.Read) { this.identityCode = identityCode; this.barType = barType; this.cacheId = cacheId; this.cacheMode = CacheModeOption.Read; this.Initialize(identityCode, barType, cacheId, CacheTypeOption.Orders); this.cacheIndex = CreateIndex(); }
public StrategyCache(string identityCode, BarItemType barType, Guid cacheId) : base(CacheModeOption.Read) { this.identityCode = identityCode; this.barType = barType; this.cacheId = cacheId; this.cacheMode = CacheModeOption.Read; this.Initialize(identityCode, barType, cacheId, CacheTypeOption.Strategy); this.cacheIndex = CreateIndex(); }
public IndicatorCache(string identityCode, BarItemType barType, Guid cacheId) : base(CacheModeOption.Read) { this.identityCode = identityCode; this.barType = barType; this.cacheId = cacheId; this.cacheMode = CacheModeOption.Read; this.Initialize(identityCode, barType, cacheId, CacheTypeOption.Indicator); this.cacheIndex = this.CreateIndex(); this.charting = CreateIndicatorCharting(); }
public PricebarCache(BarItemType barType, Guid cacheId, CacheModeOption cacheMode = CacheModeOption.Write) : base(cacheMode) { this.barType = barType; this.cacheId = cacheId; this.cacheMode = CacheModeOption.Read; if (cacheMode == CacheModeOption.Read || cacheMode == CacheModeOption.ReadWrite) { this.Initialize("ohlc", barType, cacheId, CacheTypeOption.Pricebar); this.cacheIndex = CreateIndex(); } }
public TimeKeyedCacheBase(CacheModeOption cacheMode) { this.cacheMode = cacheMode; }
public SequenceKeyedCacheBase(CacheModeOption cacheMode) { this.cacheMode = cacheMode; }