Rank: Newbie
Groups: Registered, Registered Users Joined: 7/5/2007(UTC) Posts: 3 Location: mumbai
|
date 07/05/07 time 6.11 pm ( indian std time )
hi there,
RSI is calculated only on a constant in metastock. even i calculate rsi on a constant but instead of the closing prioce i take the dema. now my rule for buying is very simple. i buy when the rsi rises, ( when it stops its fall i.e) hwo do i write a formula for my system tester as it wont allow me to compare the rsi of today with the rsi one day back. thanks in anticipation
|
|
|
|
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)
|
joesb213 wrote:RSI is calculated only on a constant in
metastock. even i calculate rsi on a constant but instead of the
closing prioce i take the dema. now my rule for buying is very simple.
i buy when the rsi rises, ( when it stops its fall i.e) hwo do i write
a formula for my system tester as it wont allow me to compare the rsi
of today with the rsi one day back. thanks in anticipation
Since MetaStock version 7, the user has the ability to describe what
data array is used to compute the RSI, only the time period is a
constant. The context of the RSI() function and commands aref ound in
the MS Users Manual. The Forum.dll performs the same computations as
the built-in function and allows the user to describe the data array,
but also allows the user to use a variable period instead of a fixed
period.
The Ref() function will allow you to compare the value of the RSI()
with a previous period value. Again, look in the MS Users Manual for
more information.
Please note: this thread is for the review and revision so I shall move this post into a more suitable thread.
wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 7/5/2007(UTC) Posts: 3 Location: mumbai
|
I dont get it. when i go to system tester and say new and define a new tester till such time it is okay. nce i start using the function butto it allows me to enter only two things in the rsi oscillator window and if i put the dema in the first slot it throws up a formula error as only constans are allowed thats what it says. pl help i have by the way developed the whole thing in excel but it is very time comsuming and hence the need fo developing my system. thanks in anticipation.
|
|
|
|
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)
|
I don't quite understand what your issue is? It would be easier to provide assistance if yuo posted your code for us to look at to identify where the errors might be occurring. Until then, this might go someway to helping?
The syntax for DEMA is: dema(data array, periods)
The syntax for RSI is rsi(data array, periods)
The syntax for Ref is ref(data array, periods)
(All of this information can be easily found in the MS Users Manual.)
Each of these functions takes a static argument for periods. If you want to programmatically set the periods length of have this as the result from some algorithm, then you are either going to have to use the LastValue() with PREVs trick (cumbersome) or download the free Forum.dll from the files section that will allow you to use adaptive functions for RSI and Ref. There isn't an adaptive DEMA as noone has requested its inclusion in the library.
wabbit [:D]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey joesb..... sometimes critical words get lost in the translation.... which makes it difficult for us to understand each other.........
if i'm understanding you correctly, you want the rsi of the dema.... and when the rsi of the dema turns up or reverses, buy..... if that's the case try the code below.... change my 13 in the dema(c,13) to your preference..... and also change my 30 in the rsi(30) to your preference......
holler back if we still don't understand each other.....h
{buy rule}
a:= dema(c,13); {this is the 13 period dema of the close} aa:= rsi(a,30); {this is the rsi(30) of the 13 period dema of the close} aaa:= ref(aa,-1); {this the ref,-1 rsi(30) of the 13 period dema of the close} aaaa:= ref(aa,-2); {this the ref,-2 rsi(30) of the 13 period dema of the close}
aa > aaa and aaa < aaaa {this just says the rsi(30) of the dema reversed, turned up, today}
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 7/5/2007(UTC) Posts: 3 Location: mumbai
|
date 12/010/08 time 9.59 pm ist
Hi hayseed,
i think u understood what i wanted correctly. i am able to plot rsi of the moving avg but what i need to do is to devleop a system tester where in i want it to understand rsi of this mov avg should be greater then or lesser then the earlier days rsi.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey joesb213 ..... i got your pm and will try to write something up today for you..... it might take us a few attempts cause key terms can be missunderstood between languages..... but we will be successful.....
you are wise to be employing metastock now...... the last 3 months and the next 6 will most likely be the most important months in over a decade..... the correct use of metastock, along with common sense, will pay for itself 100 fold......
choose'em well.......h
|
|
|
|
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.