Here is a variation of http://www.linnsoft.com/scans/tdSequentialSetup.htm method. The small hollow circles are used as warnings of the upcoming Buy signal, which comes as soon as the sequence is interrupted. It seems interesting. Here is the AFL code and some amibroker charts follow in the attachement. Plot(C,"C",colorBlack,64);Title=Name(); for(x=5;x<20;x++) { S2=Sum(C<Ref(C,-3),x)==x; Buy=s2==0 AND Ref(s2,-1); PlotShapes((shapeHollowSmallCircle+shapePositionAbove)*s2,x); PlotShapes(shapeUpArrow*Buy,colorBrightGreen); Title=Title+WriteIf(s2,"["+WriteVal(x,1.0)+"]",""); }
A complete buy/sell sequential variation is posted at http://groups.yahoo.com/group/amibroker/message/46760 Warning signals, anticipating the final buy/sell signal are modified to begin from the 5th day and go up to the 25th. The buy/sell signal is produced as soon as the sequence is interrupted.