OmegaChartのソースコードの保守
Revisão | dc06f2a25a66ba7280b7b6293e15d9fb595bfeb6 (tree) |
---|---|
Hora | 2016-09-08 03:36:31 |
Autor | panacoran <panacoran@user...> |
Commiter | panacoran |
価格帯別出来高の設定で年足を指定できないのを直す
@@ -630,10 +630,11 @@ namespace Zanetti.Forms | ||
630 | 630 | pr.CreditLongAppearance.Pen.Update(_creditLongColorBox.Color, (ZPen.PenStyle)_creditLongStyleBox.SelectedIndex); |
631 | 631 | pr.CreditShortAppearance.Pen.Update(_creditShortColorBox.Color, (ZPen.PenStyle)_creditShortStyleBox.SelectedIndex); |
632 | 632 | |
633 | - pr.AccumulativeVolumePeriod.Update(new int[3] { | |
633 | + pr.AccumulativeVolumePeriod.Update(new int[] { | |
634 | 634 | Int32.Parse(_accumulativeVolumeBox[0].Text), |
635 | 635 | Int32.Parse(_accumulativeVolumeBox[1].Text), |
636 | - Int32.Parse(_accumulativeVolumeBox[2].Text)}); | |
636 | + Int32.Parse(_accumulativeVolumeBox[2].Text), | |
637 | + Int32.Parse(_accumulativeVolumeBox[3].Text)}); | |
637 | 638 | |
638 | 639 | CommandExec.ResetLayout(); |
639 | 640 | } |
@@ -18,7 +18,7 @@ namespace Zanetti.UI | ||
18 | 18 | { |
19 | 19 | internal class ChartFormatSpecificValue { |
20 | 20 | private int[] _data; |
21 | - private const int LENGTH = 3; | |
21 | + private const int LENGTH = 4; | |
22 | 22 | |
23 | 23 | public ChartFormatSpecificValue(int[] t) { |
24 | 24 | if(t.Length==LENGTH) |
@@ -504,7 +504,7 @@ namespace Zanetti.UI | ||
504 | 504 | _fushiRange = LoadInt(config, "fushi-range", 5); |
505 | 505 | _fontDirty = true; |
506 | 506 | |
507 | - _accumulativeVolumePeriod = new ChartFormatSpecificValue(LoadString(config, "accumulative-volume-period", "60,52,24")); | |
507 | + _accumulativeVolumePeriod = new ChartFormatSpecificValue(LoadString(config, "accumulative-volume-period", "60,52,24,10")); | |
508 | 508 | _oscillatorPreferences = new OscillatorPreference[OscillatorPreference.LENGTH]; |
509 | 509 | for(int i=0; i<_oscillatorPreferences.Length; i++) |
510 | 510 | _oscillatorPreferences[i] = new OscillatorPreference(LoadString(config, "oscillator-"+i, "none")); |