Не проставляется OrderDirection в сделке
ó ÐÏÍÏÝØÀ Ó×ÏÅÇÏ ÍÅÔÏÄÁ:
if (_multiTrader.Trades.Count() > 0)
{
if (!Directory.Exists("MarketData"))
{
Directory.CreateDirectory("MarketData");
}
var allTradesSw = new StreamWriter("MarketData\\{0}_{1:00}_{2:00}
_AllTrades.log".Put(_multiTrader.Trades.Last().Time.Year,
_multiTrader.Trades.Last().Time.Month,
_multiTrader.Trades.Last().Time.Day), false);
foreach (var trade in _multiTrader.Trades)
{
allTradesSw.WriteLine("{0} - {1} - {2} - {3}",
trade.Time,
trade.Price,
trade.Volume,
trade.OrderDirection);
}
allTradesSw.Close();
}
ðÅÞÁÔÁÀ ×ÓÅ ÓÄÅÌËÉ (ÌÅÎÔÕ) ÚÁ ÄÅÎØ. òÅÄËÏ, ÎÏ ÐÏÒÏÊ ÐÏÐÁÄÁÀÔÓÑ ÓÄÅÌËÉ
ÂÅÚ ÐÒÏÓÔÁ×ÌÅÎÎÏÇÏ ÐÏÌÑ OrderDirection. ôÏÌÉ ÜÔÏ ÎÅ×ÅÒÎÏ ÒÁÂÏÔÁÅÔ
ÐÅÞÁÔØ, ÔÏ ÌÉ ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÞÔÏ-ÔÏ ÎÅ ÐÒÏÓÔÁ×ÌÑÅÔÓÑ (× Ë×ÉËÅ Õ ÄÁÎÎÙÈ
ÓÄÅÌÏË ÎÁÐÒÁ×ÌÅÎÉÅ ÐÒÏÓÔÁ×ÌÅÎÏ). ÷ÏÔ ÐÒÉÍÅÒ ÉÚ ÆÁÊÌÁ ÓÏ ×ÓÅÍÉ
ÓÄÅÌËÁÍÉ:
24.08.2010 23:45:01 - 138895 - 1 - Sell
24.08.2010 23:45:01 - 138890 - 1 - Sell
24.08.2010 23:45:01 - 138925 - 2 -
24.08.2010 23:45:01 - 138930 - 1 - Buy
24.08.2010 23:45:01 - 138930 - 3 - Buy
24.08.2010 23:45:01 - 138935 - 3 - Buy
24.08.2010 23:45:01 - 138935 - 2 - Buy
24.08.2010 23:45:01 - 138935 - 1 - Buy
24.08.2010 23:45:01 - 138940 - 3 - Buy
24.08.2010 23:45:02 - 138910 - 1 - Sell
24.08.2010 23:45:02 - 138935 - 2 -
24.08.2010 23:45:02 - 138935 - 1 -
24.08.2010 23:45:02 - 138930 - 2 - Buy
24.08.2010 23:45:02 - 138935 - 1 - Buy
úÁ×ÔÒÁ ×ÅÞÅÒÏÍ, ÅÓÌÉ OrderDirection ÎÅ ÓÅÌÌ É ÎÅ ÂÁÊ - ÂÕÄÅÔ ÏËÏÛËÏ
×ÙÄÁ×ÁÔØ. ôÁË ÈÏÔØ ÍÏÖÎÏ ÂÕÄÅÔ ÐÏÎÑÔØ × ËÁËÏÍ ÉÍÅÎÎÏ ÍÅÓÔÅ ×ÏÚÎÉËÁÅÔ
ÏÛÉÂËÁ, ÏÔÐÉÛÕÓØ.