Hello,
Does anyone know how to add the time indicator to the current last candle? For example, if I set my chart to 1 Day 1 Min, I wanted to see the 1 min time count on the current active candle.
Thank you all
#Example Time_Gettime
#Sleepz 20210315
#Usethinkscript request
#Time Stamp based upon Gettime and RegularTradingStart. Choose timezone
input timezone = {default "ET", "CT", "MT", "PT"};
def starthour = (if timezone == timezone."ET"
then 9
else if timezone == timezone."CT"
then 8
else if timezone == timezone."MT"
then 7
else 6) ;
def hour =...
Hello,
Does anyone know how to add the time indicator to the current last candle? For example, if I set my chart to 1 Day 1 Min, I wanted to see the 1 min time count on the current active candle.
Thank you all
#Example Time_Gettime
#Sleepz 20210315
#Usethinkscript request
#Time Stamp based upon Gettime and RegularTradingStart. Choose timezone
input timezone = {default "ET", "CT", "MT", "PT"};
def starthour = (if timezone == timezone."ET"
then 9
else if timezone == timezone."CT"
then 8
else if timezone == timezone."MT"
then 7
else 6) ;
def hour = Floor(((starthour * 60 + 30) + (GetTime() - RegularTradingStart(GetYYYYMMDD())) / 60000) / 60);
def minutes = (GetTime() - RegularTradingStart(GetYYYYMMDD())) / 60000 - ((hour - starthour) * 60 + 30) + 60;
#Example : Bubble showing current time of last bar displayed
input showBubble_lastbar = yes;
AddChartBubble(showBubble_lastbar and IsNaN(close[-1]), low, hour + ":" + (if minutes < 10 then "0" else "") + minutes, Color.WHITE, no);
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
The script picks the time based upon the chart timeframe being viewed.Hi SleepyZ, I am trying to adjust to 1 min tracker, how do I update that script from you?
Sorry, but TOS does not allow us to break down a candle on a time chart below 1m.I am using 1 min chart, so I am looking for the countdown of 1 min to the current candle.
Thank you SleepyZ
is it possible to display bar time on candle chart?
Thank you,
-Kden
This does that
Code:#Example Time_Gettime #Sleepz 20210315 #Usethinkscript request #Time Stamp based upon Gettime and RegularTradingStart. Choose timezone input timezone = {default "ET", "CT", "MT", "PT"}; def starthour = (if timezone == timezone."ET" then 9 else if timezone == timezone."CT" then 8 else if timezone == timezone."MT" then 7 else 6) ; def hour = Floor(((starthour * 60 + 30) + (GetTime() - RegularTradingStart(GetYYYYMMDD())) / 60000) / 60); def minutes = (GetTime() - RegularTradingStart(GetYYYYMMDD())) / 60000 - ((hour - starthour) * 60 + 30) + 60; #Example : Bubble showing current time of last bar displayed input showBubble_lastbar = yes; AddChartBubble(showBubble_lastbar and IsNaN(close[-1]), low, hour + ":" + (if minutes < 10 then "0" else "") + minutes, Color.WHITE, no);
Start a new thread and receive assistance from our community.
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.
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.