I want to operate in continuos future market 6E using AddFuture method, but my system nevers operate. I know that continuos contract can't use for operate, I use the future.Mapped to operate. I manage the contracts in the following way:

def Initialize(self):
		...
		
        self.continuous_futureEC = self.AddFuture(
            ticker = Futures.Currencies.EUR,
            resolution = Resolution.Minute,
            market = "CME",
            extendedMarketHours = True,
            dataNormalizationMode = DataNormalizationMode.Raw,
            dataMappingMode = DataMappingMode.OpenInterest,
            contractDepthOffset = 0
        )


        self.continuous_futureEC.SetFilter(lambda future_filter_universe: future_filter_universe.StandardsOnly().FrontMonth())
        self.contract = None

def OnData(self, slice):
	if self.contract is None:
		self.contract = self.continuous_futureEC.Mapped
		if not self.ec.contract: return
	if slice.SymbolChangedEvents.ContainsKey(self.continuous_futureEC.Symbol) and self.continuous_futureEC.Mapped.SecurityType == SecurityType.Future:
		if self.Portfolio.Invested:
                self.Debug("Liquidamos posiciones")
                self.Liquidate(self.contract, tag="Cambio de vencimiento")
        self.contract = self.continuous_futureec.Mapped
   ...