Hello cipherscribe,

1600 is not a valid time in AFL - you have to put it into the correct 
format as per the EXAMPLE format in hte the AFL Reference Manual

HOUR
- get current bar's hour Date/Time
(AFL 2.0)
 

SYNTAX  hour()  
RETURNS ARRAY  
FUNCTION  Retrieves current bar's hour  
EXAMPLE Hour()*10000 + Minute() * 100 + Second() 

brian_z


--- In [email protected], "cipherscribe" 
<[EMAIL PROTECTED]> wrote:
>
> How can you tell AB to exit a position on the last bar of the day,
> when your working with intraday (5 min) data?
> 
> I have tried things like sell = hour()>1600, and a few other things,
> but always the trades are held over to the next day, until the
> conventional sell signal kicks in....
> 
> Many thanks in advance...
>


Reply via email to