PureBytes Links
Trading Reference Links
|
Is it a Bug or a Limitation????
Either way you can't do it without a Workaround, as follows (works for TS4
at least):
1. Make a user function called "nextopen" that contains the following:
DefineDllFunc:"nxtopen.dll",LONG,"GetOpen",LPLONG,INT;
NextOpen=GetOpen(&Open,-1)/PriceScale;
2. Copy the attached dll file into your omega/prog directory. I think this
should do it.
Good luck,
Phil
----- Original Message -----
From: Scott Hoffman <trader20@xxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Monday, July 30, 2001 3:09 PM
Subject: Mixing open next with data2
> I want to place a stop-limit order on data1 in a system that refers to
> data2. EL is giving me an error: "Cannot mix next bar prices with data
> streams other than data1".
>
> Example code that will generate error:
> value1 = range of data2;
> if open of next bar > 50 then buy at 50 limit else buy at 50 stop;
>
> Notice the code is *not* trying to reference the next open of data2.
>
> Any ideas how I can do a stop-limit on the next bar with a 2 data stream
> system?
>
> TIA,
> Scott Hoffman
>
>
Attachment:
Description: "Nxtopen.dll"
|