AFL Exploration

#1
Hi All members,

Below afl plots High and Low for:

Previous day & 3rd day from today.

How can I create an exploration so that all the stocks that close above these two lines show up in the scan.

Please help.

//-------------------------------AFL----------
_SECTION_BEGIN("Price1");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBrightGreen ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("PreDay HLC");
function CDL( array )
{
doy = DayOfYear();
Lastdoy = doy == LastValue( doy );
Dayline = array * Lastdoy;

return IIf( Dayline, Dayline, Null );
}

//TIME FRAME CALCULATION
H1 = TimeFrameGetPrice( "H", inDaily, -1 ); // yesterdays high
L1 = TimeFrameGetPrice( "L", inDaily, -1 ); // low
H3 = TimeFrameGetPrice( "H", inDaily, -3 ); // 3day high
L3 = TimeFrameGetPrice( "L", inDaily, -3 ); // 3day low
C1 = TimeFrameGetPrice( "C", inDaily, -1 ); // close
O1 = TimeFrameGetPrice( "O", inDaily, -1 ); // close
DayO = TimeFrameGetPrice( "-1", inDaily ); // current day open


Plot(H1, "",colorGreen,styleDashed+styleNoRescale);
Plot(L1, "",colorRed,styleDashed);
Plot(H3, "",colorGreen,styleLine+styleNoRescale);
Plot(L3, "",colorRed,styleLine);

_SECTION_END();

//-----------------------------------