A breakout long signal is generated when the current high crosses above the previous mother bar's high, and it's an inside bar.
A breakdown short signal is generated when the current low crosses below the previous mother bar's low, and it's an inside bar.
The script plots triangle shapes below breakout long signals and above breakdown short signals.
Alert conditions are added for inside bars, breakout long, and breakdown short.
Please note that this is a basic example, and you can further refine and optimize your strategy based on your specific trading rules and preferences. Always remember to backtest and paper trade any strategy before using it with real money.