Need Help in exploring MAs crossover in Amibroker

#1
I need an exploration afl in amibroker to find out 50 EMA & 20 MA crossovers.
Those who are familiar in writing the afl kindly help me.
 
#3
Thnk u for ur reply.But the afl not scaning my database to find out those 20 MAs which is below 50 EMA for SELL setups & Viceversa. Kindly assist.
 
#4
check this,i hope this is sufficient to u

_SECTION_BEGIN("EMA CROSSOVER CHART");
LongPer = Param("Long Period", 20, 30, 100, 5);
ShortPer = Param("Short Period", 50, 30, 100, 5);
LongMA = EMA(C, LongPer);
ShortMA = EMA(C, ShortPer);
LastHigh = HHV(H, LongPer);
GraphXSpace = 10;
Plot(LongMA, " EMA(C, " + WriteVal(LongPer, 1) + ")", colorBrightGreen, styleLine);
Plot(ShortMA, " EMA(C, " + WriteVal(ShortPer, 1) + ")", colorRed, styleLine);
Buy = Cross(LongMA, ShortMA);
Sell = Cross(ShortMA, LongMA);
PlotShapes(shapeUpArrow * Buy, colorBrightGreen, 0, L, - 10);
PlotShapes(shapeDownArrow * Sell, colorRed, 0, H, - 10);
Filter=Buy OR Sell;
Sell=ExRem(Sell,Buy); Buy=ExRem(Buy,Sell);
AddColumn(Buy,"Buy");
AddColumn(Sell,"sell");
AddColumn(BuyPrice,"BuyPrice");
AddColumn(SellPrice,"SellPrice");
_SECTION_END();
 
#5
thank u for ur afl.but my amibroker shows a message in half way point that amibroker crash recovery system & advice me to exit program.Kindly assist.
 

VJAY

Well-Known Member
#7
add my gmail id [email protected] to rectify ur computer .I think uninstall amibroker and re-install .Pl take backup before uninstall
Hi Bhulokeshwar,
Can you please explain how to take backup of AB and use it after reinstall.

Regards
VJAY
 
#9
keshwar i am a new bee , i am looking for a good intra day afl , i have heard that 3 indictors r good for intraday trdng , rsi , macd , moving ave , so i would like that someone can write a formula on these.

BUY signal when all theses 3 condtions satisfied=

1) rsi below 30
2) macd buy signal above zero
3) 20 day moving average holds or if trdng below it then on its crossover

SELL signal=

1)rsi above 70
2)macd sel signal below 0
3)20 day moving averges breaks

i am a new bee tryng to learn if i am wrong then plz correct me on the condtions.....instead of making fun....hehe...........this will help for all new bees like me...thnks in advance