hunter 예외처리

This commit is contained in:
kyh
2022-11-28 16:38:12 +09:00
parent 5b609d34cd
commit a4afb09cd6
3 changed files with 13 additions and 8 deletions

View File

@@ -410,7 +410,7 @@ namespace Million_Buyer
this.BeginInvoke(new Action(delegate ()
{
InitManager.BuyerInit(cb_IncludeClearIndicator.Checked, overlapBuyManagementList, totalIndicatorList);
InitManager.SettingInit(cb_IncludeClearIndicator.Checked, overlapBuyManagementList, totalIndicatorList);
foreach (var item in buyList)
{
var recentlyData = item.CandleDataLists_Im[0];

View File

@@ -280,6 +280,9 @@ namespace Million
var startDate = _saveResultData.StartDateTime;
var endDate = _saveResultData.EndDateTime;
InitManager.SettingInit(true, null, totalIndicator);
//TODO 이전 조건보다 현재 조건이 더 높아야 한다는 조건 걸기
var upperMainIndicatorFlag = cb_UpperMainIndi.Checked;

View File

@@ -78,17 +78,19 @@ namespace Million.Manager
/// <param name="checkData"></param>
/// <param name="overlapBuyManagementList"></param>
/// <param name="totalIndicatorList"></param>
public static void BuyerInit(bool checkData, Dictionary<string, bool> overlapBuyManagementList, List<IndicatorCoditionSetup> totalIndicatorList)
public static void SettingInit(bool checkData, Dictionary<string, bool> overlapBuyManagementList, List<IndicatorCoditionSetup> totalIndicatorList)
{
var coinFullNameList = CommonProperty.selectedMarketOfPlaceList.Select(t => t.CoinFullName).ToList();
foreach (var item in coinFullNameList)
if (overlapBuyManagementList != null)
{
if (checkData)
overlapBuyManagementList[item] = false;
else
overlapBuyManagementList[item] = true;
foreach (var item in coinFullNameList)
{
if (checkData)
overlapBuyManagementList[item] = false;
else
overlapBuyManagementList[item] = true;
}
}
foreach (var item in totalIndicatorList)