This script was written by Brobear and published. I only modified by adding buy and sell signal when price crossover fractal channel.
buy_breakout=crossover(close,fracLevelHigh) and OsMA[1]>OsMA[2] and emaRSI[1]>emaRSI[2] sell_breakout=crossunder(close,fracLevelLow) and OsMA[1]<OsMA[2] and emaRSI[1]<emaRSI[2]