OPEN-SOURCE SCRIPT
Updated

Breakout Scalper

23 801
first draft of a breakout scalper which uses a fast and slow window

sets up some entry stops and then a trailing exit stop. performs a manual close when going sideways.

Release Notes
uses the mid-range of two time periods to capture breakouts and close with trailing stop

uses a minimum cloud size to filter out periods of choppiness
Release Notes
add strategy.cancel for when the buy signal expires without an entry

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.