public BollingerBandsPerCent BollingerBandsPerCent(ISeries <double> input, int displace, int length, double numDevDn, double numDevUp, BBPCTypeMA bollingerBandMA) { if (cacheBollingerBandsPerCent != null) { for (int idx = 0; idx < cacheBollingerBandsPerCent.Length; idx++) { if (cacheBollingerBandsPerCent[idx] != null && cacheBollingerBandsPerCent[idx].Displace == displace && cacheBollingerBandsPerCent[idx].Length == length && cacheBollingerBandsPerCent[idx].NumDevDn == numDevDn && cacheBollingerBandsPerCent[idx].NumDevUp == numDevUp && cacheBollingerBandsPerCent[idx].BollingerBandMA == bollingerBandMA && cacheBollingerBandsPerCent[idx].EqualsInput(input)) { return(cacheBollingerBandsPerCent[idx]); } } } return(CacheIndicator <BollingerBandsPerCent>(new BollingerBandsPerCent() { Displace = displace, Length = length, NumDevDn = numDevDn, NumDevUp = numDevUp, BollingerBandMA = bollingerBandMA }, input, ref cacheBollingerBandsPerCent)); }
public Indicators.BollingerBandsPerCent BollingerBandsPerCent(ISeries <double> input, int displace, int length, double numDevDn, double numDevUp, BBPCTypeMA bollingerBandMA) { return(indicator.BollingerBandsPerCent(input, displace, length, numDevDn, numDevUp, bollingerBandMA)); }
public BollingerBandsPerCent BollingerBandsPerCent(int displace, int length, double numDevDn, double numDevUp, BBPCTypeMA bollingerBandMA) { return(BollingerBandsPerCent(Input, displace, length, numDevDn, numDevUp, bollingerBandMA)); }