[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXIT STRAT



PureBytes Links

Trading Reference Links

Michael,

I just happened to be playing in this area.  See if this
helps.  You won't get an specific $ level exit since it is
adaptive.  It takes into account the current bar.

Just fiddle with the hard coded numbers to meet your needs.


var: xprice(0);
if mp <> mp[1] then xprice=0;
if NumLosTrades > 0 and OpenPositionProfit < (GrossLoss/NumLosTrades)*3 and xprice=0 then xprice = close;
if mp = 1 and xprice<>0 then exitlong("lx1")  next bar at xprice  - 30 points stop;
if mp = -1 and xprice<>0  then exitShort("sx1") next bar at xprice  + 30 points stop;
if mp=0 then begin  
     exitlong("lx2")  next bar at close - TR*2 stop;
     exitShort("sx2") next bar at close + TR*2 stop;
     end;


Regards,
Ernie
ebonugli@xxxxxxxx