letailong

Time Vertical Line

letailong Uppdaterad   
This indicator is designed to plot vertical lines at specified hourly intervals on a trading chart. The indicator includes default settings to draw vertical lines at every hour of the day and provides users with the flexibility to customize up to six additional vertical lines at specified times.

Traders can use the vertical lines to segment the trading day, making it easier to analyze market movements within specific hours.

Customizable lines allow traders to mark important times such as market openings, closings, and economic news releases.

This indicator is a powerful tool for traders who need to keep track of specific times and events during the trading day, providing a clear and customizable visual representation of time on their charts.

The indicator allows you to easily customize the appearance of the 24 default vertical lines that mark each hour of the day. You can change the color by adjusting the Color input, modify the transparency using the Transparency input, and set the line width with the Line Width input.

Each of custom lines can have its own color, transparency, and line width, giving you full control over their appearance. By default, these custom vertical lines are turned off. To activate them, go to the "Style" tab in the settings menu of the indicator.

The time for each vertical line is based on the exchange's timezone. You can set the time for each of the 6 custom vertical lines using decimal notation. For example:

Input 9.1 to display a vertical line at 9:10.
Input 9.15 to display a vertical line at 9:15.

The indicator should only be displayed in time frames less than 15 minutes. Go to "Visibility" in settings for options.
Versionsinformation:
Update Note:

Default Vertical Lines:
·Timeframe Threshold: Users can set a timeframe threshold in minutes. Vertical lines will be shown only if the chart's timeframe is less than this threshold.
·By default, the default vertical lines are only displayed on time frames less than 15 minutes.

Custom Vertical Lines:
·User-Defined Timeframe: A separate timeframe threshold for custom vertical lines.
·Custom Time Inputs: Up to six customizable times to plot vertical lines, with individual toggles to enable or disable each line.

Session Break Line:
·Like Custom Vertical Line, but it is completely separate from the 6 custom lines above
·The settings in TradingView also have Session Break, but they are displayed on time frames smaller than 1 day, which is sometimes quite annoying in H4 or H12. Users can select the Session Break display threshold
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?