PureBytes Links
Trading Reference Links
|
Had to
do a little tweaking but thanks for getting me started. Works
OK.
<FONT face=Arial color=#0000ff
size=2>
NDX = <FONT face="Courier New"
color=#0000ff size=1>Foreign(<FONT
face="Courier New" color=#ff00ff size=1>"<FONT color=#ff00ff
size=1>SP-500"<FONT
face="Courier New" size=1>,<FONT face="Courier New" color=#ff00ff
size=1>"C");
Stock = <FONT face="Courier New" color=#0000ff
size=1>Foreign(<FONT
face="Courier New" color=#ff00ff size=1>"<FONT color=#ff00ff
size=1>INVN"<FONT
face="Courier New" size=1>,<FONT face="Courier New" color=#ff00ff
size=1>"C");<FONT
face="Courier New" color=#0000ff size=1>
Plot(Stock/NDX,<FONT
face="Courier New" color=#ff00ff size=1>"Stock/NDX"<FONT
face="Courier New" size=1>,<FONT face="Courier New" color=#ff00ff
size=1>5, styleLine);
<FONT
face=Arial color=#0000ff size=2>had to put NDX in first
line.
<FONT
face=Arial color=#0000ff size=2>
<FONT
face=Arial color=#0000ff size=2>changed symbol to TC2000 style I
use.
Rik Rasmussen
<BLOCKQUOTE
>
<FONT face=Tahoma
size=2>-----Original Message-----From: wavemechanic
[mailto:wd78@xxxxxxxxxxxx]Sent: Friday, February 28, 2003 7:46
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
ratio lines
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Rik
Rasmussen
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">Amibroker
Sent: Friday, February 28, 2003 7:16
PM
Subject: [amibroker] ratio lines
Is anyone aware of AFL code
that causes a ratio line to be plotted based on the ratio of two
symbols?
For example, a ratio of a
stock/SP500.
Try
this:
<FONT color=#800000
size=2>
<FONT
color=#800000 size=2>SPX =
Foreign("^SPX","C");
<FONT
color=#800000 size=2>Stock =
Foreign("Stock","C");
<FONT
color=#800000 size=2>Plot(Stock/NDX,"Stock/NDX",5,
styleLine);
Rik Rasmussen
Send BUG REPORTS to <A
href="">bugs@xxxxxxxxxxxxxSend SUGGESTIONS
to <A
href="">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.
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
ADVERTISEMENT
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.
|