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

Re: Re: Re: [amibroker] Baseline Relative Performance charts (Updated AFL)



PureBytes Links

Trading Reference Links

But it helps if the foreign symbol is in my database!

It's working now.

Steve

>----- Original Message -----
>From: "steve_almond" <steve2@xxxx>
>To: Yahoo: amibroker@xxxxxxxxxxxxxxx
>Sent:  Mon Aug 4, 2003 10:49 pm
>Subject: Re: Re: [amibroker] Baseline Relative Performance charts (Updated AFL)
>
>Sad to say, I see Empty all the time.
>
>Steve
>
>>----- Original Message -----
>>From: "Michael.S.G." <OzFalcon@xxxx>
>>To: Yahoo: amibroker@xxxxxxxxxxxxxxx
>>Sent: Mon Aug 4, 2003 2:41 pm
>>Subject: Re: [amibroker] Baseline Relative Performance charts (Updated AFL)
>>
>>Here's an addition to make it all work smoother.
>>
>>Just ammend the code below.
>>
>>//startpoint = 10; // the start point of comparision will be 10th bar
>>sp = Param( "Startpoint %", 55, 1, 100, 1 ); 
>>startpoint = int(BarCount*(sp/100));
>>
>><MSG>
>>
>>
>>At 09:01 PM 4/08/2003 +1000, you wrote:
>>
>>From the S&C Tips 5/2001, There is AFL for "Baseline Relative Performance
>chart"
>>
>>Attached is a revision that Plots all the tickers in a watchist. This is handy
>if you have multiple lists you like to compare.
>>
>> Also, The StartPoint & Watchlist can be modified with the parameters feature
>(CTRL-R)*. 
>>*If you see [EMPTY] next to a ticker - Adjust the StartPoint slider untill you
>get all the tickers. 
>>
>>/* Baseline Relative Performance charts
>>** with XAO as a base line
>>** AFL implementation by Tomasz Janeczko
>>** Watchlist & Parameter's Addition by Michael.S.G. 
>>**
>>** Use Automatic scaling, Grid: Percent, Limits, Middle
>>**
>>** This example plots lines for each entry in watchlist
>>** Bold red - currently selected ticker
>>** White - XAO - Base Line
>>** 
>>** you can of course change the Watchlist/Tickers as you wish
>>*/
>>Listnum = Param( "Watchlist", 5, 0, 100, 1 );// Watchlist to display.
>>
>>//startpoint = 10; // the start point of comparision will be 10th bar
>>startpoint = Param( "startpoint", 10, 1, 5000, 1 ); 
>>
>>// here is a base line
>>price = Foreign("XAO", "C");
>>baseline = 100 * ( price/ValueWhen( Cum(1) == startpoint, price ) - 1 );
>>
>>// Show Currently selected Ticker
>>price = Close;
>>Plot(100 * ( price/ValueWhen( Cum(1) == startpoint, price ) - 1 ) -
>baseline,Name(),4,4);
>>
>>// base line chart (flat line)
>>Plot ( baseline - baseline,"XAO",2,1);
>>
>>list = GetCategorySymbols( categoryWatchlist, listnum );
>>for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
>> {
>> price = Foreign( sym, "C" );
>> Plot (100 * ( price/ValueWhen( Cum(1) == startpoint, price ) - 1 )-
>baseline,sym,6+i,1);
>> }
>
>_____________________________________________________________
>Sent by OnBoards: a bulletin board browser
>Free at http://www.automatedenterprises.com

_____________________________________________________________
Sent by OnBoards: a bulletin board browser
Free at http://www.automatedenterprises.com



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/