전저점 전전저점 전고가 전전고가 가지고 처리
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -29,6 +29,14 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
public int CandleLength12 { get; set; } = 12;
|
||||
// 기간
|
||||
public int CandleLength8 { get; set; } = 8;
|
||||
public int CandleLength144 { get; set; } = 144;
|
||||
public int CandleLength40 { get; set; } = 40;
|
||||
public int CandleLength20 { get; set; } = 20;
|
||||
public int CandleLength120 { get; set; } = 120;
|
||||
public int CandleLength240 { get; set; } = 240;
|
||||
public int CandleLength480 { get; set; } = 480;
|
||||
public int CandleLength80 { get; set; } = 80;
|
||||
public int CandleLength160 { get; set; } = 160;
|
||||
|
||||
// 가격
|
||||
public CommonProperty.CandlePriceType MACandlePriceType { get; set; }
|
||||
@@ -50,9 +58,17 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
candleData.movingAverageDataList.Add(CandleLength12, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength24, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength36, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength144, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength40, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength48, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength72, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength8, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength20, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength80, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength160, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength120, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength240, new MovingAverageData());
|
||||
candleData.movingAverageDataList.Add(CandleLength480, new MovingAverageData());
|
||||
}
|
||||
|
||||
foreach(var item in candleData.movingAverageDataList.ToList())
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace BitgetAPI
|
||||
IndicatorProcess indicatorProcess = null;
|
||||
|
||||
// 종목별 캔들 데이터 : 캔들 개수
|
||||
const int candleCount = 200;
|
||||
const int candleCount = 500;
|
||||
#endregion
|
||||
|
||||
public MainForm()
|
||||
|
||||
@@ -1050,7 +1050,7 @@ namespace BitgetAPI.WebService
|
||||
candleDataList.Add(candleData);
|
||||
|
||||
// 기존 데이터 삭제
|
||||
if (candleDataList.Count > 250)
|
||||
if (candleDataList.Count > 500)
|
||||
{
|
||||
// 가장 오래된 데이터 삭제
|
||||
candleDataList.Remove(j => j.Argument == candleDataList.Min(i => i.Argument));
|
||||
@@ -1260,7 +1260,7 @@ namespace BitgetAPI.WebService
|
||||
candleDataList.Add(candleData);
|
||||
|
||||
// 기존 데이터 삭제
|
||||
if (candleDataList.Count > 250)
|
||||
if (candleDataList.Count > 500)
|
||||
{
|
||||
// 가장 오래된 데이터 삭제
|
||||
candleDataList.Remove(j => j.Argument == candleDataList.Min(i => i.Argument));
|
||||
|
||||
Reference in New Issue
Block a user