need a bullish AFL

#1
Gurus, seniors and frnds,
I have just started trading and trying my hands on amibroker.

Can somebody provide me with an afl that i can use to scan the stocks indicating bullishness with the regular indicators that u may be using in your trades

Currently when i scan the shares with the built in MACD, RSI, ADX indicator, i get an error "Missing buy/sell varibales assignments :confused:". I had posted this here but there was no reply from any one.

What should I do that the scan runs without this error being reported?????

Pls help

Thanks n best regards
 

asnavale

Well-Known Member
#2
Gurus, seniors and frnds,
I have just started trading and trying my hands on amibroker.

Can somebody provide me with an afl that i can use to scan the stocks indicating bullishness with the regular indicators that u may be using in your trades

Currently when i scan the shares with the built in MACD, RSI, ADX indicator, i get an error "Missing buy/sell varibales assignments :confused:". I had posted this here but there was no reply from any one.

What should I do that the scan runs without this error being reported?????

Pls help

Thanks n best regards
Hi JYM.

To get scan results, you need to define BUY and SELL conditions in your AFL based on the indicators you use. Only then the scan will list out the scrips which satisfy the condition. If you want only BUY triggers then define only BUY condition and scan.

-Anant
 
Last edited:

1sandeepgupta

Well-Known Member
#4
The simple example afl is as below-

SL = Param("SL",5,1,15,1);
FL = Param("FL",11,11,100,1);
X1 = EMA(C,SL);
X2 = EMA(C,FL);
Buy = Cross(X1,X2);
Sell= Cross(X2,X1);
Plot(C,"",colorBlack,styleCandle);
Plot(X1,"X1",colorGreen,styleLine);
Plot(X2,"X2", colorBlue,styleLine);
Filter = Buy;
AddColumn(C,"close",1.4);

This is ema cross over system, you simply paste in Analysis-Formula Editor and save, Then click on apply indicator this will plot stock chart and two ema.
You can explore the database for the buy signals using automatic analysis or scan it for the back testing.:)
 

Similar threads