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

Re: Multiple partial exits in TS2000i



PureBytes Links

Trading Reference Links

> An entry can use multiple exit signals for piecemeal liquidation, and
> multiple entries can use the same exit signal, among others; a given
> entry, however, can use a given exit signal only once." 
> 
> Notice the very last phrase after the word, however!  
> 
> if time = 800 then buy 1000;
> if time greater than 800 and mod(time, 10) then exitlong 100 shares;

You *can* make this work, though, if you use multiple *entries*:

if d>d[1] then buy 100 shares;
if d>d[1] then buy 100 shares;
if d>d[1] then buy 100 shares;
if d>d[1] then buy 100 shares;
if d>d[1] then buy 100 shares;
if time>1000 and mod(time, 10) = 0 
  then exitlong 100 shares total;

Notice the "total" keyword.  This is critical -- without it TS 
will exit the whole position at the first exitlong.

See http://www.purebytes.com/archives/omega/2001/msg04232.html 
for another example.

Gary