PureBytes Links
Trading Reference Links
|
Stephane,
Your is an interesting idea, but I think to use global server setup is
problematical. In spite of I update every morning my time machine with
atomic clock, one day last bar (1 min bar) is 1741, another day 1740..so I
have to setup global server at 1741...in those day last trading session bar
is at 1740 that code will not work...
I think a better way is to "catch" the last trading session bar displayed on
the chart....Date <> date of tomorrow or Date of next bar > Date are in this
direction but they make to me another problem...
But at this point I think it's better in my next post to share the whole
idea and code
Mario
----- Original Message -----
From: "Stephane" <stephane@xxxxxxxxxx>
To: <fritz@xxxxxxxx>
Cc: <omega-list@xxxxxxxxxx>
Sent: Wednesday, March 20, 2002 11:27 AM
Subject: Re: EL question
> The Sess1endtime function effectively
> takes the Globalserver times.
>
> Try that :
>
> if (date<="Date of day the market change his end time")
> then
> begin
> if (time=1730) then buy next bar at open
> end
> else
> begin
> if (time=1740) then buy next bar at open
> end;
>
> But it will works on this market only.
>
> Steph
>
>
> ----- Original Message -----
> From: "Gary Fritz" <fritz@xxxxxxxx>
> To: "marika11" <marika11@xxxxxxxxx>
> Cc: <omega-list@xxxxxxxxxx>
> Sent: Tuesday, March 19, 2002 6:15 PM
> Subject: Re: EL question
>
>
> > > there is a problem...
> > > I think Sess1Endtime take the end time from Globalserver; the
> > > problem is: the market I follow recently change his end time (from
> > > 1730 to 1740); so in Global server now it's 1740; historical data
> > > to test ends at 1730; so
> > > If (time=Sess1Endtime) then
> > > doesn't work..
> > > How can I keep anyway the last trading session bar?
>
>
>
|