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

Re: Uncooperative EL



PureBytes Links

Trading Reference Links

Many problems can be solved by putting the logic in a function. Create f_MyExit
with the logic you need e.g. if (PositionProfit < 0) and (Volume of Data2 >
Volume of Data2[1]) then f_MyExit = -1 else f_MyExit = 0. In your system add a
simple conditional (f_MyExit = -1) to the exit.

Earl

-----Original Message-----
From: Phil Lane <logical@xxxxxxxxxxxxx>
To: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: Thursday, March 05, 1998 11:58 AM
Subject: Uncooperative EL


>Greetings,
>I have a system with entries referencing "open of tomorrow"... In order to
>exit MOC I had to include a separate system containing the sell statements.
>Kind of a pain but it works.
>
>Anyway, now I'm trying to modify the sell routine to reference "v of data2"
>(in this case the closing volume of the Nasdaq Composite, in case anyone's
>interested). I want to exit MOC if the positionprofit is negative AND v of
>data2 is greater than it was the day before. The error message is "Cannot
>mix next bar prices with data streams other than data1".
>
>I somebody knows how to do this I'd sure appreciate some insight! Thanks!
>