Mark candle when first trading day of month is Mon


0
0

Hi Pete

Any chance to convert a similar study from TOS to Sierrachart using color bar alert based on condition

Mark candle when first trading day of Month is Friday or Monday

Thanks

Marked as spam
Posted by (Questions: 12, Answers: 1)
Asked on August 29, 2020 5:29 pm
65 views
0
Private answer

The following post demonstrates how to use a built-in study to color bars on the chart based on alert formulas:

https://www.hahn-tech.com/ans/color-bar-on-alert-condition/

Just skip the portions related to the other chart studies and focus on adding the study named "Color Bar Based On Alert Condition" to your chart. Then insert the following formula into the alert tab of that study as described in that post I just linked:

=AND(Month(BarDate) <> Month(BarDate[-1]), OR(WeekDay(BarDate) = 2, WeekDay(BarDate) = 6))

Marked as spam
Posted by (Questions: 37, Answers: 4086)
Answered on August 30, 2020 10:39 am
0
Could you also provide the syntax for First Friday of every month? Thank you
( at August 31, 2020 5:09 am)
0
That would be far more complicated and I'm not even sure it could be accomplished using this simple method. Probably requires a custom chart study. Way beyond the scope of what I can cover at no charge in the Q&A forum.
( at August 31, 2020 8:19 am)