kraalarw 18 posts msg #160330 - Ignore kraalarw |
5/19/2023 4:29:43 PM
Hi, I would appreciate any help with creating stockfetcher code for weekly data. Specifically, I'm wanting the filter to find symbols where the Weekly High/Low range is above and below the MA(50) for the previous week, and also the current week.
Note: I'm not concerned about where the closing price for each week is in relation to the MA(50); only that the Weekly High is above the MA(50), and the Weekly Low is below the MA(50) for previous week and also the current week.
Here is my attempt at writing the code for these parameters:
weekly high 1 week ago >= weekly MA(50) 1 week ago
and weekly low 1 week ago <= weekly MA(50) 1 week ago
and weekly high of current week >= weekly MA(50)
and weekly low of current week <= weekly MA(50)
and price above 5
and volume above 500000
and chart-display is weekly
and chart-time is 80 weeks
and draw weekly MA(50)
and not ETF
Thank you in advance for any help with this.
|