OPEN-SOURCE SCRIPT
Updated LZ Indicator

This indicator will trigger based on these conditions:
If the average price today is less than 50% of the past 4 days, the indicator will be triggered as 1 (true). Else, the indicator will trigger as 0 (false).
If the average price today is less than 50% of the past 4 days, the indicator will be triggered as 1 (true). Else, the indicator will trigger as 0 (false).
Release Notes
Update by adding indicator for past 30 candlesRelease Notes
Update to include:1. the inputs
2. line of maximum [open:close] of past X days
Release Notes
Update with the current studied chart.Release Notes
Update with the second equation of LZ indicatorlz = ((close[0] and close[1] and close[2]) > open[3]) ? 2 : 1
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.