Rank: Member
Groups: Registered, Registered Users Joined: 9/25/2005(UTC) Posts: 22
|
Dear fellow MetaStock users,
Does anybody know how I can make/plot a NH-NL (advance-decliners) indicator for the S&P with MetaStock?!
Thank you very much.
Best Regards,
Hung
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Try this:
[code:1:9f674f7cd1]nhnl:=Mov(Security("C:\\MetaStock Data\\BM Data\\X.NYSE-H",C)/(Security("C:\\MetaStock Data\\BM Data\\X.NYSE-H",C)+Security("C:\\MetaStock Data\\BM Data\\X.NYSE-L",C)),10,S);
signal:=If(cross(nhnl,0.3)=1,1,If(cross(0.7,nhnl)=1,-1);
signal[/code:1:9f674f7cd1]
Buy signal above 0.3 is +1; Sell signal below 0.7 is -1; else, 0.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 9/25/2005(UTC) Posts: 22
|
Thank you for your reply and sorry for my late reply but I've been away for 1 1/2 week.
Is this for the S&P500 cause I see "NASD" written in the formulae and I suppose this mean Nasdaq. Can or how can I change this to the S&P?
Do you know (another) good sentiment indicator who tracks the sentiment of professionals/commercials and one for the public?
Thank you.
Best Regards,
Hung
antjinsan wrote:Dear fellow MetaStock users,
Does anybody know how I can make/plot a NH-NL (advance-decliners) indicator for the S&P with MetaStock?!
Thank you very much.
Best Regards,
Hung
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
That was a mistake... should have been X.NYSE for the NY stock exchange... a rough correlation with the S&P 500. I don't collect or convert data to get an exact A/D for the S&P. I suppose you could do this manually, or import the data from elsewhere. In that case, just change the ticker symbols in the above formula to match the path to your data. Perhaps someone else knows of a way...
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
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.