| 
 PureBytes Links 
Trading Reference Links 
 | 
Werner,
Take a look at my RUTVOL code in the AmiBroker
library.    It's a system that is based on the
Russell, and ironically designed by a fellow named
Werner.
That afl should provide a good example of how to use a
market timing signal which is what you are describing
below.
Kind Regards,
Gary
--- Werner <WKRAG@xxxxxxxxxxx> wrote:
> Good day,
> 
> I'd like to test a system that buys and sells a
> basket of stocks 
> according to certain conditions (Condition 1,
> Condition 2 etc.)
> 
> As an additional qualifier I'd like to look at the
> general market and 
> BUY my stocks if the trend is up and sell if the
> trend is down (based 
> on QQQ). 
> 
> Something like this (in plain English):
> 
> Buy: If  Cond1 and Cond2   AND  the MACD of the QQQ
> crosses upwards
> 
> Sell is the opposite. 
> 
> In other words, the QQQ will add an element of
> TIMING to my other 
> conditions, as I only BUY my stocks if the QQQ
> qualifies. 
> 
> How do I do that?
> 
> I know it has to do with the SetForeign function but
> could not get it 
> to work. 
> 
> Any suggestions?
> 
> Thank you,
> 
> Werner
> 
> 
> 
> 
> 
	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 
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 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/
<*> 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/
 
 |