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

Re: Speaking of Time



PureBytes Links

Trading Reference Links

You need to use an AND instead of an OR in your logic. The time needs to  be both
> 0920 AND < 1600.  Otherwise the statement is always TRUE because the time is
always >= 0920 (which covers from 0920 til 2359) OR <=1600 (which covers from 0000
til 1600)

Hope this helps.

John

LimitMove@xxxxxxx wrote:

> Hello,
> Any insight appreciated on why I get trade listed in my trade by trade system
> report outside of my time parameters? I use time based bars.
> Like trades at 4:10pm? and with close trade at end of day enabled in the stops
> section of my system properties, why some don't close at end of day but the
> trade started after my endt time as well?
>
> inputs:BEGINT(0920),ENDT(1600);
> IF TIME >= BEGINT OR TIME <= ENDT THEN BEGIN
>         trading logic calculation
> end;