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

Notification

Icon
Error

Options
Go to last post Go to first unread
biandi  
#1 Posted : Monday, August 27, 2007 10:52:40 AM(UTC)
biandi

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/23/2007(UTC)
Posts: 25

but someone succeeds to make this:
pezzo1: =Ref (C, 400);
pez: =If (Ref (C, 400) =true, 1,0);
pezzo2: =Ref (LastValue (C), - 400);
pezzo3: =IsDefined (Ref (C, 400));
pezzo4: =IsDefined (LastValue (pezzo1));
pezzo5: =ValueWhen (1, pezzo3=1, Ref (C, 400));
pezzo6: =ValueWhen (1, pezzo3=0, LastValue (pezzo1));
pezzo5; pezzo6
but me alone two distinguished pointers I would want some to only create one
pumrysh  
#2 Posted : Tuesday, August 28, 2007 12:03:31 PM(UTC)
pumrysh

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/28/2004(UTC)
Posts: 110

Can you rephrase your question? Maybe explain what you wish to do.

Pezzo1 is a forward reference. All this does is move the close back 400 bars.

Pez is meaningless unless the forward referenced close were to equal "true" or a value of one. The value of this line is likely to always be zero.

Pez and Pezzo2 are never referenced again...why are they there?

Preston

biandi  
#3 Posted : Wednesday, August 29, 2007 2:19:52 AM(UTC)
biandi

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/23/2007(UTC)
Posts: 25

scusami they were tests however the formula is this

pezzo1: =Ref (C, 400);
pezzo2: =Ref (LastValue (c), - 400);
pezzo3: =IsDefined (Ref (C, 400));
pezzo4: =IsDefined (LastValue (pezzo1));
pezzo5: =ValueWhen (1, pezzo3=1, Ref (C, 400));
pezzo6: =ValueWhen (1, pezzo3=0, LastValue (pezzo1));
pezzo5; pezzo6
I do not succeed to create an only pointer! I would want to attack to the data capacities behind, “pezzo1” l last closing for the lacking period to complete the diagram
Jose  
#4 Posted : Wednesday, August 29, 2007 10:39:49 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Try this:
{pezzo1:=Ref(C,400);} {pezzo2:=Ref(LastValue(C),-400);} pezzo3:=IsDefined(Ref(C,400)); {pezzo4:=IsDefined(LastValue(pezzo1));} pezzo5:=ValueWhen(1,pezzo3=1,Ref(C,400)); {pezzo6:=ValueWhen(1,pezzo3=0,LastValue(pezzo1));} LastValue(pezzo5+PREV-PREV){;pezzo6}
Or simply: LastValue(Ref(C,400)+PREV-PREV) jose '-)
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.