Perfect. Thanks Brian, I appreciate the help, thanks for sharing. Adrian
--- In [email protected], "brian_z111" <[EMAIL PROTECTED]> wrote: > > Cipher, > > Try TimeNum() > > TIMENUM > - get current bar time Date/Time > (AFL 2.0) > > > SYNTAX timenum() > RETURNS ARRAY > FUNCTION Returns the array with numbers that represent quotation > time coded as follows: > 10000 * hour + 100 * minute + second, so 12:37:15 becomes 123715 > EXAMPLE TimeNum() > SEE ALSO Hour(), Minute(), Second(), TimeNum() > > brian_z > > > > --- In [email protected], "cipherscribe" > <adrian.mollenhorst@> wrote: > > > > 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" <brian_z111@> 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... > > > > > > > > > >
