Hi All,
Can anyone recommend a software to scan for stocks with certain criteria's?
I am after software that is easy to use and understand for beginners at coding language something which is very basic and can be used easily?
I know Amibroker and other softwares can do it, but I just can't understand all these scripts and coding language.
appreciate any help.
cheers
leyy
leyy, AFL of AmiBroker is very simple language.
For example if you would want to scan stocks whose current day's close is higher than the day's open ....
Well, it's just one line of AFL code.
or
both output all bars of the data base where close is higher than open ( of your set bar timeframe) .
But if you just want to get the most recent occurrence it's simple again
Code:
Filter = C > O AND Status( "LastBarInRange" );
So now the scanner outputs just the last occurrence.
Now it could happen that you want to scan a watchlist but not the whole database.
Code:
Filter = C > O AND Status( "LastBarInRange" ) AND InWatchlist( 0 );
So now it scans for all symbols that are part of watchlist number 0 ( you have put them in there before).
And as you can see each search criteria is connected by AND operator.
Now it could happen that you want to exclude an industry where one or more of those symbols of your watchlist 0 is part of.
I guess you already know it, yes it's simple again
Code:
Filter = C > O AND Status( "LastBarInRange" ) AND InWatchlist( 0 ) AND NOT IndustryID(1) == "Software & Programming";
Now stocks of industry "Software & Programming" are excluded by using AND NOT.
Maybe you want to add some columns
like
Code:
Filter = C > O AND Status( "LastBarInRange" ) AND InWatchlist( 0 ) AND NOT IndustryID(1) == "Software & Programming";
AddColumn( Close, "Close", 1.2);// outputs bar's Close price, two decimal places
Addcolumn( Open , "Open", 1.2);// outputs bar's Open price, two decimal places
AddColumn( Close - Open, "Close minus Open", 1.1);// outputs Close minus Open, one decimal place
Addcolumn( ROC( C, 1 ) , "Rate Of Change", 1.1); // outputs 1 bar percent rate-of-change of the closing prices, one decimal place
etc etc
Of course this is a very simple example for using AB's explorer and codes can become more complex if you wanna add more complex logic. But you can see that even for programming beginners it is not difficult. Don't be afraid of programming. It can be fun, actually.