logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
tms2628  
#1 Posted : Friday, June 27, 2008 12:41:01 AM(UTC)
tms2628

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!!
mlr94549  
#2 Posted : Saturday, December 27, 2008 9:35:44 AM(UTC)
mlr94549

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.