public void CompleteTradeCycleStop(TradeCycleDetail tradeCycle) { tradeCycle.SetExitMethod(TradeExitMethod.STOP); ++stopCount; if (TradeMetricsUpdated != null) { TradeMetricsUpdated(this, EventArgs.Empty); } }
public void CompleteTradeCycleExit(TradeCycleDetail tradeCycle) { tradeCycle.SetExitMethod(TradeExitMethod.EXIT); ++exitCount; if (TradeMetricsUpdated != null) { TradeMetricsUpdated(this, EventArgs.Empty); } }
public void AddTradeCycle(TradeCycleDetail tradeCycle) { tradeCycles.Add(tradeCycle); // TODO: Some trade cycles may exist without an entry (i.e. an Abort occurred). ++entryCount; if (TradeMetricsUpdated != null) { TradeMetricsUpdated(this, EventArgs.Empty); } }