@run-out said in How to Create Binary Switch Signal:

self.adxsignal = bt.If(self.cancel_adx, 0, self.adx)

I think I made a mistake ane the last item self.adx should be self.adxcross.