Indicating Friday's on the chart?

R

RS Trader

New member
VIP
Is there a way to have all Friday's noted on a daily chart? For visually back testing a weekly strategy, I would like to see where all Friday's land on my charts. Thanks
 
P

Pensar

Active member
VIP
@RS Trader This should plot accurately on aggregations daily and lower.

Code:
def day = GetDayOfWeek(GetYYYYMMDD()) == 5;
AddVerticalLine(!day[1] and day, "Friday",color.yellow, curve.MEDIUM_DASH);
 
R

RS Trader

New member
VIP
Thanks @Pensar, I'll give it a try. Much appreciated.

Update: Works great Pensar, Thanks again.
 

Similar threads

Top