- 매수, 매도 정보 leveldb로 저장

This commit is contained in:
mjjo
2016-08-01 18:58:02 +09:00
parent f450f20d79
commit c94598d20c
6 changed files with 128 additions and 42 deletions

View File

@@ -159,6 +159,8 @@ namespace upper_limit_crawler
if (fCompRate >= m_DataMgr.m_Setting.m_fBidMin && fCompRate <= m_DataMgr.m_Setting.m_fBidMax)
{
m_DataMgr.AddAvailableItem(strCode);
int iTime = ULUtil.GetCurTimeInt();
if (m_DataMgr.IsInPostponeList(iTime, strCode) == true)
{
@@ -179,8 +181,8 @@ namespace upper_limit_crawler
// bid and add to black list
m_DataMgr.GetTrader().Buy(strCode, item.m_iCurPrice, (int)m_DataMgr.m_Setting.m_fBidAmount);
m_DataMgr.AddPostphoneItem(iTime, strCode);
m_DataMgr.AddBidLog(strCode, item.m_strCodeName, iTime, item.m_iCurPrice, f5MASlope);
m_DataMgr.AddPostphoneItem(iTime, strCode);
ULUtil.Trace("[{0}] 조건 매수 {1}원 ({2}) (5MA slop:{3})",
item.m_strCodeName,