コード例 #1
0
        public void CompleteTradeCycleStop(TradeCycleDetail tradeCycle)
        {
            tradeCycle.SetExitMethod(TradeExitMethod.STOP);
            ++stopCount;

            if (TradeMetricsUpdated != null)
            {
                TradeMetricsUpdated(this, EventArgs.Empty);
            }
        }
コード例 #2
0
        public void CompleteTradeCycleExit(TradeCycleDetail tradeCycle)
        {
            tradeCycle.SetExitMethod(TradeExitMethod.EXIT);
            ++exitCount;

            if (TradeMetricsUpdated != null)
            {
                TradeMetricsUpdated(this, EventArgs.Empty);
            }
        }
コード例 #3
0
        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);
            }
        }