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

Notification

Icon
Error

Options
Go to last post Go to first unread
melbob  
#1 Posted : Wednesday, August 3, 2005 3:56:43 PM(UTC)
melbob

Rank:: Newbie

Groups: Registered, Registered Users
Joined: 5/26/2005(UTC)
Posts: 4

Hi frends, sorry for my bad english. I have a problem with system tester: i would like to write a formula in the sell order simply to say: sell at the first gain open. Can you help me? Thanks, Roberto
melbob  
#2 Posted : Thursday, August 4, 2005 5:54:37 PM(UTC)
melbob

Rank:: Newbie

Groups: Registered, Registered Users
Joined: 5/26/2005(UTC)
Posts: 4

Hi people, nobody can help me? Roberto
Patrick  
#3 Posted : Thursday, August 4, 2005 7:12:16 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
try this : BUY:={Buy Condition}; SELL:=C-Valuewhen(1,BUY,C)>0; SELL Patrick :mrgreen:
melbob  
#4 Posted : Thursday, August 4, 2005 9:12:14 PM(UTC)
melbob

Rank:: Newbie

Groups: Registered, Registered Users
Joined: 5/26/2005(UTC)
Posts: 4

tank Patrick, I tried your formula, but there are some problems. In fact in the testing system the program execute the exit long when condition appears, but some times it's not the condition referred to the buy day. For ex. my buy condition is: dayofweek()=1 and o> ref(c,-1); so, when system exit long may be that the previous setup bar is not the mine but a following one (appened during the trade) Sorry for my confusion. Regards.Roberto
Patrick  
#5 Posted : Sunday, August 7, 2005 3:42:04 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Sorry I can't figure a way to do this... I might just turn it into a dll function ... Patrick :mrgreen:
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.