Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 23:58:26 +0000



[Programming Help] - How to draw 1st Friday of every Month

View Count: 568

[2020-08-31 12:03:21]
User786248 - Posts: 25
Using Alert bar condition study, how would I write code to display 1st Friday of every Month?

I tried this but getting syntax error

=AND(Month(BarDate) = 1, WeekDay(BarDate) = 6))

thank you
[2020-08-31 15:43:27]
Ackin - Posts: 1865
Try this:

=AND(WEEKDAY(BARDATE)=6,DAY(BARDATE)<8)

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account