Periodic OHLHere 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!
OHL
OHL Screener by KiranScript is intended to scan Open = High and Open = Low (OHL) stocks for selected Opening Range in minutes.
I have added NSE NIFTY 50 stocks as default input for the script. Hopefully it will work with other stocks and exchanges.
Opening Range time is limited to the "1 min, 3 min, 5 min, 15 min, 30 min and 60 min" as OHL generally required for Intraday.
Stock qualified criteria OPEN = LOW (in selected Opening Range timeframe) will be listed in the table at TOP RIGHT corner of the chart screen in a green background.
Stock qualified criteria OPEN = HIGH (in selected Opening Range timeframe) will be listed in the table at BOTTOM LEFT corner of the chart screen in a red background.
Script scans stocks irrespective of current chart symbol and current time frame on the chart.
Limitations:
- Maximum 40 stocks can be scanned.
- request.security can't be placed under loop hence repeat call to request.security should be placed on separate line
Yearly OHLplots Yearly Open, High, Low levels
Interesting interactions to note at previous yearly opens