public IndicatorComp Clone()
{
IndicatorComp icomp = new IndicatorComp();
icomp.compName = compName;
icomp.dataType = dataType;
icomp.chartType = chartType;
icomp.chartColor = chartColor;
icomp.firstBar = firstBar;
icomp.prvs = prvs;
icomp.isDynInfo = isDynInfo;
icomp.posPriceDependence = posPriceDependence;
if (adValue != null)
{
icomp.adValue = new double[adValue.Length];
adValue.CopyTo(icomp.adValue, 0);
}
return icomp;
}