PureBytes Links
Trading Reference Links
|
Perhaps use setforeign instead
SetForeign("<font size=3
face=Arial>!Ndx<font
face=Arial> ", True, True );
Buy<font
face=Arial> = C>ref(c,-1);
RestorePriceArrays( True );
Sell = C < Ref(C,-1);
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
<span
>-----Original Message-----
From: Herman van den Bergen
[mailto:psytek@xxxxxxxx]
Sent: Saturday, May 08, 2004 5:38
PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Foreign
Syntax
<font size=2
face="Times New Roman">
<font size=2 color=blue
face=Arial>Perhaps
you have to add a ! to the foreign index:
<font size=2
face="Times New Roman">
<font size=2 color=blue
face=Arial>MyNdx =
Foreign("!Ndx", "C");
Buy = MyNdx > Ref(MyNdx,-1);
Sell = C < Ref(C,-1);
<font size=2
face="Times New Roman">
<font size=2 color=blue
face=Arial>herman
-----Original Message-----
From: chassis_73
[mailto:tessaglia@xxxxxxxxxxx]
Sent: Saturday, May 08, 2004 2:47
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Foreign Syntax
<font size=2
face="Courier New">Hi,I've got this simple AFL.<font
face="Courier New">
MyNdx = Foreign("Ndx", "C");
Buy = MyNdx > Ref(MyNdx,-1);
Sell = C < Ref(C,-1);
I think I'm saying "Buy when Nasdaq > than
yesterday.Sell when my
stock is < than yesterday."
I cannot get any buy signal when I do the scan,but
only Sell signal.
Where's my mistake?
Best Regards
Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
face="Courier New">
Send 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
Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
face="Courier New">
Send 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
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 the Yahoo! Terms of Service.
|