Chart label showing name of current day


0
0

Hi Pete,

Is there a way to display a label on chart indicating a name of the day?

Thanks

RESOLVED
Marked as spam
Posted by (Questions: 49, Answers: 62)
Asked on October 27, 2019 5:35 pm
49 views
0
So what you are asking for here is a chart study to display a label on the chart that shows the name of the current day? Please make sure to post in the correct topic. This does not belong in the "Alerts and Notifications" topic. So I will move this to the "Chart Studies" topic before posting my solution tomorrow morning. I will also adjust the title of the question to "Chart label showing name of current day".
( at October 27, 2019 5:47 pm)
0
Private answer

def dayOfWeek = GetDayOfWeek(GetYYYYMMDD());
AddLabel(yes, if dayOfWeek == 1 then "Monday" else if dayOfWeek == 2 then "Tuesday" else if dayOfWeek == 3 then "Wednesday" else if dayOfWeek == 4 then "Thursday" else if dayOfWeek == 5 then "Friday" else " ", Color.WHITE);

Marked as spam
Posted by (Questions: 37, Answers: 4086)
Answered on October 28, 2019 1:17 pm
0
Thank you Pete.
( at October 28, 2019 1:23 pm)
0
I am sorry for not explaining properly in the beginning what I was looking for. I am looking for to see the name of the day changes as per the date as we scroll back on the chart instead of just the current day.
( at November 9, 2019 10:25 pm)