Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 public BollingerBandsPerCent BollingerBandsPerCent(int displace, int length, double numDevDn, double numDevUp, BBPCTypeMA bollingerBandMA)
 {
     return(BollingerBandsPerCent(Input, displace, length, numDevDn, numDevUp, bollingerBandMA));
 }