Ejemplo n.º 1
0
        private void calcLosers()
        {
            TransactionPairsBinary other = new TransactionPairsBinary(trades.TradeData);

            for (int i = 0; i < Trades.Count; i++)
            {
                if (Trades.CalcProfitLoss(i) <= lossBoundary)
                {
                    other.Add(Trades.GetBinary(i));
                }
            }
            losers = new BaseStats(new TransactionPairs(null, Trades.ProfitLossCalculation, other));
        }