Esempio n. 1
0
 public BollingerModified BollingerModified(ISeries <double> input, double numStdDev, int period, TypeBBMA bollingerBandMA)
 {
     if (cacheBollingerModified != null)
     {
         for (int idx = 0; idx < cacheBollingerModified.Length; idx++)
         {
             if (cacheBollingerModified[idx] != null && cacheBollingerModified[idx].NumStdDev == numStdDev && cacheBollingerModified[idx].Period == period && cacheBollingerModified[idx].BollingerBandMA == bollingerBandMA && cacheBollingerModified[idx].EqualsInput(input))
             {
                 return(cacheBollingerModified[idx]);
             }
         }
     }
     return(CacheIndicator <BollingerModified>(new BollingerModified()
     {
         NumStdDev = numStdDev, Period = period, BollingerBandMA = bollingerBandMA
     }, input, ref cacheBollingerModified));
 }
Esempio n. 2
0
 public Indicators.BollingerModified BollingerModified(ISeries <double> input, double numStdDev, int period, TypeBBMA bollingerBandMA)
 {
     return(indicator.BollingerModified(input, numStdDev, period, bollingerBandMA));
 }
Esempio n. 3
0
 public BollingerModified BollingerModified(double numStdDev, int period, TypeBBMA bollingerBandMA)
 {
     return(BollingerModified(Input, numStdDev, period, bollingerBandMA));
 }