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

Notification

Icon
Error

Options
Go to last post Go to first unread
norwayturtle  
#1 Posted : Monday, February 16, 2009 3:25:17 AM(UTC)
norwayturtle

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/4/2008(UTC)
Posts: 10

How can I only display red dots from the first signal who are true and to the false condition?
Justin  
#2 Posted : Tuesday, February 17, 2009 2:35:51 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

There's a few ways you can deal with this. You can use the following examples below to see if this will work. Note that you are supposed to put your own formulas in place of the formulas below, and you must include these formulas for each symbol of an expert advisor.

2 state:

bc:=Cross(C,Mov(C,20,S)){buy signal condition};
sc:=Cross(Mov(C,20,S),C){sell signal condition};
trade:=If( bc=1, 1, If(sc=1, 0, PREV));
cross( trade= x, 0.5)


3 state:

bc:=C > Mov(C,20,S)+1{enter long condition};
be:=Cross(Mov(C,20,S),C){close long condition};
sc:=C < Mov(C,20,S)-1{enter short condition};
se:=Cross(C,Mov(C,20,S)){close short condition};
trade:=If( bc=1, 1, If(sc=1, -1, If((be AND PREV=1)
OR (se AND PREV=-1),0,PREV)));
Cross( trade= x, 0.5)
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.