OPEN-SOURCE SCRIPT

CleightyP BOS/SMA/MACD/VWAP

764
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.

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.