Fractal Chaos Bands

I want to Buy when the last price is greater than the FCB High and Sell when the last price is less than the FCB Low.
Can someone let me know how to code this in Zerodha Pi?