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

Notification

Icon
Error

Options
Go to last post Go to first unread
mememe  
#1 Posted : Wednesday, September 22, 2010 2:23:39 AM(UTC)
mememe

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/8/2010(UTC)
Posts: 7

hello,
I need some help please,
I am trying to build up a system with a buy stop:
{buy}
buyprice:=c*(1+opt1/100);{strategic delay bars : 1 day }

{sell}
buystop:=c*(1+opt1/100);
bp:=ref(buystop,-1);
prc:=if(l>bp,o,bp);

entry:=h>bp;
sl:=1-opt2/100;

exit:=if(prev=0 or prev=-1,if(entry,prc,-1),

if(o>prev or c<prev*sl,0,prev));
{sell at next profitable open or at stoploss}

exit=0 and Simulation.CurrentPositionAge >0

the system is working fine but a want to make it not sell where the entry is true, move forward but reset his entryprice with the new one, I tried [exit=0 and entry=0] but it is not working fine,in the bar that exit becomes 0 and entry is 0 also he does not sell but he does not reset correctly his price.
does anyone have any ideas, please

regards,
have a nice day!
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.