.

Highly Accurate Trend Continuation - Amibroker AFL Code

Click Image To Enlarge. Please Rate And Comment.

Highly Accurate Trend Continuation

_SECTION_BEGIN("msf");
mymsf[ 0 ] = C[ 0 ];
for( i = 1; i < BarCount; i++ )
{

mymsf[ i ]=mymsf[ i-1 ]+(C[i]-mymsf[i-1])*.33;
}
Plot(mymsf,"mymsf",colorRed,styleLine);
msfBuy=mymsf>Ref(mymsf,-1);
msfSell=mymsf<Ref(mymsf,-1);
Plot(Close, "Price",colorBlack, styleCandle);
_SECTION_END();
Buy=msfBuy ;
Sell=msfSell ;
PlotShapes( Buy* shapeUpArrow , colorGreen, 0); 
PlotShapes( Sell* shapeDownArrow , colorRed, 0); 



Filter=1 ;
NumColumns = 0;
AddColumn(Close,"CMP", 1.2);
AddColumn((Close-Ref(C,-1))*100/Ref(C,-1),"change", 1.2);
AddColumn(Ref(Close,-1),"PR.Close", 1.2);
AddColumn( IIf( Buy, 66, 83 ), "Signal" , formatChar,2,4 ); 
AddColumn(O,"open", 1.2);
AddColumn(H,"HIGH", 1.2);
AddColumn(L,"low", 1.2);
AddColumn(C,"close", 1.2);
Previous Post Next Post