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

Re: Strategy



PureBytes Links

Trading Reference Links

> duplication won't happen, the un-triggered order will simply get
> replaced, only one can exist at any time. 

One order of any kind.  You can have long stop, long limit, short 
stop, and short limit active at the same time.

> if you want to tell if an un-triggered order is sitting out there,
> you have to code this yourself, no such thing as
> "UntriggeredPosition"? 

If it hits your stop price, it's triggered.  You have to track 
that.

> to cancel an un-triggered order, simply create an order with a price
> that will guarantee execution - but won't this affect the results or
> the screen image? 

You don't have to cancel orders.  (I wish you did!!)  They only 
last for the **ONE** bar after you issue the order.  So 
cancelling orders isn't the issue.  Keeping them ACTIVE is the 
challenge.  You have to remember the price you want the stop at, 
and re-issue the order on every bar until it's hit or you don't 
want the order to be active any more.

Gary