Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/27/2008(UTC) Posts: 1
|
Hi all
I want to create a formula and their data array value may depends on each
other. Array A may depends on array B and array B may depends on array A too.
For example,
A=PREV+1 //{if B<0} A=PREV-1 //{if B>=0} B=PREV+1 //{if A>0} B=PREV-1 //{if A<=0}
At bar 0, A=0, B=1
We can see that the value of A need the condition of B
and the value of B need the condition of A too. When i try to write in Metastock, when calculating A, I cannot get the value of B because B has not been created. And this is the problem.
How can I write this kind of
equation in metastock? Thank you!!
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/5/2008(UTC) Posts: 8 Location: California
|
In general in programming you cannot write such expressions that are mutually interdependent. This is known as a circular reference; Excel, for example, detects these when you write a circular reference. These expressions cannot be resolved and should not be used. Michael
|
|
|
|
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.