PureBytes Links
Trading Reference Links
|
What
are the actual values of the lines created by this refering
to?
<SPAN
class=906044118-25072004>
<SPAN
class=906044118-25072004>
I put
the code below in exactly as shown, but I can not make sense of the line
values.
<SPAN
class=906044118-25072004>
<SPAN
class=906044118-25072004>Currently MSFT is 34.62 but there is no way MSFT is up
34% in the period of my chart.
<SPAN
class=906044118-25072004>
Rik Rasmussenstockanalyzer Yahoo Group Moderator<A
href=""
target=_blank>http://groups.yahoo.com/group/stockanalyzer/
<BLOCKQUOTE
>
<FONT face=Tahoma
size=2>-----Original Message-----From: Salil V Gangal
[mailto:salil_gangal@xxxxxxxxx]Sent: Saturday, May 15, 2004 7:41
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
Performance Charts
Sam,
Perhaps following will help. This code is for AmiBroker's
IB. Copy-n-paste the code block of 2nd ticker multiple times per
your needs to put additional tickers. Also, use tickers you
need in place of "MSFT", "YHOO".
// Chart display similar to FT<FONT
face="Courier New">
barvisible = Status(<FONT
color=#ff00ff>"barvisible");
firstBarVisible = barvisible AND NOT <FONT
color=#0000ff>Ref( barvisible, -1
);
// code block for 1st ticker
ticker = "MSFT";<FONT
size=1>
array1=Foreign(ticker,<FONT
color=#ff00ff>"C");
scaledArray1=100*(array1/<FONT
color=#0000ff>ValueWhen(firstBarVisible,array1)-<FONT
color=#ff00ff>1);
Plot(scaledArray1,<FONT
color=#ff00ff>"",colorBlue,<FONT
color=#ff00ff>4);
Title = <FONT
color=#0000ff>EncodeColor(colorBlue) + <FONT
face="Courier New">ticker + "
";
// code block for <FONT
face="Courier New" color=#008000>2nd
ticker
ticker = "<FONT face="Courier New"
color=#ff00ff>YHOO";
array2=Foreign(ticker,<FONT
color=#ff00ff>"C");
scaledArray2=100*(array2/<FONT
color=#0000ff>ValueWhen(firstBarVisible,array2)-<FONT
color=#ff00ff>1);
Plot(scaledArray2,<FONT
color=#ff00ff>"",colorRed,<FONT
color=#ff00ff>4);
Title = Title + <FONT
color=#0000ff>EncodeColor(colorRed) + <FONT
face="Courier New">ticker + "<FONT
face="Courier New" color=#ff00ff> <FONT
color=#ff00ff>";
Regards,
- Salil V
Gangal
--- Sam Levy <slevy1220@xxxxxxxxxxxxx> wrote: > Has
anyone used Amibroker to construct "performance charts" similar > to
those available at the following link? > >
http://stockcharts.com/charts/performance/ > > If so, would
appreciate a suggestion on how to construct afl code. > Thanks >
>
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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.
|