현재가, 매수 후 최고가 디버그
This commit is contained in:
19
ULDataMgr.cs
19
ULDataMgr.cs
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user