To get IEOD Data into Amibroker visit the link below:
http://tinyurl.com/ctzqcsy
Here is the Amibroker AFL that scans stocks based on RSI and MACD. The criteria of afl is to explore stocks whose Macd is positive and RSI is greater than 65.
AFL Code:
/* Macd positive and RSI greater than 65 */
/* you can customize RSI period and also RSI value of 65 */
Buy=Cross(RSI(14),65) AND MACD(12,26)>0;
Sell=Cross(40,RSI(14)) AND MACD(12,26)<0;
Buy=ExRem(Buy,Sell); //to remove excess signals
Sell=ExRem(Sell,Buy); //to remove excess signals
Clr=IIf(Buy,colorBlue,IIf(Sell,colorRed,False));
PlotShapes(Buy*shapeSmallUpTriangle+Sell*shapeSmallDownTriangle,Clr);
Filter=Buy OR Sell;
AddColumn(C,”Close”,1.1);
AddColumn(H,”High”, 1.1);
AddColumn(L,”Low”, 1.1);
/* you can customize RSI period and also RSI value of 65 */
Buy=Cross(RSI(14),65) AND MACD(12,26)>0;
Sell=Cross(40,RSI(14)) AND MACD(12,26)<0;
Buy=ExRem(Buy,Sell); //to remove excess signals
Sell=ExRem(Sell,Buy); //to remove excess signals
Clr=IIf(Buy,colorBlue,IIf(Sell,colorRed,False));
PlotShapes(Buy*shapeSmallUpTriangle+Sell*shapeSmallDownTriangle,Clr);
Filter=Buy OR Sell;
AddColumn(C,”Close”,1.1);
AddColumn(H,”High”, 1.1);
AddColumn(L,”Low”, 1.1);
Here is the short video of the AFL result:
If you like the articles in this site do not forget to Share it to others, Like and Plus one us.
Regards
Priya.
| You are reading this article on analystcalls.in, Stay tuned for career, Education news, Jobs, Exam Results, Answer keys, Interviews & Job discussions, Stock Market Technical and Trading Analysis and Calls, Latest Trendy News! For regular updates like us on Facebook and Subscribe by Email to get immediate updates. |


eroor in afl
i wants to see charts from AMIBROKER,,,GIVE ME DETAILS,,,CHARGES,,,ETC
error is that AddColumn(C,”Close”,1.1);
<— here syntax error probably missing semicolon