Up, Down 두개 나눔 (Buy, Result)
This commit is contained in:
@@ -43,9 +43,15 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
public bool 영호조건식_하향돌파 = false;
|
||||
|
||||
//구매 리스트
|
||||
public Dictionary<string, Dictionary<string, object>> BuyList = new Dictionary<string, Dictionary<string, object>>();
|
||||
public Dictionary<string, Dictionary<string, object>> UpBuyList = new Dictionary<string, Dictionary<string, object>>();
|
||||
//결과 리스트
|
||||
public List<Dictionary<string, object>> ResultList = new List<Dictionary<string, object>>();
|
||||
public List<Dictionary<string, object>> UpResultList = new List<Dictionary<string, object>>();
|
||||
|
||||
//구매 리스트
|
||||
public Dictionary<string, Dictionary<string, object>> DownBuyList = new Dictionary<string, Dictionary<string, object>>();
|
||||
//결과 리스트
|
||||
public List<Dictionary<string, object>> DownResultList = new List<Dictionary<string, object>>();
|
||||
|
||||
public Dictionary<string, bool> 판매조건Flag = new Dictionary<string, bool>();
|
||||
public Dictionary<string, bool> 최초조건Flag = new Dictionary<string, bool>();
|
||||
// 전봉이 구름떼 돌파후 시가가 구름떼 위에서 시작하는 것
|
||||
@@ -424,7 +430,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
}
|
||||
|
||||
//사는 시점
|
||||
if (!BuyList.ContainsKey(market + interval))
|
||||
if (!UpBuyList.ContainsKey(market + interval))
|
||||
{
|
||||
if (
|
||||
(
|
||||
@@ -466,7 +472,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
{ "Candle", candleData }
|
||||
};
|
||||
|
||||
BuyList.Add(market + interval, buyDic);
|
||||
UpBuyList.Add(market + interval, buyDic);
|
||||
최초조건Flag[market + interval] = false;
|
||||
if (현재봉4 > 현재봉12)
|
||||
{
|
||||
@@ -491,7 +497,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
//파는 시점
|
||||
else
|
||||
{
|
||||
var buyItem = BuyList[market + interval];
|
||||
var buyItem = UpBuyList[market + interval];
|
||||
if (interval < MCandleTimeType.H1)
|
||||
{
|
||||
if (nowTime < ((DateTime)buyItem["BuyDate"]).AddMinutes((int)interval))
|
||||
@@ -537,8 +543,8 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
{ "Rate", resultRate }
|
||||
};
|
||||
|
||||
ResultList.Add(result);
|
||||
BuyList.Remove(market + interval);
|
||||
UpResultList.Add(result);
|
||||
UpBuyList.Remove(market + interval);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -683,7 +689,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
}
|
||||
|
||||
//사는 시점
|
||||
if (!BuyList.ContainsKey(market + interval))
|
||||
if (!DownBuyList.ContainsKey(market + interval))
|
||||
{
|
||||
if (
|
||||
(
|
||||
@@ -736,7 +742,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
{ "Candle", candleData }
|
||||
};
|
||||
|
||||
BuyList.Add(market + interval, buyDic);
|
||||
DownBuyList.Add(market + interval, buyDic);
|
||||
최초조건Flag[market + interval] = false;
|
||||
if (현재봉4 > 현재봉12)
|
||||
{
|
||||
@@ -761,7 +767,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
//파는 시점
|
||||
else
|
||||
{
|
||||
var buyItem = BuyList[market + interval];
|
||||
var buyItem = DownBuyList[market + interval];
|
||||
if (interval < MCandleTimeType.H1)
|
||||
{
|
||||
if (nowTime < ((DateTime)buyItem["BuyDate"]).AddMinutes((int)interval))
|
||||
@@ -807,8 +813,8 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
{ "Rate", resultRate }
|
||||
};
|
||||
|
||||
ResultList.Add(result);
|
||||
BuyList.Remove(market + interval);
|
||||
DownResultList.Add(result);
|
||||
DownBuyList.Remove(market + interval);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user