New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
MACD-H ?
Hi All - I'm working on a scan that identifies a new low in the MACD-Histogram (over about the past 3 months). I would also like to add a condition that the current histogram reading be for example, twice the depth of the lowest point over that time frame. Any thoughts would be appreciated on how to best add this.
[type = stock]
and [[exchange is NYSE]
or [exchange is NASD]
or [exchange is AMEX]]
and [MACD Hist(12,26,9) < 0.0]
and [todays MACD Hist (12,26,9) < yesterdays min(63, MACD Hist (12,26,9))]
and [ATR(63) / close > 0.03]
and [SMA(63,volume) > 500,000]
and [close > 20]
[type = stock]
and [[exchange is NYSE]
or [exchange is NASD]
or [exchange is AMEX]]
and [MACD Hist(12,26,9) < 0.0]
and [todays MACD Hist (12,26,9) < yesterdays min(63, MACD Hist (12,26,9))]
and [ATR(63) / close > 0.03]
and [SMA(63,volume) > 500,000]
and [close > 20]
0
Comments
-
I think this situation (today's Hist 2x the previous 63 day min Hist) would be a very rare occurrence, because Hist usually moves in very small increments, meaning yesterday's min 63 bar is likely to be yesterday's bar. And if yesterday's bar was min 63 Hist, today's Hist would have to be twice that - an unusually large move.
If you want to compare the current series of Hist bars below zero to a prior series of Hist bars below zero, and you want this series is twice as deep, you would have to decide on a look back period for the prior series, e.g. 21 days ago min 63 Hist.
Then it might be something like
and [21 days ago min(63, MACD Hist(12,26,9))< 0]
and [min(63, MACD Hist(12,26,9))< 0]
and [MACD Hist(12,26,9) = min(63, MACD Hist(12,26,9))]
and [MACD Hist(12,26,9) < 21 days ago min(63, MACD Hist(12,26,9)) *2]
I haven't tested this. Logically, it should be correct. But, you may have to play with the parameters (21 days ago, min63) to get hits you like. Also, while testing, comment out the other conditions so you know the Hist conditions are working (or not).0 -
Much appreciated Mark. Thanks for the input. I'll have a look into these settings.0
Categories
- All Categories
- 2.3K StockCharts
- 395 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 73 Data Issues
- 177 Other StockCharts Questions
- 218 Technical Analysis
- 155 Using Technical Analysis
- 2 InterMarket and International
- 19 Market and Breadth Indicators
- 42 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 163 S.C.A.N the StockCharts Answer Network forum
- 65 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 5 Off-Topic
- 6 The Cogitation & Rumination Emporium
- Forum Test Area