Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 7/7/2010(UTC) Posts: 2 Location: England
|
I am sure my issues are going to turn out to be straight forward, but I am brand new to MetaStock (only a few days since installing) so am still finding my feet a bit so please bear with me - thank you.
I have two formula questions
1. Is there a way to reference a Data Array for a particular date. i.e. instead of saying ref(close,-2) for close two days ago, is it possible to say close (16/07/2010) for example - so referencing a known or constant date.
2. If I use the following
LLVBars(RSI(C,14),90); to find the number of bars since the 14 day RSI was at it lowest in the last 90 days, how can I find what the value of the RSI was on that day - if I put this formula (or a variable assigned to it) in to ref(RSC(c,14),LLVBars(RSI(C,14),90)) I get an error saying only constants allowed.
Many thanks and sorry if I am in kindergarten here!
Best
James
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 12/14/2009(UTC) Posts: 140 Location: Austria
|
I think this thread gives you the answer to both questions..
http://forum.equis.com/forums/thread/6531.aspx
...but I search it specially regarding your question 1.
for 2. you need the valuewhen function which is also used in the thread above..
ValueWhen(1,LLV(RSI(C,14),90)=RSI(C,14),RSI(C,14))
|
|
|
|
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.