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

[amibroker] Re: Scan Question?



PureBytes Links

Trading Reference Links

Thanks for the reply but I don't understand how this would be done.
My example is this

Cond1 = Foreign("!SPX","Close") AND ADX() > 25 AND Cross(PDI(),MDI());

I want to use this condition on the !SPX to trigger a buy signal on 
the current stock or a list of stocks the above line does generate 
buy signals but they don't seem to be meaningful.
How should I write this line??
My sell is simply

Buy = Cond1;
Buy = ExRemSpan( Buy,7);
Sell = Ref(Buy,-7);

Thanks
Ernie
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> You can use the foreign function to call up the other chart arrays
> 
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
> 
> -----Original Message-----
> From: ewn87544 [mailto:ewn87544@x...] 
> Sent: Tuesday, 3 June 2003 7:30 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Scan Question?
> 
> Is it possible to create a profit backtest that uses other stocks 
as 
> an indicator. 
>  An example would be using a moving avg crossover of the foreign 
> symbol !ndx as one of the requirements to trigger other signals to 
buy 
> or sell sunw? 
>  Is this possible?? How would it be done?
> THANKS
> Ernie
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 
http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/