/// <summary> /// ChartAreaを設定します。 /// </summary> /// <param name="mainChartArea">主ChartArea</param> /// <returns>使用する従ChartAreaの配列</returns> public override SubChartArea[] SetChartArea(MainChartArea mainChartArea) { SubChartArea subChartArea = new SubChartArea(); Series.ChartArea = subChartArea.Name; ChartArea = subChartArea; ChartArea.AxisY2.LabelStyle.Format = CandleUtility.GetPriceFormat(((AtrIndicatorEx)Properties).Digits); return(new SubChartArea[] { subChartArea }); }
/// <summary> /// 非同期で準備します。 /// </summary> /// <returns>非同期タスク</returns> public override async Task SetUpAsync() { await base.SetUpAsync(); Series.Color = ((AtrIndicatorEx)Properties).Color; if (ChartArea != null) { ChartArea.AxisY2.LabelStyle.Format = CandleUtility.GetPriceFormat(((AtrIndicatorEx)Properties).Digits); } }
/// <summary> /// 非同期で準備します。 /// </summary> /// <returns>非同期タスク</returns> public override async Task SetUpAsync() { MacdIndicatorEx properties = (MacdIndicatorEx)Properties; await base.SetUpAsync(); // 移動平均 Indicator.FastMaIndicator.Period = properties.FastMaIndicator.Period; Indicator.SlowMaIndicator.Period = properties.SlowMaIndicator.Period; // 色 Series[0].Color = properties.MacdColor; Series[1].Color = properties.SignalColor; SetOscillatorColors(); // 桁数 if (ChartArea != null) { ChartArea.AxisY2.LabelStyle.Format = CandleUtility.GetPriceFormat(properties.Digits); } }