고가 저가 처리 완료
This commit is contained in:
@@ -174,15 +174,16 @@ namespace BitgetAPI
|
||||
{
|
||||
var flag = true;
|
||||
|
||||
//속도 개선을 위하여 미리 선언
|
||||
while (webConnection.Is_th_webSocketThread)
|
||||
{
|
||||
webConnection.CalculateDataList(type);
|
||||
webConnection.CalculateDataList(type, indicatorProcess.intervalList);
|
||||
if (flag)
|
||||
{
|
||||
th_SignalInfo = new Thread(new ThreadStart(Signalnfo));
|
||||
th_SignalInfo.Start();
|
||||
}
|
||||
flag = false;
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,13 +202,7 @@ namespace BitgetAPI
|
||||
*/
|
||||
|
||||
|
||||
var checkedMarkets = checkedComboBoxEdit_MarketInfoList.Properties.Items.GetCheckedValues();
|
||||
var intervalList = checkedComboBoxEdit_TimeInterval.Properties.Items.GetCheckedValues();
|
||||
|
||||
indicatorProcess = new IndicatorProcess();
|
||||
indicatorProcess.Is_th_SignalInfo = true;
|
||||
indicatorProcess.checkedMarkets = checkedMarkets;
|
||||
indicatorProcess.intervalList = intervalList;
|
||||
indicatorProcess.signals_LU = signals_LU;
|
||||
indicatorProcess.signals_SD = signals_SD;
|
||||
indicatorProcess.signals_LD = signals_LD;
|
||||
@@ -246,6 +241,9 @@ namespace BitgetAPI
|
||||
// 캔들 데이터 가져오기
|
||||
foreach (var interval in Enum.GetValues(typeof(CommonProperty.MCandleTimeType)))
|
||||
{
|
||||
var strInterval = Utils.Convertor.GetEnumDescription((Enum)interval);
|
||||
if (!indicatorProcess.intervalList.Contains(strInterval)) continue;
|
||||
|
||||
// Description
|
||||
var description = Utils.Convertor.GetEnumDescription((Enum)interval);
|
||||
// 1M, 3M Names....
|
||||
@@ -524,7 +522,12 @@ namespace BitgetAPI
|
||||
|
||||
// 웹소켓으로 캔들 쌓기
|
||||
// WebSocket 생성
|
||||
|
||||
indicatorProcess = new IndicatorProcess();
|
||||
var checkedMarkets = checkedComboBoxEdit_MarketInfoList.Properties.Items.GetCheckedValues();
|
||||
var intervalList = checkedComboBoxEdit_TimeInterval.Properties.Items.GetCheckedValues();
|
||||
indicatorProcess.checkedMarkets = checkedMarkets;
|
||||
indicatorProcess.intervalList = intervalList;
|
||||
|
||||
commonProperty.webConnection = webConnection;
|
||||
webConnection.Is_th_webSocketThread = true;
|
||||
webConnection.BitGetWebSocektStart(BitgetWebSocketType.현황정보_전체종목, dic);
|
||||
|
||||
Reference in New Issue
Block a user