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

[amibroker] Re: Manual Bar Marking



PureBytes Links

Trading Reference Links

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






------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/