Summary:
Motivation:
Implementation:
DailyStratBarType is 1 if the current day's low and high are within the previous day's DailyStratBarType is 3 if the current day's low is lower than yesterday AND the current day's high is higher as well DailyStratBarType is 2 if either the current day's low is lower than yesterday's OR the current day's high is higher than yesterday's (but not both) To designate this, I used a nested IF formula: =IF(AND(J4>G3,L4<H3),1,IF(AND(J4<G3,L4>H3),3,2)) Lastly, I needed to collect the ticker symbols of the stocks that have been flagged 1 (or 3, separately). This can be done with a Pivot Table, which lets me:
Notes:
0 Comments
Leave a Reply. |