dg_factor

Periodic OHL

dg_factor Updated   
Here is another experience on working with 'time' variable :)

This script generates potential support and resistance levels based on daily, weekly, and monthly open, high, and low prices. In such indicators, security calls produce effective results. However, similar tasks can also be performed by built-in variables. This script serves as an example of how alternative methods can be constructed.

The originality of the indicator is based on its ability to visualise the current open, high and low prices from the bar at which they occur. You can also display levels simultaneously.

I hope it helps everyone...


DISCLAIMER
This is just an indicator, nothing more. It is provided for informational and educational purposes exclusively. The utilization of this script does not constitute professional or financial advice. The user solely bears the responsibility for risks associated with script usage. Do not forget to manage your risk. And trade as safely as possible. Best of luck!
Release Notes:
Some inconsistent results observed at high timeframes were fixed experimentally :)

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.

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?