private void detector_TradeDetected(object sender, TradeInfoEventArgs args) { TradeInfo tradeInfo = args.TradeInfo; if (tradeInfo.PnL > 0.0) { this.WinningTrades++; if (tradeInfo.IsLong) { this.WinningLongTrades++; } else { this.WinningShortTrades++; } } else { if (tradeInfo.PnL < 0.0) { this.LoosingTrades++; if (tradeInfo.IsLong) { this.LoosingLongTrades++; } else { this.LoosingShortTrades++; } } } this.TotalTrades++; if (tradeInfo.IsLong) { this.LongTrades++; return; } this.ShortTrades++; }
private void detector_TradeDetected(object sender, TradeInfoEventArgs args) { TradeInfo tradeInfo = args.TradeInfo; if (tradeInfo.PnL > 0.0) { this.WinningTrades++; if (tradeInfo.IsLong) { this.WinningLongTrades++; } else { this.WinningShortTrades++; } } else { if (tradeInfo.PnL < 0.0) { this.LoosingTrades++; if (tradeInfo.IsLong) { this.LoosingLongTrades++; } else { this.LoosingShortTrades++; } } } this.TotalTrades++; if (tradeInfo.IsLong) { this.LongTrades++; return; } this.ShortTrades++; }