Yearly Monthly Vertical Lines [MsF]

Trader_Morry Updated   
This indicator that draws vertical lines for each year and month starting from the specified date and time.

For example, starting from August 26th, 2022,
The annual vertical lines are Aug 26th, 2022, Aug 26th, 2021, Aug 26th, 2020, Aug 26th, 2019, Aug 26th, 2018, Aug 26th, 2017...

It is useful to check the action of the chart at the event of each year and month.

Since there is a limit to the Bar-Count that can be specified in the script language, depending on the chart period setting It may not be displayed.





Release Notes:
Improved so that weekly and daily lines can also be drawn.
Enable "for Crypto" if you want to use it for cryptocurrencies.
It will be possible to draw a vertical line even on holidays.

なお、暗号通貨に使用する場合は「for Crypto」を有効にしてください。
Release Notes:
Changed the sample chart to make it easier to understand.

Release Notes:
-Improved so that you can select the day of the week when drawing lines for each day of the week.
-Fixed a bug that less drawing lines were drawn.


Release Notes:
Updated this indicator, Please check below:
- Increase number of visible vertical lines
- Show "day of the week" at the bottom if you select "day"
Release Notes:
Hide daily vertical lines if for over 4 hours - for clean view
Release Notes:
Removed Crypto selection. Improved to automatically switch to Crypto.
Release Notes:
Added each open lines Yearly, Monthly, Weekly, and Daily. It's optional.
Release Notes:
Bug fixed. The weekly, daily open were not sync with the time.

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?