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 think your problem is ill-defined, so this solution may get you closer to the objective, but I think you're going to find there are another series of underlying issues in your logic: Code:
fractalup:=
Ref(H,-3) >= Ref(H,-5) AND
Ref(H,-3) >= Ref(H,-4) AND
Ref(H,-3) >= Ref(H,-2) AND
Ref(H,-3) >= Ref(H,-1);
fractaldn:=
Ref(L,-3) <= Ref(L,-5) AND
Ref(L,-3) <= Ref(L,-4) AND
Ref(L,-3) <= Ref(L,-2) AND
Ref(L,-3) <= Ref(L,-1);
fractalH := valuewhen(1,fractalup,Ref(H,-3));
fractalL := valuewhen(1,fractaldn,Ref(L,-3));
fractalL := valuewhen(1,fractalH,fractalL);
pivot := (fractalH + fractalL)/2;
{plot}
pivot;
wabbit [:D] P.S. When posting code, please wrap the code in tags: * code * * /code * without the spaces.
|