개발중
This commit is contained in:
@@ -17,7 +17,7 @@ namespace upper_limit_crawler
|
||||
|
||||
ULDataMgr m_DataMgr;
|
||||
CPSYSDIBLib.CpSvrNew7043 m_7043 = null;
|
||||
Timer m_Timer = new Timer();
|
||||
System.Windows.Forms.Timer m_Timer = new System.Windows.Forms.Timer();
|
||||
int m_iMonitorDelay = 0;
|
||||
int m_iLastTime = 0;
|
||||
bool m_bRequesting = false;
|
||||
@@ -62,13 +62,13 @@ namespace upper_limit_crawler
|
||||
|
||||
bool RefreshMonitorItem()
|
||||
{
|
||||
if (m_bRequesting == true || ULUtil.GetLimitRemainCountRQ() < 30)
|
||||
if (m_bRequesting == true)
|
||||
return false;
|
||||
|
||||
m_bRequesting = true;
|
||||
m_7043.SetInputValue(7, (short)(m_DataMgr.m_Setting.m_fSearchMin * 100));
|
||||
m_7043.SetInputValue(8, (short)((m_DataMgr.m_Setting.m_fSearchMax + 0.009) * 100));
|
||||
int iResult = m_7043.BlockRequest2(1);
|
||||
int iResult = ULUtil.BlockRequest(m_7043);
|
||||
|
||||
lvWatch.Items.Clear();
|
||||
int iIdx = 1;
|
||||
@@ -121,8 +121,8 @@ namespace upper_limit_crawler
|
||||
}
|
||||
|
||||
bContinue = (m_7043.Continue == 1);
|
||||
if (bContinue == true && ULUtil.GetLimitRemainCountRQ() >= 30)
|
||||
iResult = m_7043.BlockRequest2(1);
|
||||
if (bContinue == true)
|
||||
iResult = ULUtil.BlockRequest(m_7043);
|
||||
}
|
||||
|
||||
//foreach (ColumnHeader col in lvWatch.Columns)
|
||||
@@ -181,7 +181,7 @@ 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.AddBidLog(strCode, item.m_strCodeName, iTime, item.m_iCurPrice, f5MASlope);
|
||||
m_DataMgr.AddBidLog(strCode, item.m_strCodeName, iTime, item.m_iCurPrice, f5MASlope, true);
|
||||
m_DataMgr.AddPostphoneItem(iTime, strCode);
|
||||
|
||||
ULUtil.Trace("[{0}] 조건 매수 {1}원 ({2}) (5MA slop:{3})",
|
||||
|
||||
Reference in New Issue
Block a user