try this afl in analysis for Amibroker (AFL)
puppybubby over 13 years ago Amibroker (AFL)
It gives good idea about MA in different parameter.
Src: http://srsc.com.vn/forum/amibroker/7246-newbie-can-giup-do-code-tao-bo-loc-cho-ami.html
Indicator / Formula
Copy & Paste Friendly
ColA=MACD(12,26);
ColB=MACD(12,26) > Signal(12,26,9);
ColC=EMA(C,20)>MA(C,20);
ColC1=Close>EMA(C,10);
ColD=EMA(C,10)>EMA(C,15);
ColD1=EMA(C,15)>EMA(C,20);
ColD2=EMA(C,20)>EMA(C,25);
ColE=Volume>10000;
ColF=Volume;
ColF1=ColB+ColC+ColC1+ColD+ColD1+ColD2;
Buy=colB and colC and ColC1 and colD and ColD1 and colD2 and ColE;
Filter = Buy;
AddColumn( Close, "Close", 1.4 );
AddColumn(ColF,"Vol>10K",1.0);
AddColumn(ColF1,"Tg Sign/6",1.0);
AddColumn(ColA,"MAC",1.0);
AddColumn(ColB,"MAC>sig",1.0);
AddColumn(ColC,"EM20> SM20",1.0);
AddColumn(ColC1,"Clo>E10",1.0);
AddColumn(ColD,"E10>15",1.0);
AddColumn(ColD1,"E15>20",1.0);
AddColumn(ColD2,"E20>25",1.0);
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );2 comments
Leave Comment
Please login here to leave a comment.
Nothing is displayed after copying the code in ami 5.40 ver.
Results will be shown in analysis window!