melodicfish

Consolidation Box

melodicfish Updated   
This script aims to help identify sideways markets. Once price leaves the Box the market will usually start a trending phase. Users can set a percent range to detect markets moving sideways within the range.
Release Notes:
Added alerts to respond to a user request.
The script handles 4 alert conditions via use of the Any Alert() function you can choose in the menu to have alerts when price breaks out of box, when a new box is created or when a box is at the end and is finished updating.
Select the options you want to be alerted for in the settings menu and then set a tradingview alert for the script choose the Consolidation Box and Any Alert() function call as the condition of the alert.
I also exposed the top and bottom of the box as a char variable so you can set custom alerts for these values as well.
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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.

Want to use this script on a chart?