PureBytes Links
Trading Reference Links
|
thanks Alex. do I have this right?
duplication won't happen, the un-triggered order will simply get replaced,
only one can exist at any 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"?
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?
thanks
Debbi
----- Original Message -----
From: "Alex Matulich" <alex@xxxxxxxxxxxxxx>
To: "bloomberry" <bloomberry@xxxxxxxxxxxxxx>
Cc: <omega-list@xxxxxxxxxx>
Sent: Friday, October 17, 2003 8:41 PM
Subject: Re: Strategy
> Debbi:
>
> >Just getting use to TS2000i strategies but one thing puzzles me and
wondered
> >if anyone out there can clarify. I understand the basics of how to code
> >buy/sell and the resulting MarketPosition but I'm unsure how to ...
> >
> >1) detect an un-triggered stop/limit order to avoid duplication.
>
> If you name your exit orders (i.e. ExitLong("XL") at 48.50 stop; -
> that's for TS2000i, if you're using TS7 you'd just say Sell("XL")
> I think), then each time the statement gets executed it simply
> replaces the previous order. I think the same may be true of
> un-named order; i.e. you can have only one active un-named order.
>
> >2) cancel an un-triggered stop/limit order and start again.
>
> Same as above. You don't need to cancel an open order, you can
> simply replace it. If you want, replacing it with an order to exit
> a long position at a price of zero, or exit a short position at a
> price of 999999, will effectively cancel the order.
>
> I'm sure others on this list may have better ideas.
>
> --
> ,|___ Alex Matulich -- alex@xxxxxxxxxxxxxx
> // +__> Director of Research and Development
> // \
> // __) Unicorn Research Corporation -- http://unicorn.us.com
|