Plotting Time Levels Code

ducati95

New member
Hello, long time lurker, but first post.

I'm looking for a code that can automatically plot time levels instead of doing it by hand. For example, if I wanted to plot 20-30 time levels on the same day I would have to put them on the chart and then manually edit each one. What the code could look like is you put the times you wanted in a section of the code (copy and pasted) separated by commas, and it would plot these time levels.

Any nudge in the right direction towards accomplishing this would be appreciated.
 
Hello, long time lurker, but first post.

I'm looking for a code that can automatically plot time levels instead of doing it by hand. For example, if I wanted to plot 20-30 time levels on the same day I would have to put them on the chart and then manually edit each one. What the code could look like is you put the times you wanted in a section of the code (copy and pasted) separated by commas, and it would plot these time levels.

Any nudge in the right direction towards accomplishing this would be appreciated.


no idea what a time level is.
can you describe what you want to see on a chart? vertical lines ?

this draws vertical lines at several times of the day
https://usethinkscript.com/threads/levels-tokyo-london-new-york.14520/page-3#post-74063
 
no idea what a time level is.
can you describe what you want to see on a chart? vertical lines ?

this draws vertical lines at several times of the day
https://usethinkscript.com/threads/levels-tokyo-london-new-york.14520/page-3#post-74063
That's pretty close to what I was looking for, but a lot simpler. Yes vertical lines, TOS calls them time levels in the add drawings option.

The code seems to plot vertical lines at specific times, but I was looking for a code that simply does this without anything else. And say you had 20-30 specific times you wanted to plot, you could just copy and paste the times into the code.

The above code:

# ranges of time est
input rng01_start = 0930;
input rng01_stop = 0935;

input rng02_start = 0950;
input rng02_stop = 1010;

input rng03_start = 1025;
input rng03_stop = 1035;

The code I had in mind:

"Plot vertical lines at following times"
8:35, 9:03, 10:04, 11:16....

Thanks for your response.
 

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
357 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