AmiBroker formula Language

#41
Hello Friends

Can anybody guide me about how to use scanning future of AmiBroker?
If I want to scan list of stocks matching following conditions:

1. ADX is >30 and rising
2. Last bar was streddling 20EMA ie. H>20EMA>L
2. Close > previous close and L > 20EMA

Sudesh
Hi,

If you want all the above conditions to be met, then the AFL is:

Buy = ADX(14) > 30 AND PDI(14) > MDI(14)
AND H > EMA(C,20) AND EMA(C,20) > L
AND C > Ref(C,-1) AND L > EMA(C,20);
But I think either I'm wrong or the above conditions are individual one, because its not generating even one buy signal for my whole Amibroker database!

Praveen.
 

karthikmarar

Well-Known Member
#42
Hi,

If you want all the above conditions to be met, then the AFL is:

Buy = ADX(14) > 30 AND PDI(14) > MDI(14)
AND H > EMA(C,20) AND EMA(C,20) > L
AND C > Ref(C,-1) AND L > EMA(C,20) ;

But I think either I'm wrong or the above conditions are individual one, because its not generating even one buy signal for my whole Amibroker database!

Praveen.

Praveen

EMA(C,20) > L and L > EMA(C,20) contrary signals... :)

regards

karthik
 
#44
Dear Mr.karthikmarar and Mr. bvpraveen
Thank you very much for your reply. But I am not aware of how to use Amibroker explorer or scanner. where should I copy this code and how to run explorer or scanner?
I will be thankful to you if you guide me about it.
Thanks
Sudesh
 
#45
Dear Mr.karthikmarar and Mr. bvpraveen
Thank you very much for your reply. But I am not aware of how to use Amibroker explorer or scanner. where should I copy this code and how to run explorer or scanner?
I will be thankful to you if you guide me about it.
Thanks
Sudesh
Hi,

Please refer to the Amibroker User Guide, which explains all the necessary things, in detail. It even gives some examples. Step by step procedures are there.

Please read through the whole User Guide, atleast once. That will solve most of your doubts.

After going through that, if you still have queries, post it in Traderji. Amibroker users will try to help you.

All the best,
Praveen.
 

rpc

Active Member
#47
hi siddhakala
pls give the link to download.I had been to the site but could not find where is the user's guide.Pls help
rpc
 
#49
Thank you Praveen I have downloaded 800 pages User Guide from amibroker.com-Downloade. I hope you have recomended same.

Thanks

Sudesh
1) If you are planning to learn AFL, first learn some important functions that are used frequently, from that guide. Then can go for other functions.

2) When you find time, just run through the basic parts of navigating and using Amibroker. Although it might seem trivial, there are some shortcut keys and small features hidden in between the lines, which I find very helpful in using Amibroker.

All the best.

Praveen.
 

Similar threads