public override string ActivateScript(CandleChartControl chart, PointD worldCoords)
        {
            this.chart = chart;
            var dlg = new CaymanDivergenceSetupDlg();

            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                return("");
            }
            skippedCandles = dlg.SkipCandles;
            checkedPrices  = dlg.CheckedPrices;
            removeOldSigns = dlg.RemoveOldSigns;
            return(BuildSeries());
        }
 public override string ActivateScript(CandleChartControl chart, PointD worldCoords)
 {
     this.chart = chart;
     var dlg = new CaymanDivergenceSetupDlg();
     if (dlg.ShowDialog() == DialogResult.Cancel) return "";
     skippedCandles = dlg.SkipCandles;
     checkedPrices = dlg.CheckedPrices;
     removeOldSigns = dlg.RemoveOldSigns;
     return BuildSeries();
 }