PureBytes Links
Trading Reference Links
|
Hello,
You need Buy == 1 and Sell == 1 instead == 0
Thomas
www.PatternExplorer.com
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of johnmillerinfo
Sent: Wednesday, May 21, 2008 1:23 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Buy/Sell add to watchlist
What is wrog with my formula? Could any one help me please.....
The object is, each time when I run this, it replace the Watchlist 100
with the new stock eligible to BUY and it replace the Watchlist 90
with the new stock eligible to SELL.
Could any one help be with this.
CategoryRemoveSymbol( "", categoryWatchlist, 100);
CategoryRemoveSymbol( "", categoryWatchlist, 90);
Buy=Cross( MACD(), Signal() );
If (Buy== 0, CategoryAddSymbol( "", categoryWatchlist, 100 ), );
Sell=Cross(Signal(), MACD());
If (Sell== 0, CategoryAddSymbol( "", categoryWatchlist, 90 ), );
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|