PureBytes Links
Trading Reference Links
|
--- "M. Simms" <prosys@xxxxxxxxxxxxxxxx> wrote:
Excuse me, but doesn't the phrase "next open" within
a buy/sell/exitlong/exitshort statement work in
TS2000i (but not in TS4) ???
You're excused (just kidding),
Actually, it's the phrase "Open of Tomorrow" that can
be used within EL to reference the next bars open.
The problem is when you want to program a multidata
system that ALSO references the open of the next bar.
For example, say you wanted to create a stock trading
system that entered on a stop, at the Open of Tomorrow
plus the Average True Range of the last three days
(Volatility Breakout entry). BUT, you only want to
take the trade if the close of an Index (Data2) is
greater than it's close 9 days ago (the Setup/Filter).
This would be impossible to do without a dll that
grabs the next bars open.
Try it w/out a dll workaround and you'll see what I
mean.
-Vic
--- "M. Simms" <prosys@xxxxxxxxxxxxxxxx> wrote:
> Excuse me, but doesn't the phrase "next open" within
> a
> buy/sell/exitlong/exitshort statement work in
> TS2000i (but not in TS4) ???
>
> > -----Original Message-----
> > From: Vic Brower [mailto:techtrader12@xxxxxxxxx]
> > Sent: Wednesday, August 01, 2001 6:41 PM
> > To: omega-list@xxxxxxxxxx
> > Subject: Re: omega-digest Digest V101 #261
> >
> >
> > Phil,
> >
> > Thanks for posting the nxtopen.dll. I own TS2000i
> & I
> > wasn't able to make it work though. I tried
> creating
> > the user function as you wrote it...
> >
> >
>
DefineDllFunc:"nxtopen.dll",LONG,"GetOpen",LPLONG,INT;
> > NextOpen=GetOpen(&Open,-1)/PriceScale;
> >
> > I also tried...
> >
> >
>
DefineDllFunc:"C:\OMEGA\PROG\nxtopen.dll",LONG,"GetOpen",LPLONG,INT;
> > NextOpen = GetOpen(&Open,-1)/PriceScale;
> >
> > The nxtopen.dll is, in fact, in my C:\OMEGA\PROG\
> > directory.
> >
> > Here is a segment of code from the multidata
> system I
> > created to make use of this dll.
> >
> > {Buy & Sell Conditions based on Data2}
> > Condition1 = MOM > 0 + (SwingAv * BuySellFac) ;
> > Condition2 = MOM < 0 - (SwingAv * BuySellFac) ;
> >
> > {***********************
> > Market Entries
> > ***********************}
> >
> > {Buy signal using Data2 as a setup}
> >
> > If Condition1 then Buy Num shares at NextOpen +
> > (AvgTrueRange(3) * BuySellFac) Stop ;
> >
> > {Sell signal using Data2 as a setup}
> >
> > If Condition2 then Sell Num shares at NextOpen -
> > (AvgTrueRange(3) * BuySellFac) Stop ;
> >
> > When I try to apply this system to a multidata
> chart I
> > get two error messages.
> > First - "Cannot find nxtopen.dll". Then - "Cannot
> find
> > function, GetOpen"
> >
> > Does anyone know how to make this (or any)
> nextopen
> > function work in 2000i?
> >
> > TIA
> >
> > -Vic
> >
> >
> >
> >
> > > From: "Phil Lane" <patterntrader@xxxxxxxxxx>
> > > To: "Scott Hoffman" <trader20@xxxxxxxxxxxxxx>,
> > > <omega-list@xxxxxxxxxx>
> > > Subject: Re: Mixing open next with data2
> > >
> > > 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
> >
> >
>
>
|