Countdown to bar close in ThinkorSwim?

anycolour

Member
Hey guys. I've been using tick charts and I like that it tells you how many ticks have passed in the formation of a new 1k tick candle (you can count how many are left until a new candle forms). In the attached screenshot, it says 960, that means 960 trades/ticks have been made in that candle (meaning 40 remain to fully form that candle, and then a new candle will be formed with another 1k ticks/trades).

I want to do that with the 5m chart (time chart, not tick).
Is there an indicator that could tell me the remaining minutes and seconds until the formation of a new 5m candle? A countdown for the formation of 5 minute candles. Thank you!

bUTSDS9.jpg
 
Last edited by a moderator:

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
I don't think there is a timer for when the current bar is closing. However, you can use the clock at the top left-hand corner. That's what I've been using to check for the remaining time before the next candle starts forming.

c6ZJaF1.png
 

rmmorgan

New member
My screen is normally very full, and having something like this with the seconds would really help me out as a day trader. I know that you can see the time on the top left corner of the screen in TOS, but I don't use that window as I need to have other tabs or programs open. This script would be of immense help if possible!
 

rad14733

Well-known member
VIP
@rmmorgan Just a thought but have you considered a simple independent timer App that you could float anywhere on your screen... Might be easier and more accurate than code... TOS doesn't have any actual timer functions and due to that you would not get an accurate candle countdown timer painted onscreen... With an independent timer you could, for example, set it to cycle candle times... Once you see a new candle you'd click Start and then it would cycle every x minutes... Your time would probably be better served searching for such a timer than trying to code an accurate timer in Thinkscript... Timers for different timeframes might be somewhat problematic, however...

Just my two cents...
 

rmmorgan

New member
@rmmorgan Just a thought but have you considered a simple independent timer App that you could float anywhere on your screen... Might be easier and more accurate than code... TOS doesn't have any actual timer functions and due to that you would not get an accurate candle countdown timer painted onscreen... With an independent timer you could, for example, set it to cycle candle times... Once you see a new candle you'd click Start and then it would cycle every x minutes... Your time would probably be better served searching for such a timer than trying to code an accurate timer in Thinkscript... Timers for different timeframes might be somewhat problematic, however...

Just my two cents...
yeah of course I would use something like that, but I can't find any timer that doesn't get minimized if I click at the program behind it unfortunately
 

FreefallJM03

Member
VIP
Hey guys. I've been using tick charts and I like that it tells you how many ticks have passed in the formation of a new 1k tick candle (you can count how many are left until a new candle forms). In the attached screenshot, it says 960, that means 960 trades/ticks have been made in that candle (meaning 40 remain to fully form that candle, and then a new candle will be formed with another 1k ticks/trades).

I want to do that with the 5m chart (time chart, not tick).
Is there an indicator that could tell me the remaining minutes and seconds until the formation of a new 5m candle? A countdown for the formation of 5 minute candles. Thank you!

bUTSDS9.jpg
I just added seconds to the taskbar clock so it shows when the clock is about to strike the next full minute. As soon as the clock is about seconds out I get ready to enter the trade on the confirmation bar right before the closing bar closes or the confirmation bar opens. If the confirmation bar opens lower, you can choose to exit or stay in the trade. Works pretty good because I keep my task bar present on all screens. This keeps me from having to keep the main ToS window on screen if I want to keep a different chart or something up in its place. This link provides step by step instructions on how to change the settings on the Windows taskbar clock to include seconds: https://www.howtogeek.com/325096/how-to-make-windows-10s-taskbar-clock-display-seconds/
 

3AMBH

Active member
2019 Donor
VIP
HI, I am looking for a "count down" indicator that has a label in the corner that will show the minutes & seconds remaining in the candle. Example: At the start of a 5 minute candle the label would show 5 minute 0 seconds and count down from there. Thanks in advance
 

necktoppc

New member
Timer alert - might be helpful
Ruby:
input Interval_In_Minutes = 15;
def MinutesGoneBy = SecondsFromTime(15) / 60;
def IntervalPast = Round(((MinutesGoneBy / Interval_In_Minutes) / 100));
def IntervalGoneBy = if IntervalPast > IntervalPast[1] then 1 else 0;
Alert(IntervalGoneBy == 1, " ", Alert.BAR, Sound.Chimes);
 
Last edited by a moderator:

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.
Top