/// <summary> /// /// </summary> public IndicatorResults(Indicator indicator, string[] resultSetNames) { _signals = new double[0]; _actualResultSetStartingIndex = 0; foreach (string name in resultSetNames) { IndicatorResultSet set = new IndicatorResultSet(name, new double[0]); _resultSets.Add(set); } _indicator = indicator; }
public void Remove(Indicator indicator) { if (_indicators.Remove(indicator) && IndicatorRemovedEvent != null) { IndicatorRemovedEvent(this, indicator); } }
public void Add(Indicator indicator) { indicator.Calculate(); if (_indicators.Add(indicator) && IndicatorAddedEvent != null) { IndicatorAddedEvent(this, indicator); } }
void _session_IndicatorRemovedEvent(AnalyzerSession session, Indicator indicator) { foreach (ChartPane pane in chartControl.Panes) { foreach (ChartSeries series in pane.Series) { if (series is IndicatorChartSeries && ((IndicatorChartSeries)series).Indicator == indicator) { pane.Remove(series); if (pane.Series.Length == 0) { chartControl.RemoveSlavePane((SubChartPane)pane); } return; } } } }
void _session_IndicatorAddedEvent(AnalyzerSession session, Indicator indicator) { }
public void _indicator_IndicatorCalculatedEvent(Indicator indicator) { UpdateValues(); }