PureBytes Links
Trading Reference Links
|
Thanks to those who have replied, particularly to Phil who sussed that
the exit should have been a LIMIT order! Doh! <fx: whack!!!>
But to further clarify - I'm using 2000i and trying this on the S&P
Emini, day sessions only. I mention this because some people asked so
perhaps this will serve as a reminder to others 'enquiring within' that
the code may well different according to which version of TS you are
using. As if life wasn't complicated enough...
Ian
> This is driving me nuts! It seems so simple but I'm obviously doing
> something wrong. Would much appreciate a pointer or a whack over the
> head with a stick!
>
> I'm using 5 min bars and simply trying to sell an opening gap and
> cover at the close of the previous day. Here's the code:
>
> vars: stop1(0);
> if date>date[1] and open>close[1] then begin
> sell this bar at close;
> stop1=close[1];
> end;
> exitshort at stop1 stop;
>
>
> Ian
>
>
|