public Indicators.DMFXCOTFinFutNetPositions DMFXCOTFinFutNetPositions(ISeries <double> input, string accountKey, NinjaTrader.NinjaScript.Indicators.DMFXCOTFinFutNetPositions.ECOTFinCodes cOTCode, int weeksBack, string host)
 {
     return(indicator.DMFXCOTFinFutNetPositions(input, accountKey, cOTCode, weeksBack, host));
 }
 public DMFXCOTFinFutNetPositions DMFXCOTFinFutNetPositions(ISeries <double> input, string accountKey, NinjaTrader.NinjaScript.Indicators.DMFXCOTFinFutNetPositions.ECOTFinCodes cOTCode, int weeksBack, string host)
 {
     if (cacheDMFXCOTFinFutNetPositions != null)
     {
         for (int idx = 0; idx < cacheDMFXCOTFinFutNetPositions.Length; idx++)
         {
             if (cacheDMFXCOTFinFutNetPositions[idx] != null && cacheDMFXCOTFinFutNetPositions[idx].AccountKey == accountKey && cacheDMFXCOTFinFutNetPositions[idx].COTCode == cOTCode && cacheDMFXCOTFinFutNetPositions[idx].WeeksBack == weeksBack && cacheDMFXCOTFinFutNetPositions[idx].Host == host && cacheDMFXCOTFinFutNetPositions[idx].EqualsInput(input))
             {
                 return(cacheDMFXCOTFinFutNetPositions[idx]);
             }
         }
     }
     return(CacheIndicator <DMFXCOTFinFutNetPositions>(new DMFXCOTFinFutNetPositions()
     {
         AccountKey = accountKey, COTCode = cOTCode, WeeksBack = weeksBack, Host = host
     }, input, ref cacheDMFXCOTFinFutNetPositions));
 }