예외처리 코드 추가

This commit is contained in:
kyh
2022-10-24 16:35:26 +09:00
parent eee97a9f50
commit 7a4aef7d33
3 changed files with 20 additions and 3 deletions

View File

@@ -422,6 +422,7 @@ namespace Million_Buyer
{
if (overlapBuyManagementList[item])
{
InsertLog("Insert Buy Logic");
if (!RealTimeMode)
{
if (buyCycleCount >= cycleCount)

View File

@@ -279,6 +279,7 @@
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>

View File

@@ -77,10 +77,25 @@ namespace Million.HunterSubForm.IndicatorSetupForm
// Indicator 정보 저장
public void SaveIndicatorSetup(object indicatorSetupData)
{
{
// 예외처리 필요
}
var bolingerBandSetup = (BolingerConditionSetup)indicatorSetupData;
// 지표 설정
bolingerBandSetup.IndicatorType = CommonProperty.IndicatorType.볼린저밴드;
// 지표 기본 값
bolingerBandSetup.Period = int.Parse(textEdit_Period.Text);
bolingerBandSetup.Squared = int.Parse(textEdit_Squared.Text);
// 지표 기준선
Enum.TryParse(checkedListBoxControl_Lines.Items.First(item => item.CheckState == CheckState.Checked).Value.ToString()
, out CommonProperty.Indicator_BolingerOverLine indicatorOverLine);
bolingerBandSetup.Indicator_BolingerOverLine = indicatorOverLine;
var description = string.Format("[{0},{1},{2}]", bolingerBandSetup.Period.ToString(),
bolingerBandSetup.Squared.ToString(), bolingerBandSetup.Indicator_BolingerOverLine.ToString());
bolingerBandSetup.Description = description + bolingerBandSetup.Description;
}
}
}