[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] All Those Tickers...



PureBytes Links

Trading Reference Links




Steve,
 
the day has been very long for me and therefore, I made a simple mistake in 
my coded version I sent to you. Here is the corrected program <FONT 
color=#0000ff>:-) :

// Notice: This is a corrected version!!
// Scan your database with this small sample code daily or devise minor or 
even larger modifications to this code!<FONT face="Courier New" 
size=1>
// Here is your price preference for a pre-filter to remove unwanted stocks. 
The pre-filter might be varied if you like, but it could be like this 
one.<FONT face="Courier New" 
color=#009300 size=1>
// Note that the stock prices occur in between a $10-$50 price range having 
also a decently high - but not an exceedingly large - volume:<FONT 
face="Courier New" size=1>
preFilter = (<FONT face="Courier New" color=#ff00ff 
size=1>1 < <FONT 
face="Courier New" color=#ff6820 size=1>close<FONT face="Courier New" 
size=1> <FONT face="Courier New" color=#ff6820 
size=1>AND <FONT 
face="Courier New" color=#ff6820 size=1>close<FONT face="Courier New" 
size=1> < 50<FONT 
face="Courier New" size=1>) <FONT face="Courier New" color=#ff6820 
size=1>AND (<FONT 
face="Courier New" color=#ff00ff size=1>1E5<FONT face="Courier New" 
size=1> < <FONT face="Courier New" color=#800080 
size=1>MA(<FONT 
face="Courier New" color=#ff6820 size=1>volume<FONT 
face="Courier New" size=1>, <FONT face="Courier New" color=#ff00ff 
size=1>50) <FONT 
face="Courier New" color=#ff6820 size=1>AND<FONT face="Courier New" 
size=1> <FONT face="Courier New" color=#800080 
size=1>MA(<FONT 
face="Courier New" color=#ff6820 size=1>volume<FONT 
face="Courier New" size=1>, <FONT face="Courier New" color=#ff00ff 
size=1>50) < <FONT 
face="Courier New" color=#ff00ff size=1>1E6<FONT face="Courier New" 
size=1>);
// For example, your filter could be as follows if you like:<FONT 
face="Courier New" size=1>
yourFilter = <FONT face="Courier New" color=#800080 
size=1>Cross(<FONT 
face="Courier New" color=#800080 size=1>MACD<FONT face="Courier New" 
size=1>(), <FONT face="Courier New" color=#800080 
size=1>Signal());<FONT 
face="Courier New" color=#ff6820 size=1>
filter = yourFilter 
AND<FONT 
face="Courier New" size=1> preFilter;<FONT face="Courier New" 
color=#ff6820 size=1>
buy = <FONT 
face="Courier New" color=#800080 size=1>IIF<FONT face="Courier New" 
size=1>(<FONT face="Courier New" color=#ff6820 
size=1>filter == <FONT 
face="Courier New" color=#ff6820 size=1>true<FONT face="Courier New" 
size=1>, <FONT face="Courier New" color=#ff6820 
size=1>true, <FONT 
face="Courier New" color=#ff6820 size=1>false<FONT face="Courier New" 
size=1>);
sell = <FONT 
face="Courier New" color=#800080 size=1>Cross<FONT face="Courier New" 
size=1>(<FONT face="Courier New" color=#800080 
size=1>Signal(), <FONT 
face="Courier New" color=#800080 size=1>MACD<FONT face="Courier New" 
size=1>());
AddColumn(<FONT 
face="Courier New" color=#ff6820 size=1>close<FONT face="Courier New" 
size=1>, <FONT face="Courier New" color=#0000ff 
size=1>"close");<FONT 
face="Courier New" color=#800080 size=1>
AddColumn(<FONT 
face="Courier New" color=#ff6820 size=1>volume<FONT 
face="Courier New" size=1>, <FONT face="Courier New" color=#0000ff 
size=1>"volume", format = <FONT 
face="Courier New" color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(preFilter, <FONT 
face="Courier New" color=#0000ff size=1>"preFilter"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(yourFilter, <FONT 
face="Courier New" color=#0000ff size=1>"yourFilter"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
Addcolumn(<FONT 
face="Courier New" color=#ff6820 size=1>filter<FONT 
face="Courier New" size=1>, <FONT face="Courier New" color=#0000ff 
size=1>"filter", format = <FONT 
face="Courier New" color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(<FONT 
face="Courier New" color=#800080 size=1>MACD<FONT face="Courier New" 
size=1>(), <FONT face="Courier New" color=#0000ff 
size=1>"MACD()");<FONT 
face="Courier New" color=#800080 size=1>
AddColumn(<FONT 
face="Courier New" color=#800080 size=1>Signal<FONT 
face="Courier New" size=1>(), <FONT face="Courier New" color=#0000ff 
size=1>"Signal()");<FONT 
face="Courier New" color=#800080 size=1>
AddColumn(<FONT 
face="Courier New" color=#ff6820 size=1>buy<FONT face="Courier New" 
size=1>, "buy"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0<FONT face="Courier New" 
size=1>);
AddColumn(<FONT 
face="Courier New" color=#ff6820 size=1>sell<FONT face="Courier New" 
size=1>, "sell"<FONT 
face="Courier New" size=1>, format = <FONT face="Courier New" 
color=#ff00ff size=1>1.0);
Sorry for the inconvenience!
Best Regards,
Udo
 






Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.