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

RE: [amibroker] Re: Scan Question?



PureBytes Links

Trading Reference Links




<SPAN 
class=549265203-04062003>Ernie,
<SPAN 
class=549265203-04062003> 
<FONT 
color=#ff0000>Cond1 = Foreign("!SPX","Close") AND ADX() > 25 AND 
Cross(PDI(),MDI());are you saying you want the spx adx>25 and 
a cross of the spx pdi and mdi??
<SPAN 
class=549265203-04062003> 
if so 
that is not what you have coded. What you have is spx close and the current 
stocks adx>25 and current stocks cross of pdi and mdi.
<SPAN 
class=549265203-04062003> 
You 
could re assign the ohlc data......
<SPAN 
class=549265203-04062003> 
<SPAN 
class=549265203-04062003>o=Foreign("!SPX","O");
<SPAN 
class=549265203-04062003>h=Foreign("!SPX","H")  ;
<SPAN 
class=549265203-04062003>l=Foreign("!SPX","L") ;
<SPAN 
class=549265203-04062003>c=Foreign("!SPX","C");
<SPAN 
class=549265203-04062003> 
<SPAN 
class=549265203-04062003>cond1=ADX() > 25 AND 
Cross(PDI(),MDI());
<SPAN 
class=549265203-04062003> 
<A 
href="">//then assign  them 
backo=o;
<SPAN 
class=549265203-04062003>h=h;
<SPAN 
class=549265203-04062003>l=l;
<SPAN 
class=549265203-04062003>c=c; 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: ewn87544 
[mailto:ewn87544@xxxxxxxxxxx]Sent: Tuesday, June 03, 2003 11:37 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
Scan Question?Thanks for the reply but I don't 
understand how this would be done.My example is thisCond1 = 
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 
simplyBuy = Cond1;Buy = ExRemSpan( Buy,7);Sell = 
Ref(Buy,-7);ThanksErnie--- In amibroker@xxxxxxxxxxxxxxx, 
"Graham" <gkavanagh@xxxx> wrote:> You can use the foreign function 
to call up the other chart arrays> > Cheers,> 
Graham> <A 
href="">http://groups.msn.com/ASXShareTrading> 
<A 
href="">http://groups.msn.com/FMSAustralia> 
> -----Original Message-----> From: ewn87544 
[mailto:ewn87544@xxxx] > 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: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
--------------------------------------------> Check group FAQ at:> 
<A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > Your use of Yahoo! Groups is subject to <A 
href="">http://docs.yahoo.com/info/terms/Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







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.