Stage Analysis Forum - Trading & Investing using Stan Weinstein's Stocks Breakout method
Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - Printable Version

+- Stage Analysis Forum - Trading & Investing using Stan Weinstein's Stocks Breakout method (https://www.stageanalysis.net/forum)
+-- Forum: Main Board (https://www.stageanalysis.net/forum/Forum-Main-Board)
+--- Forum: Stan Weinstein's Stage Analysis - Stock Charts, Technical Analysis, Learn to Trade, Stocks, ETF, NYSE, Nasdaq (https://www.stageanalysis.net/forum/Forum-Stan-Weinstein-s-Stage-Analysis-Stock-Charts-Technical-Analysis-Learn-to-Trade-Stocks-ETF-NYSE-Nasdaq)
+--- Thread: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis (/Thread-Stan-Weinstein-s-Stage-Analysis-and-Market-Breadth-Technical-Analysis)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - pcabc - 2020-03-15

Searching for warnings of the recent drop programatically

I've been looking at my breadth charts to see if there have been any hints that could be picked up on programmatically in the time preceding the recent drop.  The chart is really busy, too busy perhaps, as I've added SMAs to various curves and also indicator bars below each curve so I can see the status of the logic on whether there is potential danger.  Really this is work in progress, but the takeout for anyone who is interested is which parameters seem to be more useful as that may give pointers for anyone else digging into this.

There is a real danger here of trying to create a meta indicator that is so tuned for recent conditions that it is only relevent for this specific set of circumstances.

   

The chart has been annotated with black numbers.

1. This is my aggregate breadth position with black being DANGER.  On this timescale it looks like I could have given myself two weeks warning of the market move.  However, on a longer timescale there are things that might be false alarms.  This needs more work, it is not a magic bullet.

2. Comparison of % stocks above their 200 day EMAs, when compared to the 20 and 80 day SMA of this curve looks to be useful.

3. As above, but for the % stocks above their 50 day EMAs looks to be less useful as it gives a lot of flase alarms used on its own.  Here I am using the postion of the 10 day SMA to the 20 day SMA and the slope of the 20 day SMA as a warning.

4. New highs minus new lows does not appear to provide much of use.  I've averaged the new highs minus new lows to give an idea of direction, but it only confirms what is already happening.  The same appears true when comparing cumulative new highs minus new lows against its averages.

5.  I've not used the advance / decline line yet.  Spotting divergences is hard.  Comparing the A/D line against its moving averages only appears to confirm a move that is already happening.  Comparing it against a faster average such as a 20 day will create a lot of noise.  Perhaps I can do something with channels?  Or perhaps the relative strength between price and A/D?  Needs work.

6. Advancing / declining volume, comments against 5 apply.


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - pcabc - 2020-03-15

(2020-03-15, 10:04 PM)pcabc Wrote: Searching for warnings of the recent drop programatically

Ha.  I've missed my most important conclusion so far.  The blue line, just below halfway up the image, is miss-labled and is Weinstein's momentum curve.  The position of this relative to its MAs, appears to be really useful.


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - pcabc - 2020-03-17

Maroon alert!

As discussed in my earlier post in this thread I'm trying to come up with a system to alert me when there are serious breadth warning signs. My previous short / longer term breadth without these warnings is OK for a trader but not stern enough for an investor. I've recently moved to an investor position with an aim to hold on to positions that I simply would have got out of as a trader long before then.  That has meant that I have ridden a few positions and funds down.

I've made some further progress on my alert system.  Its not a magic bullet, it is work in progress and I'm putting it up here to see if sharing the ideas are useful to anyone.

Now:
   
1. Is the aggregate breadth indication.
Green=Buy
Grey = hold
Yellow=Sell/hold short term (tight stops if hold).
Red=Sell/hold long term (tight stops if hold).
Maroon=DANGER - price still high - divergence.
Black=DANGER - price has declined.

2. Maroon alert two weeks before the drop.  This is mainly due to the position of the Weinstein momentum relative to its 20 and 50 day MAs , 3, and the behavior of the % stocks above their 200 day EMAs, and the averages of that line, 4.  Other parameters are less useful, e.g. New Highs minus new lows, 5 only seems to act as confirmation.  The bars below each line show amber and red for danger.  The lower bars have the signals stretched out to give them more overlap so that when they are combined there is more change of overlap and multiple short signals are not missed.

I've been working on the advance / decline line as both now and in 1987 there was a divergence from price. I've been trying to measure the time since price and the a/d line touched the top of their respective 120 day channels.  But the differing time scales of the divergances means picking up a useful signal is tricky.


1987:
   
Again I picked up black and maroon danger warnings about 3-4 weeks before the precipitous drop, 1.  Again Weinstein momentum and the % stocks above their 200 day EMA diverged, 2 & 3.  There was a divergance in the A/D line too, but the time period was too long for my code to pick it up.    

I am trying to work up code that picks up the breadth decline signs for both these drops.  Whilst I could produce code that might pick up each separately and then AND the results together that would be fine tuning for specific circumstances and miss the next one.  The other challenge is not to pick up too many false alarms, as false alarms devalue the system leading to it being ignored.


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - pcabc - 2020-03-17

[quote pid='15463' dateline='1584483164']


1987:

Again I picked up black and maroon danger warnings about 3-4 weeks before the precipitous drop, 1.  Again Weinstein momentum and the % stocks above their 200 day EMA diverged, 2 & 3.  There was a divergance in the A/D line too, but the time period was too long for my code to pick it up.    

I am trying to work up code that picks up the breadth decline signs for both these drops.  Whilst I could produce code that might pick up each separately and then AND the results together that would be fine tuning for specific circumstances and miss the next one.  The other challenge is not to pick up too many false alarms, as false alarms devalue the system leading to it being ignored.
[/quote]

Longer term chart for 1987:
   
This 2 year chart shows the divergence between advance and decline and price via points 1, 2, 3 and 4.  The bars below the A/D line show my indicator picking up the divergence.  However, even by stretching the signal it finishes just as the danger signs are indicated at 5.

If we look after points 2 and 4 the two lines, price and A/D follow each other approximately.  But the time scale is about the same as the recent divergence.  So it is hard to make something detect one without ignoring the other.


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - pcabc - 2020-03-21

Maroon alert!  20+ year plot!

Warning, very large image.

I hope no one minds the major departure from the usual limit of 800 pixel wide images on this site, as I have just plotted my work on a breadth indicator to warn of large drops in sentiment such as we have experienced now and in 1987, over a 20+ year period.  This chart encompasses both 1987 and 2008.  It is based on NYSE data.  Hopefully your browser will allow you to scroll though this image at full size, or you can download it into an application that can.  Or if you have a 4k display you might see it all at once, but might have to sit pretty close to see the detail.

The chart shows the breadth curves I usually plot for myself.  I have a colour coded bar plotted below the price which I described a few posts back.  Recently I have tried to plot major deteriorations in breadth to hopefully only trigger on major deterioration such as now or 1987, something to give me a clear hit to get out.

I have added 'ticks' to the bar so that it is easier to see these danger warnings, 'Maroon' and 'Black'.  'Maroon' means that there is serious market breadth deterioration but prices are still high whereas 'Black' means that the price has started to drop.  The decider between these two colours is whether price in the index used in the breadth chart is above or below the 50% retracement line.  The 50% retracement line is taken from the TrendAdvisor method, it is the line halfway between the top and bottom of a 60 day price channel.
   

I could have ignored splitting my indicator into Maroon and Black stages and just plotted the deterioration in breath.  However, I figured that this breadth indicator would be persistent in a stage 4 market and might trigger occasionally in stages 1 and 4.  So I set up the Maroon indication to show a breadth deterioration when price was strong, a rare but significant event.

The strongly deteriorating breadth is mainly based on the Weinstein Momentum and the percentage of stocks above their 200 day EMA.  These really are the significant triggers.  I don't see the faster percentage of stocks above the 50 day EMA being so useful.  New highs minus new lows seems to confirm current price action rather than predict.  Limited account is taken of the advance / decline line.  It is hard to do anything to simply spot divergences in price.  I have a scheme in place but with limited capability and it is weighted as such.  These lesser contributions have lead to me lightly greying out these curves.

At present I see no obvious contribution for the advancing / declining volume line.  So this is greyed out with a darker shade.  Note, I am looking for catching rapid deteriorations like now and 1987.  So comparing A/D and A/D volume against slower MAs has little or no value as slower MAs are crossed after the event and faster ones trigger all the time.

I believe I have given notice of deterioration, programmatically for current events and those in 1987.  For 2008 and the dotcom boom end I this is really unnecessary.  YOu were well into a clear stage 4 on the index charts before the worst happened.

What I need to do now is zoom in on the warnings raised not at major crashes.  Are they false alarms, or are they forgotten pullback events that people following stage analysis would have got out from?


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - pcabc - 2020-03-21

Hmm.  My image file shrinking software has compressed the colours a bit too far.  I'm not sure it matters unless I zoom in.  The ticks on the breadth summary bar are visible and are more important if I zoom in.  I could repost but uncompressed the image is 857k as opposed to 175k.  So I will leave as is unless there is good reason.


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - grbaNT - 2020-03-21

Attached are the updated charts of the RABWDB Indicator, Individual Phases, SP500 RABWDB, SP400 RABWDB and SP600 RABWDB.

To learn more about the indicator go to https://dg-swingtrading.blogspot.com/search/label/RABWDB


RE: Stan Weinstein's Stage Analysis and Market Breadth - Technical Analysis - grbaNT - 2020-03-21

Attached are the updated charts of the US Stock Market Survey Indicator, Individual Stages, SP500 Survey, SP400 Survey and SP600 Survey.

If you want to read my commentary, please go to https://dg-swingtrading.blogspot.com/search/label/The%20Survey