Chart Date Separator Style

Tom62

New member
Is there a script that will change the color and line width of the date divider line in charts? Right now, they are red and thin to the point I can't read the date. I have looked through the TOS GUI and there does not appear to be a means to change it there, so I am hoping there is a
script that will.

I really appreciate any advice.
 
Solution
As @rad14733 pointed out; not sure what DATE or time separator that you are using
or that you want to delineate.

Here is a simple script that will provide a vertical for each trading session
Adjust the times and color to fit your needs

Ruby:
input openingTime = 1600;
input closingTime = 0930;

def sec1    = SecondsFromTime(openingTime);
def sec2    = SecondsFromTime(closingTime);
def isTime1 = (sec1 >= 0 and sec1[1] < 0) or (sec1 < sec1[1] and sec1 >= 0);
def isTime2 = (sec2 >= 0 and sec2[1] < 0) or (sec2 < sec2[1] and sec2 >= 0);


DefineGlobalColor("base03", color.yellow) ;    #dark

input ShowVertical = yes ;
addverticalLine(!IsNaN(close) and ShowVertical and isTime1, close,GlobalColor("base03"));
@Tom2 Do you have an image of this line in question on a Chart because I am not aware of any system generated thin red line at date change on Charts...??? Are you sure this isn't an indicator generated red line...???
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

As @rad14733 pointed out; not sure what DATE or time separator that you are using
or that you want to delineate.

Here is a simple script that will provide a vertical for each trading session
Adjust the times and color to fit your needs

Ruby:
input openingTime = 1600;
input closingTime = 0930;

def sec1    = SecondsFromTime(openingTime);
def sec2    = SecondsFromTime(closingTime);
def isTime1 = (sec1 >= 0 and sec1[1] < 0) or (sec1 < sec1[1] and sec1 >= 0);
def isTime2 = (sec2 >= 0 and sec2[1] < 0) or (sec2 < sec2[1] and sec2 >= 0);


DefineGlobalColor("base03", color.yellow) ;    #dark

input ShowVertical = yes ;
addverticalLine(!IsNaN(close) and ShowVertical and isTime1, close,GlobalColor("base03"));
 
Solution
Is there a script that will change the color and line width of the date divider line in charts? Right now, they are red and thin to the point I can't read the date. I have looked through the TOS GUI and there does not appear to be a means to change it there, so I am hoping there is a
script that will.

I really appreciate any advice.
Currently there is not a method/script to change the size/weight of both text and line weight of vertical date lines.
There is a manual method of using the Drawings > Drawing Tool > Time Level tool but that is laborious (i.e., duplicating the vertical line for start/end times for every period needed).
It does have the option of changing the color and line weight but not the text size:

1736469956891.png


Another method, if you are using Windows 10/11, is to use the Magnifier option but it does takes some practice:

https://support.microsoft.com/en-us...r-to-see-414948ba-8b1c-d3bd-8615-0e5e32204198

Another method, which is global (i.e., throughout the ToS platform):
Setup > Application Settings... > General > Look and feel > Font size:

1736476454035.png
 
Last edited:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
289 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top