Registered User Joined: 7/23/2010 Posts: 84
|
The internet is buzzing about the Hindenburg Omen.
Wikipedia says: It is created by monitoring the number of securities that form new 52-week highs relative to the number of securities that form new 52-week lows - the number of securities must be abnormally large. This criteria is deemed to be met when both numbers are greater than 2.2% of the total number of issues that trade on the NYSE (for that specific day).
How would one make a chart in SF5 that would show the above statistics?
TIA
art
|
Registered User Joined: 10/7/2004 Posts: 364
|
you could build a custom index.
You might want to go view the video
http://www.worden.com/Video/StockFinder/CustomMarketIndicators
or
http://www.worden.com/Video/StockFinder/MarketIndicatorCondition
|
Registered User Joined: 6/15/2008 Posts: 1,356
|
just for kicks, I gave it a shot;
created two conditions:
250day new highs :
'# NewHighPeriod = userinput.integer = 250
If price.High > price.maxHigh(newhighperiod, 1) Then pass
250day new lows
'# NewLowPeriod = userinput.integer = 250
If price.Low < price.minLow(newlowperiod, 1) Then pass
rightclick on each condition, and select "create market indicator" , select "NYSE' as watchlist.
overlay one indicator on top of other, rightclick one of the two, and select "scaling" - "scale with" , select the 2nd indicator to scale with.
currently NYSE has 3803 stocks. I don't know if, and by how much this number fluctuates, but that of course has impact on the results.
as per investopedia, both 250day lows as well as highs has to be over 2.2%
2.2% of 3803 = 83.666 (tripple 6, bad omen !!!!! :)
create an realcode condition :
'# IHP = chart.Index-NewHighPrice250Count
'# ILP = chart.Index-NewLowPrice250Count
If IHP.value > 83.666 AndAlso ILP.value > 83.666 Then pass
results see below:
if you zoom into the past days, we got real close to another trigger.
|
Registered User Joined: 6/15/2008 Posts: 1,356
|
|
Registered User Joined: 7/23/2010 Posts: 84
|
Very nice layout. Pretty interesting seeing how thos spikes work with the charts.
The very last realcode condition "If IHP.value > 83.666 AndAlso ILP.value > 83.666 Then pass" I'm not able to see the truemarkers on the chart as I see with yours. I"m not sure why that is even though I have then checked to show the arrows.
Thanks for your efforts P.
art
|