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

Re: [amibroker] Relative Performance Plots



PureBytes Links

Trading Reference Links

Hi Joe - Thanks!   8 - )
 
Sorry to hear that you are having trouble, but I see that TJ has already come to the rescue. I never had any problems with it, but my guess would be that maybe your friend has current ticker set to something with only a few data bars and foreign arrays are getting truncated to a very short length. If you can't fix it, let me know and I will work with you to get it up and running.
 
Steve
 
PS - If you or your friend is interested, I also created 31 similar codes which compare all industries within each TC2K sector.  And, believe it or not, I created a final code that compares all 209 industries on the same pane ( I held off on that one until TJ introduced looping - I couldn't handle the thought of cutting, pasting and renaming that many foreign tickers ). Of course, it is basically unreadable, *except* that the outliers stand out pretty clearly so you *can* see which industries offer the potential for making the most money. If you are intersted in any of these, let me know and I will zip them up for you.
----- Original Message -----
Sent: Thursday, February 02, 2006 11:04 AM
Subject: Re: [amibroker] Relative Performance Plots

Hello,
 
Simply his EndBar apparently is equal to -1 on some occassion.
 
And you have to check for this:
 
for ( Bar = EndBar + 1; EndBar >= 0 AND Bar < BarCount; Bar++ )

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Joe Landry
Sent: Thursday, February 02, 2006 4:22 PM
Subject: [amibroker] Relative Performance Plots

Steve
I forwarded your routine to a friend of mine who has AB and TC2000 however he ran into
a subscript out of range flag when he tried to compile the routine. 
 
Seems the compiler evaluates the CarryFwd section and
 
if ( CarryFwd ) // fill bars after range
  for ( Bar = EndBar + 1; Bar < BarCount; Bar++ )
  {
   T1Chg[Bar]  = T1Chg[EndBar];
   T2Chg[Bar]  = T2Chg[EndBar];
 
Balks with the following message
 
   This is his message.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I get an error on this afl. Line 192 to 223 Subscript out of range. You must not access array elements outside )......(barcount -1))range.
Do you have any idea as what to do?
 
Bill 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
If I set CarryFwd to zero without the ParamToggle statement then it compiles without error.  If I set the default for Paramtoggle to 0, (it's
supposed to default to zero but thought I'd change it from the 1 that you had in the statement)
it stll compiles out of range flags.
 
Thanks
JOE
 
 
----- Original Message -----
From: Joe Landry
Sent: Wednesday, February 01, 2006 8:06 PM
Subject: Re: [amibroker] SelectedValue vs BeginValue

Steve - Outstanding work and so well documented!
 
I have QP3 and develop a composite average and breadth internals of each of QP 12 sectors for a limited
universe of stocks (about 1200) but always wanted to see the Relative Strength plots for the sectors
and this looks like it will do it for me. 
 
Since I only have 12 sectors, I'll have to perform surgery on the logic and the plots and hope I can apply
the scapel in the right place. 
 
Thanks for placing this out here.

Best regards
Joe Landry
 
----- Original Message -----
Sent: Friday, January 06, 2006 9:30 PM
Subject: Re: [amibroker] SelectedValue vs BeginValue

Hi Ken,

Maybe you can modify the attached code - it plots relative price change of
TC2K sectors, and is pretty flexible in allowing you to use different ways
to select your time periods. If I remember right, you used to use TC2K? If
so, it should work for you right out of the box.

Steve

----- Original Message -----
From: "Ken Close" <closeks@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, January 06, 2006 10:06 PM
Subject: [amibroker] SelectedValue vs BeginValue


>I would like to calculate %price change in the Title.
>
> If there is neither a vertical pole or initial range marker, I would like
> the return to be from the first data point to the current or last data
> point
> (closing price of course).
>
> If a vertical pole is planted (click once), then I want to calculate
> change
> from the pole to the last value.
>
> If two range markers are placed (F12 and then Shift-F12), then I would
> like
> to calculate change from the dates (barindexes) between the range markers.
>
> I am sure this is simple, but I am having trouble telling the formula
> whether a vertical pole (SelectedValue) has been planted or whether a
> range
> marker (BeginValue) has been planted.
>
> Any suggestions will be appreciated.
>
> Ken
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.14/222 - Release Date: 1/5/2006
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS