Hindenburg Omen
Author: Cone
Creation Date: 8/25/2010 6:12 PM
profile picture

Cone

#1
Since it's getting a lot of airplay recently, I thought it to be interesting to code up the Hindenburg Omen using the Market Sentiment indicators in Wealth-Lab Pro. The script simply highlights the chart when the "omen" occurs.

Important!
The script assumes the chart symbol is the New York Composite Index (.NYA for Fidelity)

CODE:
Please log in to see this code.
profile picture

MrHari

#2
Thank you Cone!

The above code is a good starting point, but I think it requires few modifications.

The wiki articles referred has this:
QUOTE:
The daily number of NYSE new 52-week highs and the daily number of new 52-week lows are both greater than a threshold (proposed at 2.8%)


52-week highs percentage and 52-week lows percentage -> both of these need to higher than 2.8%. Not the combined. So "cond1" in the code should be applied to to both 52-week high indicator and 52-week low indicator individually.




profile picture

Eugene

#3
QUOTE:
52-week highs percentage and 52-week lows percentage -> both of these need to higher than 2.8%. Not the combined.

Good point, thanks. That's exactly what it says on p.219 of "The Complete Guide to Market Breadth Indicators" (the source for many of MS123 IndexDefinitions). Consequently the code for WLP reads:

CODE:
Please log in to see this code.
profile picture

Eugene

#4
And for WLD customers who don't have the Fidelity data, the code is below. Prerequisites:

1. Install Market Sentiment static data provider and restart WLD
2. Create the "Market Sentiment" DataSet, check "NYSE"
3. Update it

CODE:
Please log in to see this code.
profile picture

giorgos

#5
For what is worth; the sentiment data from the Fidelity source seems to be innacurate
profile picture

Eugene

#6
Interesting but do you have any proof to that?

The alternative "Market Sentiment" provider may be OK while it lasts as the median values across several data sources are reported. The thing is it's no longer maintained. Only 2 out of the initial 9 sources remain. If it breaks someday and we're unable to find a replacement, the only workaround for non-WLP users would be Index-Lab: download the entire data from NYSE (etc) and build the indices themselves!
profile picture

Eugene

#7
The Market Sentiment provider is depreciated. Effective 02/20/2020, MS123 supports the most frequently used market sentiment data through our Wealth-Data provider - the advancing, declining and unchanged issues for AMEX, NASDAQ and NYSE! Here are the symbols:

$AMEX_ADVN (AMEX Advancing Issues)
$AMEX_DECLN (AMEX Declining Issues)
$AMEX_UNCHN (AMEX Unchanged Issues)
$NASDAQ_ADVN (NASDAQ Advancing Issues)
$NASDAQ_DECLN (NASDAQ Declining Issues)
$NASDAQ_UNCHN (NASDAQ Unchanged Issues)
$NYSE_ADVN (NYSE Advancing Issues)
$NYSE_DECLN (NYSE Declining Issues)
$NYSE_UNCHN (NYSE Unchanged Issues)

You can create a W-D DataSet by copying/pasting the symbols or by choosing them from "MS" Classification Group in the New DataSet Wizard > Wealth-Data.
profile picture

Eugene

#8
UPDATE:

Effective 03/09/2020, get more market sentiment data using our Wealth-Data provider - the new highs and lows for AMEX, NASDAQ and NYSE! The new symbols are:

$AMEX_newhi (AMEX New Highs)
$AMEX_newlo (AMEX New Lows)
$NYSE_newhi (NYSE New Highs)
$NYSE_newlo (NYSE New Lows)
$NASDAQ_newhi (NASDAQ New Highs)
$NASDAQ_newlo (NASDAQ New Lows)
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).