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

[amibroker] Relative Performance Plots



PureBytes Links

Trading Reference Links

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





YAHOO! GROUPS LINKS