"Daily Range with Filtre [Hunter_Algo]

- The script calculates the high and low ranges based on the specified session time, such as the Asia Liquidity session.

- It uses the timeinrange function to determine if the current bar is within the specified session.

- High and low values are updated based on whether the current high or low surpasses the previous values within the specified session.

- The script includes functions to convert day strings to integers and style strings to enumeration values.

- There are additional inputs related to the start and end of the day range, as well as colors and styles for various elements.

- The script calculates daily high (Dh), daily low (Dl), and other variables based on certain conditions, including the day of the week.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


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?