PureBytes Links
Trading Reference Links
|
Hi group,
I am trying to code a very simple system, but have some problems.
If condition then buy at market;
if marketposition=1 then begin
exitlong("Target") at entryprice + value1 stop;
end;
This always 'exits' at the opening of next day .... and not at
the 'entryprice+value1'.
It is also possible that the 'target-exit' is on the same day as the
entry (not often, but it happens). Usually the target is reached within 1
to 7 days.
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.
(i use TS 4.0).
I would appreciate some help from the 'EL specialists'.
Thanks in advance.
Guy
Guy Hacha
Belgium
email: guy.hacha@xxxxxxxxx
Yahoo! Groups Sponsor
To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|