- ULWatchItem.Is5MAGoingUp() 함수 추가

- ULWatchItem.FillPrice() 함수 추가
This commit is contained in:
2016-07-25 03:52:01 +09:00
parent 604795159e
commit f5af5eaef3
7 changed files with 482 additions and 430 deletions

View File

@@ -22,10 +22,10 @@ namespace upper_limit_crawler
public void Init()
{
m_Util = new CPFORETRADELib.CpForeTdUtil();
m_Conclusion = new DSCBO1Lib.CpConclusion();
m_Util = new CPFORETRADELib.CpForeTdUtil();
m_Conclusion = new DSCBO1Lib.CpConclusion();
m_Util.TradeInit();
m_Util.TradeInit();
m_astrAccounts = m_Util.AccountNumber;
StartConclusion();
@@ -129,9 +129,9 @@ namespace upper_limit_crawler
{
//lock(lockBuy)
{
while (UlUtil.GetLimitRemainCountRQ() <= 0) ;
while (UlUtil.GetLimitRemainCountRQ() <= 0) ;
int iCnt = iBidAmount / iUnitPrice;
int iCnt = iBidAmount / iUnitPrice;
CPTRADELib.CpTd0311 Td0311Bid = new CPTRADELib.CpTd0311();
Td0311Bid.SetInputValue(0, "2");
@@ -150,12 +150,12 @@ namespace upper_limit_crawler
{
//lock (lockSell)
{
//long iCnt = (long)Math.Floor(fAskAmount/fCurPrice);
//iCnt=1;
//long iCnt = (long)Math.Floor(fAskAmount/fCurPrice);
//iCnt=1;
while (UlUtil.GetLimitRemainCountRQ() <= 0) ;
while (UlUtil.GetLimitRemainCountRQ() <= 0) ;
CPTRADELib.CpTd0311 Td0311Ask = new CPTRADELib.CpTd0311();
CPTRADELib.CpTd0311 Td0311Ask = new CPTRADELib.CpTd0311();
Td0311Ask.SetInputValue(0, "1");
Td0311Ask.SetInputValue(1, m_astrAccounts[0]);
@@ -173,10 +173,10 @@ namespace upper_limit_crawler
{
//lock (lockSell)
{
//long iCnt = (long)Math.Floor(fAskAmount/fCurPrice);
//iCnt=1;
//long iCnt = (long)Math.Floor(fAskAmount/fCurPrice);
//iCnt=1;
while (UlUtil.GetLimitRemainCountRQ() <= 0);
while (UlUtil.GetLimitRemainCountRQ() <= 0);
CPTRADELib.CpTd0311 Td0311Ask = new CPTRADELib.CpTd0311();