AFL posted by bunti, request some one to create exploration for this AFL
Code:
Plot(C, "Close",colorLightGrey,styleCandle);
buy = C > ref(H,-1);
sell = C < ref(L,-1);
//where,
//C = current days close ,
//ref = is used when u want to use historical values,
//-1 = previous bar ....-2 prior to previous bar and so on......,
//H = high of the day,
//L = low of the day.
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
//this exrem func will eliminate repetative signals once the buy/sell condition met,
PlotShapes( Buy*shapeUpArrow, colorWhite, 0, Low );
PlotShapes( Sell*shapeDownArrow, colorWhite, 0, High );