That's wierd, because when I ask for hour() results in explorer, I get results like 16.00. I tried using the period as well, but it did not help.
So what would be a valid time in AFL for 15:55? Cipher --- In [email protected], "brian_z111" <[EMAIL PROTECTED]> wrote: > > 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" > <adrian.mollenhorst@> 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... > > >
