현재가, 매수 후 최고가 디버그

This commit is contained in:
2016-08-11 01:02:54 +09:00
parent eb48b58b7e
commit 5bb7f2363a
7 changed files with 107 additions and 43 deletions

View File

@@ -110,7 +110,7 @@ namespace upper_limit_crawler
return m_Trader;
}
public void AddWatch(string strCode, string strCodeName, int iCurPrice, int iPrevClosing)
public void AddWatch(string strCode, string strCodeName)
{
if (m_WatchList.ContainsKey(strCode))
return;
@@ -118,8 +118,6 @@ namespace upper_limit_crawler
ULWatchItem item = new ULWatchItem();
item.m_strCode = strCode;
item.m_strCodeName = strCodeName;
item.m_iCurPrice = iCurPrice;
item.m_iPrevClosing = iPrevClosing;
item.FillPrice();
@@ -296,6 +294,21 @@ namespace upper_limit_crawler
return new List<ASK_LOG>();
}
public int GetBidTime(string strCode)
{
int iTime = 0;
List<BID_LOG> BidLog = m_BidLogs.Where(r => r.m_strCode==strCode).ToList();
BidLog.Reverse();
foreach(BID_LOG bid in BidLog)
{
if(m_AskLogs.Any(r => r.m_strCode==strCode && r.m_iTime>bid.m_iTime)==false)
iTime=bid.m_iTime;
else
break;
}
return iTime;
}
public void DumpLog(bool bReal)
{
StringBuilder sb = new StringBuilder();