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
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 5/26/2005(UTC) Posts: 4
|
Hi people,
nobody can help me?
Roberto
|
|
|
|
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:
|
|
|
|
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
|
|
|
|
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.