PureBytes Links
Trading Reference Links
|
> couple o' questions:
>
> >
> > if time = Sess1EndTime -1 then begin
> > EXITLONG;
> > EXITSHORT;
> > end;
> >
>
> Will T/S adjust Sess1EndTime to an earlier time for days where
> they stop trading earlier than usual, such as half days typical near
> major holidays,
Not that I know
> or days when they close trading due to significant volatility?
when its closed its closed - for whatever reason, neither TS nor YOU
will be able to trade - current example this octover DJII -550 or so
- trading CLOSED 1 hour or so EARLY - any MOC orders been left in
the dark ! - how should TS know, when you dont know and the market
itself
> And .... since T/S expresses Time in an HHMM (hours/mins encoded as
> decimal digits) format, subtracting 1 might cause probs., for
> example, if Sess1EndTime is 1400, because 1399 won't be a valid
> time, and the equality test above won't work.
Im only thinking in S&P terms so 1615-1 = 1614, sorry
youre right - however if a tick would come in at 1400 that would
cause the TRIGGER to trigger !!!!
>Something like this
> might:
>
> Var: etime(0);
>
> { convert end time to hours }
> etime = intpart(Sess1EndTime) + mod(Sess1EndTime, 100)/60.0; {
> subtract a minute from etime } etime = etime - 1/60; { convert
> back to HHMM format } etime = Intpart(etime) * 100 +
> IntrPart(FractPart(etime) * 60 + 0.001);
>
> Or, this might be a little easier to follow:
>
> if mod(Sess1EndTime, 100) = 0 then begin
> { MM = 0, so subtract 1 from HH, and make MM = 59 }
> etime = (Intpart(Sess1EndTime/100)-1) * 100 + 59;
> end else begin
> { otherwise just subtract 1 from HHMM }
> etime = Sess1EndTime - 1;
> end;
looks nice - havent run it yet, as above stuff is good enough for S&P
for me <g>
Thanks
rgds hans
~~~~~
....and bear in mind
that high reward does not come without its partner high risk !
|