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

Re: [RT] Coding



PureBytes Links

Trading Reference Links

Thank you very much Gary,

Guy

At 12:12 29/03/2001 -0700, you wrote:
> > exitlong("Target") at entryprice + value1 stop;
> > This always 'exits' at the opening of next day ....
>
>That's because you specified a "stop" instead of a "limit".  A sell
>"stop" sells at that price OR LOWER.  A sell "limit" sells at that
>price OR HIGHER.
>
> > It is also possible that the 'target-exit' is on the same day as
> > the entry (not often, but it happens).
>
>Then you must issue the exit order at the same time you issue the
>entry order.  An order on bar X takes effect ONLY on bar X+1.  If you
>wait until MarketPosition = 1, you're already on the bar where your
>exit might happen, and it's too late to issue an exit order for that
>bar.
>
> > I also want to include a stoploss of 'entryprice-5%', but only exit
> > if close is smaller than 'entryprice-5%' (to avoid intraday-peaks),
> > but i have no idea how to code that in Easy Language.
>
>if Close < 0.95*EntryPrice then exitlong at close;
>
>(The "at close" isn't really necessary but it's useful to remind you
>when it exits.)
>
>The Omega list is a better place to ask TS-specific questions.
>Subscribe by sending an email with the subject "SUBSCRIBE" to omega-
>list-request@xxxxxxxxxxx
>
>Gary
>
>
>
>To unsubscribe from this group, send an email to:
>realtraders-unsubscribe@xxxxxxxxxxxxxxx
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Guy Hacha
Belgium
email: guy.hacha@xxxxxxxxx


------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Make good on the promise you made at graduation to keep
in touch. Classmates.com has over 14 million registered
high school alumni--chances are you'll find your friends!
http://us.click.yahoo.com/03IJGA/DMUCAA/4ihDAA/zf_UlB/TM
---------------------------------------------------------------------_->

To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/