// bool handlingVolume = indicator.Series.TypeSafeIsProxyFor(this.Executor.Bars, DataSeriesProxyableFromBars.Volume) public virtual bool TypeSafeIsProxyFor(Bars bars, DataSeriesProxyableFromBars barField) { if (this is DataSeriesProxyBars == false) { return(false); } DataSeriesProxyBars proxy = this as DataSeriesProxyBars; if (proxy.IsProxyFor(bars, barField)) { return(true); } return(false); }
public void Initialize(HostPanelForIndicator panelNamedFolding) { this.HostPanelForIndicator = panelNamedFolding; this.closesProxyEffective_cached = null; this.barsEffective_cached = null; this.BuildParametersFromAttributes(); this.OwnValuesCalculated.Clear(); //this.OwnValuesCalculated.Description = this.Name; //appears after .BuildParametersFromAttributes(); this.OwnValuesCalculated.Description = this.NameWithParameters; }