Monthly Bearish Seasonality


Category:
0
0

Hi Pete,
You have a bullish monthly seasonality scanner: January closing higher at least 75 percent of time – Hahn-Tech, LLC. Is it possible for a bearish one? If so, could you please add a lookback period?

Thanks again!

Marked as spam
Posted by (Questions: 8, Answers: 18)
Asked on February 16, 2024 2:43 pm
88 views
0
Private answer

I have no idea what a "lookback" period would be used for in something like this so I will just invert the solution you referenced in your question so that it computes the percentage of down months instead of the percentage of up months:

input threshold = 75.0;
input monthNumber = 1;
def targetMonth = GetMonth() == monthNumber;
def downBar = close < open; def markDownMonths = if targetMonth then downBar else 0;
rec countTargetMonths = if targetMonth then countTargetMonths[1] + 1 else countTargetMonths[1];
rec countDownMonths = if markDownMonths then countDownMonths[1] + 1 else countDownMonths[1];
def keyMetric = 100 * (countDownMonths / countTargetMonths); plot scan = keyMetric > threshold;

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 16, 2024 2:46 pm
0
Hi Pete! What if I only want to look back let's say five years?
( at February 16, 2024 2:57 pm)
0
Add a new study filter to your scan and insert the following line as the scan signal: plot scan = GetYear() >= 2019;
( at February 16, 2024 3:02 pm)
0
Thanks Pete! I made a voluntary contribution!
( at February 16, 2024 3:11 pm)