Rank: Member
Groups: Registered, Registered Users Joined: 2/27/2006(UTC) Posts: 20 Location: Adelaide, Australia
|
I am trying to create a formula for an oscillator using RSC. The following is my unsuccessful attempt:
Mov(RSC(),7,E)-Mov(RSC(),21,E);
0;
"This is not a valid function name" is the error message.
Any help would be appreciated.
Jake
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
... that's because there isn't an RSC function.
The Relative Strength Comparison is a tool that has to be coded seperately, or implemented using tools like Jose's URSC toolkit. Although its available as an indicator, it hasn't been implemented into the MSFL properly.
You can create your own by comparing the stock price with a Security() price.
wabbit :D
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 2/27/2006(UTC) Posts: 20 Location: Adelaide, Australia
|
"You can create your own by comparing the stock price with a Security() price" -can you expand on this further? How would I create an oscillator comparing a stock price with a sector index?
Thanks for your input
Jake
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey jake..... wabbit would know better than me and i'm really not sure just what your after..... the top code below somewhat closely approximates the rsc ..... i used 'dia' as the base/index and used the p variable..... the lower is replacing your rsc with it in your code..... keep in mind 'dia' is in my dow 30 folder..... you would replace my C:\\MetaStock Data\\dow 30\\dia with your prefered comparison stock or index...... h
[code:1:aa3dd9ba84]ROC(Mov(P/( Security("C:\\MetaStock Data\\dow 30\\dia", C)),200,E),1,%);[/code:1:aa3dd9ba84]
[code:1:aa3dd9ba84]a:=ROC(Mov(P/( Security("C:\\MetaStock Data\\dow 30\\dia", C)),200,E),1,%);
0;
Mov(a,7,E)-Mov(a,21,E);[/code:1:aa3dd9ba84]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
In my view, there is no better way to measure Relative Strength (RSC) between securities/indices than with the method used by the URSC tool-kit (Universal Relative Strength Comparative tool kit for MetaStock).
There are many issues that plague "normal" RSC, and the URSC tool-kit addresses all, and more.
jose '-)
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 2/27/2006(UTC) Posts: 20 Location: Adelaide, Australia
|
Thanks Hayseed, I think that is what I was after. Unfortunately when I constructed the formula a message read "only available in Metastock Pro". I obviously have Metastock EOD.
I guess I will have to leave that indicator for now.
Thanks to all for your input.
|
|
|
|
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.