Hello,

Can anyone help me with coding a stoploss that goes to break-even point and 
stays there?

Let's look at this simple code:

BuyPrice = C;
SellPrice = C;

Buy=C>Ref(H,-1);
Sell=C<Ref(L,-1);

ApplyStop(stopTypeLoss, stopModePercent, 1, True);

I would like that when the price reaches +5% the stoploss moves from 1% to 
break-even point (zero+commision+spread) and stays there. Second option is to 
have a stoploss that goes to break-even point after a couple of days (lets say 
10 days) and stays there.

I was looking at similar example here 
http://www.mail-archive.com/[email protected]/msg45865.html, but it's 
too complicated for me :( 

I would appreciate if anyone could help me with that. Thanx.





Reply via email to