logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
abhannan  
#1 Posted : Wednesday, May 4, 2005 5:48:32 AM(UTC)
abhannan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/3/2005(UTC)
Posts: 5
Location: Malaysia

Gentlemen, Did anybody runs across ready-made formula by Norman Fosback? Specifically, they are: 1) NYSE High/Low Logic Index. It is the lesser of either the a) new highs as a percentage of total issues traded or b) new lows of total issues traded. 2) Utility Divergence Index. It is the latest 20-week change in Dow Jones Utility Averages minus 20-week change in Dow Jones Industrial Averages. Any help is appreciated. Thanks in advance... Rgds, :) Hannan
hayseed  
#2 Posted : Wednesday, May 4, 2005 4:55:06 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey hannan..... this attempted code might be correct or it might bring laughter world over..... in any event, thanks for bringing it up, i see some applications for it already......h if nyse highs/nyse iss's tr < nyse low/nyse iss's t, plot 1 else 0
If(Security("x.nyse-h",C)/Security("x.nyse-t",C)< (Security("x.nyse-l",C)/Security("x.nyse-t",C)),1,0) ----------------------------------------------------
Patrick  
#3 Posted : Wednesday, May 4, 2005 5:19:09 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Hayseed, you did not watch my first lesson did you? :evil: You don't need the if statement in there :D (Security("x.nyse-h",C)/Security("x.nyse-t",C))< (Security("x.nyse-l",C)/Security("x.nyse-t",C)) Patrick
hayseed  
#4 Posted : Wednesday, May 4, 2005 6:02:15 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey patrick.....thanks....... yeah i watched/enjoyed it, several times, just takes awhile to sink in...... hence the term 'hayseed'.... also, was just playing around with that code and noticed it can only be applied to some security in the bm folder..... otherwise you get the error..... there is of course a way around that..... any thoughts on part 2 of hannan's request......h
Patrick  
#5 Posted : Wednesday, May 4, 2005 6:06:32 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
On the second part it would depend on wether or not we are working with daily or weekly data. Weekly data would be easy. Just a rate of change minus another. ROC(Security("Utilities..",C),20,%)-ROC(Security("Industrial..",C),20,%) For daily it becomes a little more complex but if you use jose and roy weekly values using daily data indicators it can be pretty straightforward. Patrick
Patrick  
#6 Posted : Wednesday, May 4, 2005 6:25:41 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Here is What i would write for number 2 on daily data. I have not tested this ... V1:=Security("SYMBOL1 HERE",C); V2:=Security("SYMBOL2 HERE",C); friday:=DayOfWeek()=5; newweek:=ROC(DayOfWeek(),1,$)<0; holiday:=newweek AND Ref(DayOfWeek(),-1)<>5; wkc1:=If(friday,V1, If(holiday,Ref(V1,-1), PREV)); wkc2:=If(friday,V2, If(holiday,Ref(V2,-1), PREV)); Roc(wkc1,20,%)-Roc(wkc2,20,%) Patrick
hayseed  
#7 Posted : Wednesday, May 4, 2005 6:39:55 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey patrick....thanks..... and if perhaps , hehe, just had to get that 'if' in, someone would like to apply the code to any security other than something in the broad market folder, the code below which is folder path specific should work..... the one patrick and i provided eariler returns a 'path' error for me..... more on that later...... thanks again hannan for bringing it all up, i learned a bunch today.....h
(Security("C:\\MetaStock Data\\BM Data\\x.nyse-h",C)/Security("C:\\MetaStock Data\\BM Data\\x.nyse-t",C))< (Security("C:\\MetaStock Data\\BM Data\\x.nyse-l",C)/Security("C:\\MetaStock Data\\BM Data\\x.nyse-t",C)) ---------------------------------------------------
abhannan  
#8 Posted : Thursday, May 5, 2005 4:21:41 AM(UTC)
abhannan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/3/2005(UTC)
Posts: 5
Location: Malaysia

Thanks a lot guys :) . Anyway, I already received some code from somebody on part 1. I tried it and it seems to work OK. I attached the code below.. I have not tried Patrick's code for part 2, though...
{This indicator is based on High/Low Logic Index (HLLI), by Norman Fosback. High reading above 0.021 indicates BM top, whereas low reading below 0.004 indicates BM bottom. Tend to generate false signal in December and January due to end and new year seasonality buying. The function may be generalized to accept any indices, beside Nasdaq as below} {Retrieve new highs/lows and total traded issues} NH:=Security("E:\\Metastock Data\\BM Data\\X.NASD-H",C); NL:=Security("E:\\Metastock Data\\BM Data\\X.NASD-L",C); TI:=Security("E:\\Metastock Data\\BM Data\\X.NASD-T",C); {Calc. the lower value of either new highs or lows} CC := If(NH <= NL, NH, NL); Index := CC/TI; { Calc. HLLI} {Smooth this average w/ 10-bar MA} Mov(Index, 10, S); 0.021; {Extreme - Bearish} 0.004; {Extreme - Bullish} {End of Formula} ---------------------------------------------------
hayseed  
#9 Posted : Thursday, May 5, 2005 4:14:08 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey hannan..... thanks for sharing that..... its in a nice coded form, will make a note of it...... changing the drive 'e' to 'c' allowed me to plot it, and scrolling back in time reminded me , the market can stay extreme bullish for extended periods, as in 03/04..... when changing my chart from daily to weekly then back to daily the indicator changed forms everytime..... if it does that for you, just close the entire chart, reopen it and reapply the indicator..... thanks again hannan, for sharing......h
abhannan  
#10 Posted : Thursday, May 5, 2005 4:50:56 PM(UTC)
abhannan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/3/2005(UTC)
Posts: 5
Location: Malaysia

Guys.. Anybody has solution to the problem mentioned by Hayseed, in that the indicator changed forms everytime when you toggle daily to weekly then back? I don't think closing the chart and reopening it, is the intended solution for this problem. Rgds, :) Hannan
joetrade69  
#11 Posted : Thursday, May 5, 2005 9:58:21 PM(UTC)
joetrade69

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 121

This is a bug with the Security Data function, when switching periodicites. Close and re-open the chart as daily and it should be fine. With the daily chart up, if you go to Window | New Window (which makes a duplicate chart), then change the duplicate chart to weekly. When you're done close it and don't save changes, you're back to the daily chart without changing the indicator formation
Users browsing this topic
Guest (Hidden)
Similar Topics
Norman Fosback NYSE Indicators Help (Formula Assistance)
by abhannan 5/4/2005 5:45:33 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.