Detecting DT DB within a range of 0.5% of previous days / bars High Low:
Not working, kindly help...
AFL:
doubletop = ((High*0.995) < (Ref( High , -1 )) < (High*1.005)) OR (High == Ref( High , -1 ));
doublebottom = ((Low*0.995) < (Ref( Low , -1 )) < (Low*1.005)) OR (Low == Ref( Low , -1 ));
Buy = doubletop;
Sell = doublebottom;
Filter=Sell OR Buy ;
{
AddColumn( IIf( doubletop , 88, 01), "DT", formatChar );
AddColumn( IIf( doublebottom , 88, 01), "DB", formatChar );
AddColumn(High, "High", 6.2, colorDefault, colorDefault, 120);
AddColumn(Low, "Low", 6.2, colorDefault, colorDefault, 120);
AddColumn(Volume, "Volume", 6.2, colorDefault, colorDefault, 120);
}