Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
		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;
		}