See if this helps ----------------------------------
// OpensAtHigh.afl // // Identify that the opening price // on the first bar of the day // is the high of that bar. // // Howard Bandy // June 2010 // dn = Day(); FirstBar = dn != Ref( dn, -1 ); OpenAtHigh = FirstBar && ( O == H ); Plot( C, "C", colorBlack, styleCandle ); shapes = shapeUpArrow * OpenAtHigh; shapecolor = OpenAtHigh * colorGreen; PlotShapes( shapes, shapecolor ); ---------------------------------- Thanks, Howard On Wed, Jun 2, 2010 at 11:51 PM, FLOYD LEWIS <[email protected]> wrote: > > > Dear Seniors > > Greetings to you all > > Am new to Amibroker and equally new to the field of AFL writing. > > Does anyone on this group by any chance have an afl which can be run on any > time frame including real time to explore and scan stocks which meet the > condition of open=high or open=low for the first bar only. > > Definition of first bar - It could be any time frame in RT i.e. 3 min or > hourly etc as per the selection but it should be the bar of the opening bell > which should be scanned for the above condition and not the subsequent bars. > > Would sincerely appreciate if any one from this group could share the same. > > I hope i have been able to explain the requirement clearly. > > Thanks in advance. > God Bless > Regards > > >
