My intent of this algo is to check indicators once per day and trade. Right now, I'm emitting insights. The result for now is the algorithm tries to trade the same stock at the opening price multiple times at market open.2014-10-15 09:40:00 FDN Market $56.604339 USD -17,619 Sell Filled Warning: fill at stale price (10/15/2014 12:00:00 AM America/New_York) 2014-10-15 09:40:00 FDN Market $56.615661 USD 8,810 Buy Filled Warning: fill at stale price (10/15/2014 12:00:00 AM America/New_York)

I basically have 2+ pages of this churning, and algo fails out at 10000 trades. Not exactly what I'm wanting.

Here's the trading/insight code. I'm looking for a more robust way to limit trading. Once a day at open+ 10 mins is my goal,
not churning in a few seconds.

Schedule.On(DateRules.EveryDay(), TimeRules.AfterMarketOpen("XLK", 10), ScheduledUpdate); // //Update and provide insights public void ScheduledUpdate() { foreach (var symbolData in _symbolDataBySymbol.Values) { if (symbolData.Fast.IsReady && symbolData.Slow.IsReady) { var insightPeriod = _resolution.ToTimeSpan().Multiply(_predictionInterval); //1 day if (symbolData.FastIsOverSlow) { if (symbolData.Slow > symbolData.Fast) fast and slow moving avg. { EmitInsights(Insight.Price(symbolData.Symbol, insightPeriod, InsightDirection.Down)); } } else if (symbolData.SlowIsOverFast) { if (symbolData.Fast > symbolData.Slow) { EmitInsights(Insight.Price(symbolData.Symbol, insightPeriod, InsightDirection.Up)); } } } symbolData.FastIsOverSlow = symbolData.Fast > symbolData.Slow; } }