OPEN-SOURCE SCRIPT
CleightyP BOS/SMA/MACD/VWAP

A structure-based breakout strategy that trades breaks of swing highs and lows (BOS/CHoCH). It enters on either intrabar or confirmed breaks, with options to take only longs, shorts, or both. Trades are filtered by trend and momentum using SMA slope alignment and optional slope divergence, along with VWAP context and a defined trading window. Stops can be set by percentage or based on the previous swing (with adjustable tightness), and targets use a fixed risk-reward. Built-in checks ensure SL/TP are always positioned correctly and avoid re-entering the same level.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.