PureBytes Links
Trading Reference Links
|
>If I have a strategy and would like the initial stop loss to be
>$100/contract. However, if the position moves to $50 profit per
>contract, I would like to make the Stop loss now be $50. So,
>essentially, once price moves in my favor $50, I would like to move the
>stop loss up $50. This is NOT a trailing stop however, because it
>doesn't continue in this manner, only once on the initial stop.
This sounds to me like you're assuming the move to $50 profit will
occur in one bar. Instead you should probably have a stop that
trails until a certain profit target is reached and then the stop price
remains constant from there on.
stopinterval = bigpointvalue / 100;
stoptarget = entryprice - stopinterval;
value1 = price - stopinterval;
if marketposition > 0 then begin
if value1 > stopprice and stopprice < stoptarget then stopprice = value1;
if stopprice > stoptarget then stopprice = stoptarget;
end;
if marketposition < 0 ...etc.
--
,|___ Alex Matulich -- alex@xxxxxxxxxxxxxx
// +__> Director of Research and Development
// \
// __) Unicorn Research Corporation -- http://unicorn.us.com
|