Files
BitGet_API/BitgetApi/IndicatorConditionSetup/IndicatorProcess.cs

1041 lines
58 KiB
C#
Raw Normal View History


using BitgetApi.Data;
using BitgetApi.IndicatorConditionSetup;
2025-04-18 15:04:49 +09:00
using BitgetApi.IndicatorData;
2024-09-30 15:32:09 +09:00
using BitgetAPI.Data;
2024-10-16 12:24:11 +09:00
using BitgetAPI.WebService;
2024-09-30 15:32:09 +09:00
using Newtonsoft.Json;
2024-10-31 10:46:24 +09:00
using Serilog;
2025-05-13 12:53:36 +09:00
using Serilog.Debugging;
using System;
using System.Collections.Generic;
2024-10-16 12:24:11 +09:00
using System.Collections.Specialized;
2025-05-13 12:53:36 +09:00
using System.Diagnostics;
using System.Linq;
2024-10-16 12:24:11 +09:00
using System.Security.Cryptography;
using static BitgetAPI.CommonProperty;
2024-10-17 13:13:54 +09:00
namespace BitgetAPI.IndicatorConditionSetup
{
public class IndicatorProcess
{
2024-10-21 15:24:05 +09:00
GlobalOptions options = GlobalOptions.Instance;
CommonProperty commonProperty = CommonProperty.Instance;
2024-10-16 12:24:11 +09:00
//영호 Key
private string YHKIM_AccessKey
{
get
2024-10-21 15:24:05 +09:00
{
return options.SelectAPI.AccessKey;
}
}
2025-05-23 12:44:23 +09:00
// = "bg_f93aa55288b6ec9d62095994c51972a";
2024-10-21 15:24:05 +09:00
private string YHKIM_SecreteKey
{
get
{
2024-10-21 15:24:05 +09:00
return options.SelectAPI.SecretKey;
}
}// = "2fce18bcd12ca23a7920c48295a58da031443ea383af8114ed599c1b14ac678e";
private string YHKIM_PassphraseKey
{
get
{
return options.SelectAPI.PassphraseKey;
}
}// = "dudgh0505";
2024-10-16 12:24:11 +09:00
2024-10-21 19:12:08 +09:00
private double YHKIM_Leverage
{
get
{
return options.Leverage;
}
}
private double YHKIM_OrderAmount
{
get
{
return options.OrderAmount;
}
}
2024-10-16 12:24:11 +09:00
// 스레드 시작/종료 플래그
public bool Is_th_SignalInfo;
public Dictionary<string, Dictionary<string, double>> 전저고점 = new Dictionary<string, Dictionary<string, double>>();
2025-02-19 10:07:59 +09:00
public List<object> checkedMarkets;
public List<object> intervalList;
// 신호검색 리스트 작성
// 신호 Long 상승 (구매)
public List<SignalInfoData> signals_LU = null;
// 신호 Short 하락 (구매)
public List<SignalInfoData> signals_SD = null;
// 검색현황 Long 하락 (판매)
public List<SignalInfoData> signals_LD = null;
// 검색현황 Short 상승 (판매)
public List<SignalInfoData> signals_SU = null;
public TimeSpan sesstionTime;
// 조건식 설정 상태
public bool checked구름떼상향돌파 = false;
public bool checked구름떼하향돌파 = false;
public bool 영호조건식_상향돌파 = false;
public bool 영호조건식_하향돌파 = false;
//구매 리스트
2024-08-26 12:57:15 +09:00
public Dictionary<string, Dictionary<string, object>> UpBuyList = new Dictionary<string, Dictionary<string, object>>();
//결과 리스트
2024-08-26 12:57:15 +09:00
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>>();
2024-09-30 15:32:09 +09:00
public Dictionary<string, bool> UpList = new Dictionary<string, bool>();
public Dictionary<string, double> UpBuyValue = new Dictionary<string, double>();
2024-09-11 10:47:38 +09:00
2024-09-30 15:32:09 +09:00
public Dictionary<string, bool> DownList = new Dictionary<string, bool>();
public Dictionary<string, double> DownBuyValue = new Dictionary<string, double>();
2024-09-11 10:47:38 +09:00
2024-10-17 13:13:54 +09:00
public int LongCount = 0;
public int ShortCount = 0;
public List<Dictionary<string, object>> BuyLongList = new List<Dictionary<string, object>>();
public List<Dictionary<string, object>> BuyShortList = new List<Dictionary<string, object>>();
public List<Dictionary<string, object>> ResultList = new List<Dictionary<string, object>>();
2024-11-26 21:54:01 +09:00
public Dictionary<string, Dictionary<int, bool>> SellShortStep = new Dictionary<string, Dictionary<int, bool>>();
public Dictionary<string, Dictionary<int, bool>> SellLongStep = new Dictionary<string, Dictionary<int, bool>>();
2025-05-13 12:53:36 +09:00
public Dictionary<string, int> BuyShortStep = new Dictionary<string, int>();
public Dictionary<string, int> BuyLongStep = new Dictionary<string, int>();
2025-05-13 12:53:36 +09:00
public Dictionary<string, double> BuyShortStepStampData = new Dictionary<string, double>();
public Dictionary<string, double> BuyLongStepStampData = new Dictionary<string, double>();
2025-01-31 12:05:21 +09:00
2025-05-13 12:53:36 +09:00
public int 전가Flag = 1;
// 전봉이 구름떼 돌파후 시가가 구름떼 위에서 시작하는 것
// 전봉이 구름떼 하락후 시가가 구름떼 밑에서 시작하는 것
public void calProcess()
{
2025-04-18 15:04:49 +09:00
var range = 34;
IchimokuConditionSetup ichimokuConditionSetup = new IchimokuConditionSetup();
MovingAverageConditionSetup movingAverageConditionSetup = new MovingAverageConditionSetup();
TradingViewConditionSetup tradingViewConditionSetup = new TradingViewConditionSetup();
2025-05-23 12:44:23 +09:00
SMABandConditionSetup sMABandConditionSetup = new SMABandConditionSetup();
2024-06-14 19:18:54 +09:00
signals_LU.Clear();
signals_SD.Clear();
signals_LD.Clear();
signals_SU.Clear();
2024-10-16 15:52:14 +09:00
//시작시 한번만 하면됨(양방향)
2024-10-17 12:40:38 +09:00
ChangeFuturePositionMode(FuturePositionMode.hedge_mode);
2024-10-21 11:08:36 +09:00
//GetFutureAccountList();
2024-10-16 15:52:14 +09:00
//order 로직
2024-10-21 11:08:36 +09:00
//var orderDatas = FutureOrder("XRPUSDT", FutureMarginMode.isolated, 10, (double)0.549, FutureSide.BuyShort, OrderType.limit, 10);
2024-10-17 13:13:54 +09:00
//var orderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(orderData["data"]));
//var orderValue = new Dictionary<string, object>();
//orderValue.Add("orderId", orderDic["orderId"]);
2025-04-18 15:04:49 +09:00
//var sellData = FutureOrder("XRPUSDT", FutureMarginMode.isolated, 10, 0, FutureSide.SellShort, OrderType.market, 10, orderDic["orderId"]);
var totalImperseMACDData = new Dictionary<string, Dictionary<DateTime, ImpulseMacdData>>();
2025-01-31 12:05:21 +09:00
2025-04-18 15:04:49 +09:00
var 전저고점Flag = true;
// 추후 공통화 및 소스정리 필요
while (true)
{
try
{
if (!Is_th_SignalInfo) break;
//Thread.Sleep(200);
var nowTime = DateTime.Now;
// 특정 시간 이후 삭제
foreach (var item in signals_LU.ToList())
{
// 시간 지나면 삭제
if (item.SignalStart + sesstionTime < nowTime)
{
signals_LU.Remove(item);
continue;
}
var findedMarket = commonProperty.candleDataLists.Find(i => i.ConGoodsData.MarketName == item.MarketName);
var lastCandleData = findedMarket.candleDataList[item.MCandleTimeType].OrderBy(i => i.Argument).ToList().Last();
2024-06-21 11:39:32 +09:00
2024-06-27 16:09:54 +09:00
if (lastCandleData.IchimokData != null)
{
if (checked구름떼상향돌파 || 영호조건식_상향돌파)
2024-06-27 16:09:54 +09:00
{
item.Price = lastCandleData.Close;
item.Rate = (lastCandleData.Close / lastCandleData.Open) * 100 - 100;
item.IndicatorRate = (lastCandleData.Close / item.IndicatorPrice) * 100 - 100;
}
}
}
foreach (var item in signals_SD.ToList())
{
// 시간 지나면 삭제
if (item.SignalStart + sesstionTime < nowTime)
{
signals_SD.Remove(item);
continue;
}
var findedMarket = commonProperty.candleDataLists.Find(i => i.ConGoodsData.MarketName == item.MarketName);
var candleDataList = findedMarket.candleDataList[item.MCandleTimeType].OrderBy(i => i.Argument).ToList();
if (candleDataList != null && candleDataList.Count > 0)
{
var lastCandleData = candleDataList.Last();
if (lastCandleData.IchimokData != null)
{
if (checked구름떼하향돌파 || 영호조건식_하향돌파)
{
item.Price = lastCandleData.Close;
item.Rate = (lastCandleData.Close / lastCandleData.Open) * 100 - 100;
item.IndicatorRate = (lastCandleData.Close / item.IndicatorPrice) * 100 - 100;
}
2024-06-21 11:39:32 +09:00
}
}
}
foreach (var item in signals_LD.ToList())
if (item.SignalStart + sesstionTime < nowTime) signals_SU.Remove(item);
foreach (var item in signals_SU.ToList())
if (item.SignalStart + sesstionTime < nowTime) signals_SD.Remove(item);
// 체크된 마켓 정보
foreach (string market in checkedMarkets)
{
var findedMarket = commonProperty.candleDataLists.Find(i => i.ConGoodsData.MarketName == market);
var enumList = Enum.GetValues(typeof(CommonProperty.MCandleTimeType));
Array.Reverse(enumList);
2024-06-21 11:39:32 +09:00
foreach (CommonProperty.MCandleTimeType interval in enumList)
{
// Description
var strInterval = Utils.Convertor.GetEnumDescription((Enum)interval);
if (!intervalList.Contains(strInterval)) continue;
2024-06-21 11:39:32 +09:00
2025-04-18 15:04:49 +09:00
if (nowTime.Minute == 0 && nowTime.Hour == 24 && 전저고점Flag)
2024-07-25 12:26:45 +09:00
{
전저고점.Clear();
2025-04-18 15:04:49 +09:00
전저고점Flag = false;
}
if (!전저고점.ContainsKey(market + strInterval))
{
var dic = new Dictionary<string, double>
{
{ "전고가", 0 },
{ "전저가", 0 },
{ "전전고가", 0 },
{ "전전저가", 0 },
{ "전전전저가", 0 },
{ "전전전고가", 0 },
{ "전전전전저가", 0 },
{ "전전전전고가", 0 },
{ "tempHighVal", 0 },
{ "tempLowVal", 0 },
{ "tempHigh2Val", 0 },
{ "tempLow2Val", 0 },
{ "tempHigh3Val", 0 },
{ "tempLow3Val", 0 },
{ "tempHigh4Val", 0 },
{ "tempLow4Val", 0 },
{ "switchLowVal", 0 },
{ "switchHighVal", 0 }
};
전저고점.Add(market + strInterval, dic);
2025-01-15 11:51:35 +09:00
var candleDatas_Temp = findedMarket.candleDataList[interval];
var candleDatas_정렬_Temp = candleDatas_Temp.OrderBy(i => i.Argument).ToList();
var candleDatas_Temp_List = new List<CandleData>();
2025-04-18 15:04:49 +09:00
totalImperseMACDData[market + strInterval] = new Dictionary<DateTime, ImpulseMacdData>();
2025-01-15 11:51:35 +09:00
for (var i = 0; i < 199; i++)
candleDatas_Temp_List.Add(candleDatas_정렬_Temp[i]);
for (var i = 199; i < candleDatas_정렬_Temp.Count; i++)
{
2025-04-18 15:04:49 +09:00
2025-01-15 11:51:35 +09:00
var candleData_Main = candleDatas_정렬_Temp[i];
if (candleData_Main == null) continue;
2025-05-13 12:53:36 +09:00
2025-04-18 15:04:49 +09:00
candleDatas_Temp_List.Add(candleData_Main);
2025-01-15 11:51:35 +09:00
ichimokuConditionSetup.calIchimokuData(candleDatas_Temp_List, candleData_Main);
2025-01-31 12:05:21 +09:00
movingAverageConditionSetup.Cal_YHK_Downpublic(candleDatas_Temp_List, candleData_Main);
2025-04-18 15:04:49 +09:00
2025-01-31 12:05:21 +09:00
if (i > 210)
2025-01-15 11:51:35 +09:00
{
2025-04-07 14:42:37 +09:00
var 현재봉4_Temp = candleDatas_Temp_List[i].movingAverageDataList[4].Value;
var 전봉4_Temp = candleDatas_Temp_List[i - 1].movingAverageDataList[4].Value;
var 전전봉4_Temp = candleDatas_Temp_List[i - 2].movingAverageDataList[4].Value;
var 전전전봉4_Temp = candleDatas_Temp_List[i - 3].movingAverageDataList[4].Value;
2025-04-18 15:04:49 +09:00
var returnVal = Calculate전고점(market, strInterval, interval, 전봉4_Temp, 전전봉4_Temp, 전전전봉4_Temp, candleDatas_Temp_List[candleDatas_Temp_List.Count - 1]);
2025-01-15 11:51:35 +09:00
}
2025-01-31 12:05:21 +09:00
}
2024-08-26 12:55:07 +09:00
}
2025-04-18 15:04:49 +09:00
else {
if(nowTime.Minute > 0 && nowTime.Hour == 24)
전저고점Flag = true;
}
2025-04-18 15:04:49 +09:00
2025-05-13 12:53:36 +09:00
if (!BuyShortStep.ContainsKey(market))
2025-01-31 12:05:21 +09:00
{
2025-05-13 12:53:36 +09:00
BuyShortStep[market] = 0;
BuyLongStep[market] = 0;
}
2025-05-23 12:44:23 +09:00
if (!(전저고점.ContainsKey(market + "5m")))
continue;
2025-01-31 12:05:21 +09:00
2025-05-23 12:44:23 +09:00
#region 5분봉 처리
2025-05-23 11:03:30 +09:00
2025-05-23 12:44:23 +09:00
var candleDatas_5 = findedMarket.candleDataList[MCandleTimeType.M5];
var candleDatas_5_정렬 = candleDatas_5.OrderBy(i => i.Argument).ToList();
var candleDatas_5_TempList = candleDatas_5.OrderBy(i => i.Argument).ToList();
var candleData_5 = candleDatas_5.Find(i => i.Argument == candleDatas_5_정렬.Last().Argument);
2025-05-23 12:44:23 +09:00
if (candleData_5 == null) continue;
2025-05-23 12:44:23 +09:00
ichimokuConditionSetup.calIchimokuData(candleDatas_5_정렬, candleData_5);
movingAverageConditionSetup.Cal_YHK_Downpublic(candleDatas_5_정렬, candleData_5);
2025-05-23 12:44:23 +09:00
candleDatas_5_정렬.RemoveAt(candleDatas_5_정렬.Count - 1);
var candleData_5_전봉 = candleDatas_5.Find(i => i.Argument == candleDatas_5_정렬.Last().Argument);
2025-05-23 12:44:23 +09:00
if (candleData_5_전봉 == null) continue;
ichimokuConditionSetup.calIchimokuData(candleDatas_5_정렬, candleData_5_전봉);
movingAverageConditionSetup.Cal_YHK_Downpublic(candleDatas_5_정렬, candleData_5_전봉);
2025-05-23 12:44:23 +09:00
candleDatas_5_정렬.RemoveAt(candleDatas_5_정렬.Count - 1);
var candleData_5_전전봉 = candleDatas_5.Find(i => i.Argument == candleDatas_5_정렬.Last().Argument);
2025-05-23 12:44:23 +09:00
if (candleData_5_전전봉 == null) continue;
ichimokuConditionSetup.calIchimokuData(candleDatas_5_정렬, candleData_5_전전봉);
movingAverageConditionSetup.Cal_YHK_Downpublic(candleDatas_5_정렬, candleData_5_전전봉);
2025-05-23 12:44:23 +09:00
candleDatas_5_정렬.RemoveAt(candleDatas_5_정렬.Count - 1);
var candleData_5_전전전봉 = candleDatas_5.Find(i => i.Argument == candleDatas_5_정렬.Last().Argument);
2025-05-23 12:44:23 +09:00
if (candleData_5_전전전봉 == null) continue;
ichimokuConditionSetup.calIchimokuData(candleDatas_5_정렬, candleData_5_전전전봉);
movingAverageConditionSetup.Cal_YHK_Downpublic(candleDatas_5_정렬, candleData_5_전전전봉);
2025-05-23 12:44:23 +09:00
candleDatas_5_정렬.RemoveAt(candleDatas_5_정렬.Count - 1);
var candleData_5_전전전전봉 = candleDatas_5.Find(i => i.Argument == candleDatas_5_정렬.Last().Argument);
2025-05-23 12:44:23 +09:00
if (candleData_5_전전전전봉 == null) continue;
ichimokuConditionSetup.calIchimokuData(candleDatas_5_정렬, candleData_5_전전전전봉);
movingAverageConditionSetup.Cal_YHK_Downpublic(candleDatas_5_정렬, candleData_5_전전전전봉);
2025-05-23 11:03:30 +09:00
#endregion
2024-11-13 13:39:41 +09:00
if (영호조건식_상향돌파 || 영호조건식_하향돌파)
{
if (영호조건식_상향돌파)
{
2025-05-23 12:44:23 +09:00
var price = candleData_5.Close;
var rate = (candleData_5.Close / candleData_5.Open) * 100 - 100;
var indicatorPrice = candleData_5.Open;
var indicatorRate = (candleData_5.Close / indicatorPrice) * 100 - 100;
2025-03-05 12:36:32 +09:00
var description = string.Format("{0} 72,24,4 상승", strInterval);
var signalData = signals_SD.Find(i => i.MarketName.Equals(market) && i.Description.Equals(description));
//전 저점 계산
try
2025-01-31 12:05:21 +09:00
{
//사는 시점
if (!UpBuyList.ContainsKey(market))
{
if (sMABandConditionSetup.Calculate(candleDatas_5_TempList, SMABandType.LongBuy) &&
!sMABandConditionSetup.Calculate(candleDatas_5_TempList, SMABandType.LongSell))
{
2025-05-13 12:53:36 +09:00
BuyLongStep[market] = 0;
// 없으면 생성
if (signalData == null)
2024-11-26 21:54:01 +09:00
{
SignalInfoData signalInfoData = new SignalInfoData();
signalInfoData.SignalStart = nowTime;
signalInfoData.MarketName = market;
signalInfoData.Description = description;
signalInfoData.Rate = rate;
signalInfoData.Price = price;
signalInfoData.IndicatorPrice = indicatorPrice;
signalInfoData.IndicatorRate = indicatorRate;
signalInfoData.MCandleTimeType = interval;
signals_SD.Add(signalInfoData);
}
var buyDic = new Dictionary<string, object>
{
{ "MarketName", market },
{ "BuyDate", nowTime },
2025-05-23 11:03:30 +09:00
{ "Price", price },
{ "MCandleTimeType", (int)interval },
2025-05-23 12:44:23 +09:00
{ "CandleTime", candleData_5.Argument },
{ "Candle", candleData_5 }
};
UpBuyList.Add(market, buyDic);
var dic = new Dictionary<int, bool>
{
[1] = true,
[2] = false,
[3] = false,
[4] = false,
[5] = false
};
SellLongStep.Add(market, dic);
if (LongCount < 5)
{
double size = YHKIM_OrderAmount / price * YHKIM_Leverage;
var orderData = FutureOrder(market, FutureMarginMode.isolated, size, 0, FutureSide.BuyLong, OrderType.limit, YHKIM_Leverage);
if (orderData != null)
{
var orderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(orderData["data"]));
2025-04-07 14:42:37 +09:00
var orderDataDic = new Dictionary<string, object>
{
{ "MarketName", market },
{ "BuyDate", nowTime },
2025-04-07 14:42:37 +09:00
{ "Price", price },
{ "MCandleTimeType", (int)interval },
2025-05-23 12:44:23 +09:00
{ "Candle", candleData_5 },
{ "Size", size },
{ "orderId", orderDic["orderId"] }
};
BuyLongList.Add(orderDataDic);
LongCount++;
}
2024-11-13 13:39:41 +09:00
}
2024-11-26 22:02:59 +09:00
}
}
//파는 시점
else
{
2024-11-26 22:03:48 +09:00
var buyItem = UpBuyList[market];
2025-05-27 11:40:01 +09:00
//var flag = (bool)buyItem["Flag"];
if (interval < MCandleTimeType.H1)
{
2025-05-23 12:44:23 +09:00
var buyTime = ((DateTime)buyItem["BuyDate"]).AddMinutes(5);
if (nowTime < buyTime)
continue;
}
//임시로 처리
2024-11-26 22:02:59 +09:00
else
{
var buyTime = ((DateTime)buyItem["BuyDate"]).AddHours((int)interval / 60);
if (nowTime < buyTime)
continue;
}
2025-05-23 12:44:23 +09:00
if (sMABandConditionSetup.Calculate(candleDatas_5_TempList, SMABandType.LongSell))
{
double.TryParse(buyItem["Price"].ToString(), out var buyPrice);
var resultRate = ((price - buyPrice) / buyPrice) * 100;
2025-05-13 12:53:36 +09:00
BuyLongStep[market] = 0;
var result = new Dictionary<string, object>()
{
{ "MarketName", market },
{ "BuyDate", buyItem["BuyDate"]},
{ "Type", "상향"},
{ "BuyPrice", buyPrice },
{ "MCandleTimeType", (int)interval },
{ "BuyCandle", buyItem["Candle"] },
{ "SellDate", nowTime},
{ "SellPrice", price },
2025-05-23 12:44:23 +09:00
{ "SellCandle", candleData_5 },
{ "Rate", resultRate }
};
UpResultList.Add(result);
UpBuyList.Remove(market);
SellLongStep.Remove(market);
var orderDic = BuyLongList.FirstOrDefault(t => t["MarketName"].ToString() == market);
if (orderDic != null)
{
double.TryParse(orderDic["Size"].ToString(), out var size);
var sellOrder = FutureOrder(market, FutureMarginMode.isolated, size, 0, FutureSide.SellLong, OrderType.market, YHKIM_Leverage, orderDic["orderId"].ToString());
2024-11-13 13:39:41 +09:00
if (sellOrder != null)
{
var sellOrderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(sellOrder["data"]));
}
else
{
Log.Error("Sell 안됨 확인 필요");
}
double.TryParse(orderDic["Price"].ToString(), out var buyPriceValue);
//var detail = GetFutureOrderDetail(market, sellOrderDic["orderId"]);
//var detailOrderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(detail["data"]));
2025-04-07 14:42:37 +09:00
//double.TryParse(detailOrderDic["price"].ToString(), out var sellPriceValue);
2025-04-07 14:42:37 +09:00
var resultRateData = ((price - buyPriceValue) / buyPriceValue) * 100;
2025-04-07 14:42:37 +09:00
var orderResult = new Dictionary<string, object>()
2024-11-13 13:39:41 +09:00
{
{ "MarketName", market },
{ "BuyDate", orderDic["BuyDate"]},
{ "BuyPrice", orderDic["Price"] },
2024-11-13 13:39:41 +09:00
{ "Type", "상향"},
{ "MCandleTimeType", (int)interval },
{ "BuyCandle", buyItem["Candle"] },
{ "SellDate", nowTime},
{ "SellPrice", price},
2025-05-23 12:44:23 +09:00
{ "SellCandle", candleData_5 },
{ "Rate", resultRateData }
2024-11-13 13:39:41 +09:00
};
ResultList.Add(orderResult);
BuyLongList.Remove(orderDic);
LongCount--;
2024-11-13 13:39:41 +09:00
}
}
2025-01-31 12:05:21 +09:00
2024-11-13 13:39:41 +09:00
}
}
catch (Exception e)
{
2024-11-13 13:39:41 +09:00
}
}
if (영호조건식_하향돌파)
{
2025-05-23 12:44:23 +09:00
var price = candleData_5.Close;
var rate = (candleData_5.Close / candleData_5.Open) * 100 - 100;
var indicatorPrice = candleData_5.Open;
var indicatorRate = (candleData_5.Close / indicatorPrice) * 100 - 100;
2024-11-13 13:39:41 +09:00
var description = string.Format("{0} 72,24,4 하락", strInterval);
var signalData = signals_SD.Find(i => i.MarketName.Equals(market) && i.Description.Equals(description));
try
2024-11-13 13:39:41 +09:00
{
//사는 시점
if (!DownBuyList.ContainsKey(market))
2024-11-26 11:53:19 +09:00
{
if (sMABandConditionSetup.Calculate(candleDatas_5_TempList, SMABandType.ShortBuy) &&
!sMABandConditionSetup.Calculate(candleDatas_5_TempList, SMABandType.ShortSell))
{
2025-05-13 12:53:36 +09:00
BuyShortStep[market] = 0;
// 없으면 생성
if (signalData == null)
{
SignalInfoData signalInfoData = new SignalInfoData();
signalInfoData.SignalStart = nowTime;
signalInfoData.MarketName = market;
signalInfoData.Description = description;
signalInfoData.Rate = rate;
signalInfoData.Price = price;
signalInfoData.IndicatorPrice = indicatorPrice;
signalInfoData.IndicatorRate = indicatorRate;
signalInfoData.MCandleTimeType = interval;
signals_SD.Add(signalInfoData);
}
var buyDic = new Dictionary<string, object>
{
{ "MarketName", market },
{ "BuyDate", nowTime },
2025-05-23 11:03:30 +09:00
{ "Price", price },
{ "MCandleTimeType", (int)interval },
2025-05-23 12:44:23 +09:00
{ "CandleTime", candleData_5.Argument },
{ "Candle", candleData_5 }
};
DownBuyList.Add(market, buyDic);
var dic = new Dictionary<int, bool>
{
[1] = true,
[2] = false,
[3] = false,
[4] = false,
[5] = false
};
SellShortStep.Add(market, dic);
if (ShortCount < 5)
{
double size = YHKIM_OrderAmount / price * YHKIM_Leverage;
var orderData = FutureOrder(market, FutureMarginMode.isolated, size, price, FutureSide.BuyShort, OrderType.limit, YHKIM_Leverage);
if (orderData != null)
{
var orderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(orderData["data"]));
2025-01-31 12:05:21 +09:00
var orderDataDic = new Dictionary<string, object>
{
{ "MarketName", market },
{ "BuyDate", nowTime },
{ "Price", price },
{ "MCandleTimeType", (int)interval },
2025-05-23 12:44:23 +09:00
{ "Candle", candleData_5 },
{ "Size", size },
{ "orderId", orderDic["orderId"] }
};
BuyShortList.Add(orderDataDic);
ShortCount++;
}
2025-02-21 12:42:36 +09:00
}
2024-11-26 22:02:59 +09:00
}
}
//파는 시점
else
{
var buyItem = DownBuyList[market];
2025-05-27 13:13:16 +09:00
//var flag = (bool)buyItem["Flag"];
if (interval < MCandleTimeType.H1)
{
2025-05-23 12:44:23 +09:00
var buyTime = ((DateTime)buyItem["BuyDate"]).AddMinutes(5);
if (nowTime < buyTime)
continue;
}
//임시로 처리
2024-11-26 22:02:59 +09:00
else
{
var buyTime = ((DateTime)buyItem["BuyDate"]).AddHours((int)interval / 60);
if (nowTime < buyTime)
continue;
}
2025-05-23 11:03:30 +09:00
2025-05-23 12:44:23 +09:00
if (sMABandConditionSetup.Calculate(candleDatas_5_TempList, SMABandType.ShortSell))
{
2025-05-13 12:53:36 +09:00
BuyShortStep[market] = 0;
double.TryParse(buyItem["Price"].ToString(), out var buyPrice);
var resultRate = ((price - buyPrice) / buyPrice) * 100;
2024-11-13 13:39:41 +09:00
var result = new Dictionary<string, object>()
2025-04-07 14:42:37 +09:00
{
{ "MarketName", market },
{ "BuyDate", buyItem["BuyDate"]},
{ "BuyPrice", buyPrice },
{ "Type", "하향"},
{ "MCandleTimeType", (int)interval },
{ "BuyCandle", buyItem["Candle"] },
{ "SellDate", nowTime},
{ "SellPrice", price },
2025-05-23 12:44:23 +09:00
{ "SellCandle", candleData_5 },
{ "Rate", resultRate }
};
DownResultList.Add(result);
DownBuyList.Remove(market);
SellShortStep.Remove(market);
var orderDic = BuyShortList.FirstOrDefault(t => t["MarketName"].ToString() == market);
if (orderDic != null)
{
double.TryParse(orderDic["Size"].ToString(), out var size);
var sellOrder = FutureOrder(market, FutureMarginMode.isolated, size, 0, FutureSide.SellShort, OrderType.market, YHKIM_Leverage, orderDic["orderId"].ToString());
2024-11-13 13:39:41 +09:00
if (sellOrder != null)
{
var sellOrderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(sellOrder["data"]));
}
else
{
Log.Error("Sell 안됨 확인 필요");
}
double.TryParse(orderDic["Price"].ToString(), out var buyPriceValue);
//var detail = GetFutureOrderDetail(market, sellOrderDic["orderId"]);
//var detailOrderDic = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(detail["data"]));
2024-11-13 13:39:41 +09:00
//double.TryParse(detailOrderDic["price"].ToString(), out var sellPriceValue);
2024-11-13 13:39:41 +09:00
var resultRateData = ((price - buyPriceValue) / buyPriceValue) * 100;
2024-11-13 13:39:41 +09:00
var orderResult = new Dictionary<string, object>()
2024-11-13 13:39:41 +09:00
{
{ "MarketName", market },
{ "BuyDate", orderDic["BuyDate"]},
{ "BuyPrice", orderDic["Price"] },
2024-11-13 13:39:41 +09:00
{ "Type", "하향"},
{ "MCandleTimeType", (int)interval },
{ "BuyCandle", buyItem["Candle"] },
{ "SellDate", nowTime},
{ "SellPrice", price },
2025-05-23 12:44:23 +09:00
{ "SellCandle", candleData_5 },
{ "Rate", resultRateData }
2024-11-13 13:39:41 +09:00
};
ResultList.Add(orderResult);
BuyShortList.Remove(orderDic);
ShortCount--;
2024-11-13 13:39:41 +09:00
}
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
2024-11-13 13:39:41 +09:00
}
}
}
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
2024-11-26 22:02:59 +09:00
}
2024-11-13 13:39:41 +09:00
public bool Calculate전고점(string market, string strInterval, MCandleTimeType type, double 전봉, double 전전봉, double 전전전봉, CandleData candleData)
{
var 저고점 = 전저고점[market + strInterval];
//전저가
if (전봉 > 전전봉 && 전전봉 < 전전전봉 && 저고점["tempHighVal"] >= 저고점["tempLowVal"] &&
2025-02-21 13:55:44 +09:00
저고점["tempLowVal"] != ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() &&
((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() - 저고점["tempHighVal"] >= 120 * (int)type)
{
저고점["tempLow4Val"] = 저고점["tempLowVal"];
저고점["tempLowVal"] = 저고점["tempLow2Val"];
저고점["tempLow2Val"] = 저고점["tempLowVal"];
2025-01-31 12:05:21 +09:00
저고점["tempLowVal"] = ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds();
저고점["switchLowVal"] = 저고점["전전전전저가"];
저고점["전전전전저가"] = 저고점["전전저가"];
저고점["전전전저가"] = 저고점["전전저가"];
저고점["전전저가"] = 저고점["전저가"];
저고점["전저가"] = 전전봉;
2025-02-21 13:55:44 +09:00
저고점["Type"] = 0;
}
else if (전봉 > 전전봉 && 전전봉 < 전전전봉 && 저고점["tempHighVal"] < 저고점["tempLowVal"] &&
저고점["tempLowVal"] != ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() &&
((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() - 저고점["tempHighVal"] >= 120 * (int)type)
{
if (저고점["전저가"] > 전전봉)
{
저고점["tempLowVal"] = ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds();
저고점["전저가"] = 전전봉;
2025-04-07 14:42:37 +09:00
}
저고점["Type"] = 0;
}
else if (전봉 > 전전봉 && 전전봉 < 전전전봉 &&
2025-02-21 13:55:44 +09:00
저고점["tempLowVal"] != ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() &&
((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() - 저고점["tempHighVal"] < 120 * (int)type)
{
2025-02-21 13:55:44 +09:00
//이전으로 초기화 작업(High)
저고점["전고가"] = 저고점["전전고가"];
저고점["전전고가"] = 저고점["전전전고가"];
저고점["전전전고가"] = 저고점["전전전전고가"];
저고점["Type"] = 0;
저고점["전전전전고가"] = 저고점["switchLowVal"];
저고점["tempHighVal"] = 저고점["tempHigh2Val"];
저고점["tempHigh2Val"] = 저고점["tempHighVal"];
저고점["tempHighVal"] = 저고점["tempHigh4Val"];
2025-02-21 13:55:44 +09:00
if (저고점["전저가"] > 전전봉)
저고점["전저가"] = 전전봉;
}
//전고가
if (전전봉 > 전봉 && 전전봉 > 전전전봉 && 저고점["tempHighVal"] <= 저고점["tempLowVal"] &&
2025-02-21 13:55:44 +09:00
저고점["tempHighVal"] != ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() &&
((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() - 저고점["tempLowVal"] >= 120 * (int)type)
{
저고점["tempHigh4Val"] = 저고점["tempHighVal"];
저고점["tempHighVal"] = 저고점["tempHigh2Val"];
저고점["tempHigh2Val"] = 저고점["tempHighVal"];
2025-01-31 12:05:21 +09:00
저고점["tempHighVal"] = ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds();
저고점["switchHighVal"] = 저고점["전전전전고가"];
저고점["전전전전고가"] = 저고점["전전전고가"];
저고점["전전전고가"] = 저고점["전전고가"];
저고점["전전고가"] = 저고점["전고가"];
2025-02-21 13:55:44 +09:00
저고점["Type"] = 1;
저고점["전고가"] = 전전봉;
2025-02-21 13:55:44 +09:00
}
else if (전전봉 > 전봉 && 전전봉 > 전전전봉 && 저고점["tempHighVal"] > 저고점["tempLowVal"] &&
저고점["tempHighVal"] != ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() &&
((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() - 저고점["tempLowVal"] >= 120 * (int)type)
{
if (저고점["전고가"] < 전전봉)
{
저고점["tempHighVal"] = ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds();
저고점["전고가"] = 전전봉;
}
}
else if (전전봉 > 전봉 && 전전봉 > 전전전봉 &&
2025-02-21 13:55:44 +09:00
저고점["tempHighVal"] != ((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() &&
((DateTimeOffset)candleData.Argument).ToUnixTimeSeconds() - 저고점["tempLowVal"] < 120 * (int)type)
{
//이전으로 초기화 작업(Low)
저고점["전저가"] = 저고점["전전저가"];
저고점["전전저가"] = 저고점["전전전저가"];
저고점["전전전저가"] = 저고점["전전전전저가"];
저고점["전전전전저가"] = 저고점["switchHighVal"];
저고점["Type"] = 1;
저고점["tempLowVal"] = 저고점["tempLow2Val"];
저고점["tempLow2Val"] = 저고점["tempLowVal"];
저고점["tempLowVal"] = 저고점["tempLow4Val"];
2025-02-21 13:55:44 +09:00
if (저고점["전고가"] < 전전봉)
저고점["전고가"] = 전전봉;
2025-02-21 13:55:44 +09:00
}
if (저고점["전전전저가"] == 0 || 저고점["전전전고가"] == 0)
return false;
return true;
}
2024-11-13 13:39:41 +09:00
public Dictionary<string, object> GetPendingOrders()
{
var timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var reqStr = "/api/v2/mix/order/orders-pending";
var nvc = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "GET", reqStr, "productType=USDT-FUTURES", null, YHKIM_SecreteKey) },
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP",timestamp}
};
return (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetPendingOrder_Future, BitgetURL_PendingOrders_Future, null, MCandleTimeType.M1, "", "", nvc);
}
public long GetTimeStamp()
{
var result = (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetGetTimeStamp, BitgetURL_GetTimestamp, null, MCandleTimeType.M1, "", "", null);
if (result == null)
{
return 0;
}
var data = JsonConvert.DeserializeObject<Dictionary<string, object>>(JsonConvert.SerializeObject(result["data"]));
long.TryParse(data["serverTime"].ToString(), out var returnData);
return returnData;
}
2024-11-13 13:39:41 +09:00
public List<Dictionary<string, object>> GetFutureAccountList()
{
2024-11-26 22:02:59 +09:00
2024-11-13 13:39:41 +09:00
var timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var reqStr = "/api/v2/mix/account/accounts";
var nvc = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "GET", reqStr, "productType=USDT-FUTURES", null, YHKIM_SecreteKey) },
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP",timestamp}
};
return (List<Dictionary<string, object>>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetAccountList_Future, BitgetURL_AccountList_Future, null, MCandleTimeType.M1, "", "", nvc);
}
public Dictionary<string, object> CancelFutureOrder(string symbol, string orderId)
{
2024-11-26 22:02:59 +09:00
2024-11-13 13:39:41 +09:00
var timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var reqStr = "/api/v2/mix/order/cancel-order";
var postStr = "{\"symbol\" : \"" + symbol + "\", \"orderId\" : \"" + orderId + "\", \"productType\" : \"usdt-futures\" , \"marginCoin\" : \"USDT\"}";
var nvc = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "POST", reqStr, "", postStr, YHKIM_SecreteKey)},
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP", timestamp}
};
return (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetCancelOrder_Future, BitgetURL_CancelOrder_Future, null, MCandleTimeType.M1, postStr, "", nvc);
}
public Dictionary<string, object> ChangeFuturePositionMode(FuturePositionMode mode)
{
2024-11-26 22:02:59 +09:00
2024-11-13 13:39:41 +09:00
var timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var reqStr = "/api/v2/mix/account/set-position-mode";
var postStr = "{\"productType\" : \"USDT-FUTURES\", \"posMode\" : \"" + Utils.Convertor.GetEnumDescription((Enum)mode) + "\"}";
var nvc = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "POST", reqStr, "", postStr, YHKIM_SecreteKey)},
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP", timestamp}
};
return (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetChangePositionMode_Future, BitgetURL_ChangePositionMode_Future, null, MCandleTimeType.M1, postStr, "", nvc);
}
public Dictionary<string, object> GetFutureOrderDetail(string symbol, string orderId)
{
2024-11-26 22:02:59 +09:00
var timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
// sell은 ClientOID 가 필요
var orderDetailStr = "/api/v2/mix/order/detail";
timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var orderDetailnvc = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "GET", orderDetailStr, "symbol="+symbol.ToString()+"&orderId="+orderId.ToString()+"&productType=USDT-FUTURES", null, YHKIM_SecreteKey) },
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP",timestamp}
};
return (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetOrderDetail_Future, BitgetURL_OrderDetail_Future + "?symbol=" + symbol.ToString() + "&orderId=" + orderId.ToString() + "&productType=USDT-FUTURES", null, MCandleTimeType.M1, "", "", orderDetailnvc);
}
public Dictionary<string, object> FutureOrder(string symbol, FutureMarginMode marginMode, double size, double price, FutureSide futureSide, OrderType orderType, double leverage, string id = "")
{
var side = "";
var tradeSide = "";
if (futureSide == FutureSide.BuyShort)
{
id = Guid.NewGuid().ToString();
side = "sell";
tradeSide = "open";
}
else if (futureSide == FutureSide.BuyLong)
{
id = Guid.NewGuid().ToString();
side = "buy";
tradeSide = "Open";
}
else if (futureSide == FutureSide.SellShort)
{
side = "sell";
tradeSide = "close";
}
else if (futureSide == FutureSide.SellLong)
{
side = "buy";
tradeSide = "close";
}
if (orderType == OrderType.market)
price = 0;
2024-11-26 22:02:59 +09:00
2024-11-13 13:39:41 +09:00
var timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var reqStr = "/api/v2/mix/order/place-order";
if (futureSide == FutureSide.BuyShort || futureSide == FutureSide.BuyLong)
{
//change margin mode 이후 leverage 처리 해야 함
var changeMarginModeStr = "{\"symbol\": \"" + symbol + "\", \"productType\": \"usdt-futures\", \"marginCoin\": \"USDT\", \"marginMode\": \"" + Utils.Convertor.GetEnumDescription((Enum)marginMode) + "\"}";
var nvcMargin = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "POST", "/api/v2/mix/account/set-margin-mode", "", changeMarginModeStr, YHKIM_SecreteKey)},
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP", timestamp}
};
var result = (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetChangeMarginMode_Future, BitgetURL_ChangeMarginMode_Future, null, MCandleTimeType.M1, changeMarginModeStr, "", nvcMargin);
if (result == null || result["msg"]?.ToString() != "success")
{
return null;
}
var leverageStr = "{\"symbol\": \"" + symbol + "\", \"productType\": \"USDT-FUTURES\", \"marginCoin\": \"USDT\", \"leverage\": \"" + leverage.ToString() + "\", \"holdSide\": \"" + (futureSide == FutureSide.BuyShort ? "short" : "long") + "\"}";
timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var nvcLeverage = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "POST", "/api/v2/mix/account/set-leverage", "", leverageStr, YHKIM_SecreteKey)},
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP", timestamp}
};
result = (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetChangeLeverage_Future, BitgetURL_ChangeLeverage_Future, null, MCandleTimeType.M1, leverageStr, "", nvcLeverage);
if (result == null || result["msg"]?.ToString() != "success")
2024-11-13 13:39:41 +09:00
{
return null;
}
}
else
{
2024-11-13 13:39:41 +09:00
var result = CancelFutureOrder(symbol, id);
if (result == null || result["msg"]?.ToString() != "success")
{
Log.Error("Sell에서 Cancel관련 Error");
}
}
var postStr = "{\"symbol\": \"" + symbol + "\", \"productType\": \"usdt-futures\", \"marginMode\": \"" + Utils.Convertor.GetEnumDescription((Enum)marginMode) + "\", \"marginCoin\": \"USDT\", \"size\": \""
+ size.ToString() + "\", \"price\": \"" + price.ToString() + "\", \"side\": \"" + side + "\", " + "\"tradeSide\": \"" + tradeSide + "\", \"orderType\": \"" + Utils.Convertor.GetEnumDescription((Enum)orderType)
+ "\", \"force\": \"gtc\", \"clientOid\": \"" + id + "\" }";
timestamp = GetTimeStamp().ToString();
2024-11-13 13:39:41 +09:00
var nvc = new NameValueCollection {
{"ACCESS-KEY", YHKIM_AccessKey},
{"ACCESS-SIGN", GenerateSignString(timestamp, "POST", reqStr, "", postStr, YHKIM_SecreteKey)},
{"ACCESS-PASSPHRASE", YHKIM_PassphraseKey },
{"ACCESS-TIMESTAMP", timestamp}
};
return (Dictionary<string, object>)WebConnection.SendWebServer(ExchangeWebReqType.BitgetOrder_Future, BitgetURL_BuySellOrder_Future, null, MCandleTimeType.M1, postStr, "", nvc);
}
public string GenerateSignString(string timestamp, string method, string requestPath, string queryString, string body, string secretKey)
{
method = method.ToUpper();
body = body == null ? "" : body;
queryString = string.IsNullOrWhiteSpace(queryString) ? "" : "?" + queryString;
string preHash = timestamp + method + requestPath + queryString + body;
var encSecretKey_byteData = System.Text.Encoding.UTF8.GetBytes(secretKey);
var encPreHash_byteData = System.Text.Encoding.UTF8.GetBytes(preHash);
2024-08-19 10:44:43 +09:00
2024-11-13 13:39:41 +09:00
return Convert.ToBase64String(new HMACSHA256(encSecretKey_byteData).ComputeHash(encPreHash_byteData));
}
2024-11-13 13:39:41 +09:00
public void calIchimokuProcess_Add()
{
2024-06-14 19:18:54 +09:00
2024-11-13 13:39:41 +09:00
}
2024-06-14 19:18:54 +09:00
2024-11-13 13:39:41 +09:00
public void calIchimokuProcess_Update()
{
2024-06-14 19:18:54 +09:00
2024-11-13 13:39:41 +09:00
}
}
}