PureBytes Links
Trading Reference Links
|
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
barvisible = Status("barvisible");
firstBarVisible = barvisible AND NOT Ref( barvisible, -1 );
// code block for 1st ticker
ticker = "MSFT";
array1=Foreign(ticker,"C");
scaledArray1=100*(array1/ValueWhen(firstBarVisible,array1)-1);
Plot(scaledArray1,"",colorBlue,4);
Title = EncodeColor(colorBlue) + ticker + " ";
// code block for 2nd ticker
ticker = "YHOO";
array2=Foreign(ticker,"C");
scaledArray2=100*(array2/ValueWhen(firstBarVisible,array2)-1);
Plot(scaledArray2,"",colorRed,4);
Title = Title + EncodeColor(colorRed) + ticker + " ";
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 > >
Do you Yahoo!?SBC Yahoo! - Internet access at a great low price.
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 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.
|