예외처리 코드 추가
This commit is contained in:
@@ -422,6 +422,7 @@ namespace Million_Buyer
|
||||
{
|
||||
if (overlapBuyManagementList[item])
|
||||
{
|
||||
InsertLog("Insert Buy Logic");
|
||||
if (!RealTimeMode)
|
||||
{
|
||||
if (buyCycleCount >= cycleCount)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user