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

RE: orders in Ela



PureBytes Links

Trading Reference Links

You don't give us the code for the function Chandstop, but the first thing that occurs to me is that you're not passing any parameters to the function as to whether you're long or short, unless you've written this function to calculate stops on short entries only.

Secondly, on a short, the Chandelier Exit stop can only be reduced, never increased, and I don't see anything in you code that allows for that.

Hope this helps.

Good trading.

Andrew Nopper





-----Original Message-----
From:	Nixon(MLS) [SMTP:mbjp57@xxxxxxxxxxxxxx]
Sent:	Thursday, April 08, 1999 10:36 AM
To:	Code-List; omega-list@xxxxxxxxxx
Subject:	orders in Ela

I have the following code in a system

IF marketposition =-1 then Begin
    Exitshort("STrailstop") all contracts from Entry ("SE") at
Chandstop(Fac, ATRLen) stop;
    If marketposition=0 then Starget=999999;
End;

(Chandstop is a function to calculate a stop based on Chuck Lebeaus
Chandelier Exit)

The problem is that sometimes the system ignores the Chandstop level and
just exits immediately without coming close to the stop level.   I have a
print log to show me what Chandstop is and it is definitely calculating
correctly so I am stumped as to what the problem is.    Is there something
about the way TS executes stops that I am missing?

Any suggestions would be gratefully accepted as this is driving me
BANANAs!!!!!!

TIA

Philip