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

Re: [amibroker] Re: Point & Figure Chart in AFL



PureBytes Links

Trading Reference Links

As will become clear shortly, I am far from a experienced PnF interpreter. It seems that two parameters significantly influence the PnF chart, firstly the box-size and the reversal threshold (3 boxes is common and used in your code.) I have been experimenting with the box size, and it seems to methat it should be related to the ATR; you use a fixed ratio of the averageprice to the magic number 7.3374 which would seem to be specific to a particular instrument.  

I have attached a modified version of the code, fancied up with titles and parameter information that uses the last ATR. I am not suggesting that this is a good approach - well I suppose I am saying it isn't a bad approach -and would appreciate your comments.

Cheers,
Richard
----- Original Message ----- 
From: mirat_dave 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, July 19, 2002 8:59 AM
Subject: [amibroker] Re: Point & Figure Chart in AFL


Hello Richard and Dimitris,

Sorry to have caused so much confusion.

Since most stocks since 2000 have been trending down, you may get a 
only a few bars because the P&F Chart ignores small up moves and only 
extends down bars when the price moves more than the box size. Since 
2000, you may very well have only a few bars. Try loading more data 
for at least one stock.

I used AmiQuote and Yahoo for the data. I have data from January 
1994. The AmiBroker version on which I created this file is 4.0.0  
Apr 26 2002.

I do not know if the AmiBroker version is causing the difference. I 
saw that it worked for Richard on MSFT (although I am not sure what 
the whole MSFT v. MSFT issue was - it seems to have resolved 
itself). Perhaps Richard also has more data loaded.

As you can see from the script, it is very simple. If problems 
continue, I would be happy to go through it in detail to see if there 
is a coding error.

I'm afraid I have no other explanation other than more data. Let's 
try that first.

Mirat

PS I would post .gifs of my charts but I do not know how to attach a 
file to my reply. Although that would not help resolve the issue. :-)





--- In amibroker@xxxx, "Richard Alford" <richard.alford@xxxx> wrote:
> I am just isolating variables. If we have the same program and 
version (4.06.1 Jun 19 build), the same indicator code (this I 
confirmed) and same data we should get the same result. (I continue 
to believe in deterministic computing - probably naive in light of 
Microsoft!). The questionable variable, and a big one, is the data 
source - I use qp2. Perhaps someone using yahoo could compare to 
your results?
> 
> 
> It does appear that the "box size", the significant change that 
defines an X or O in my understanding, should be normalized to the 
price of the instrument to account for the difference in WCOME 
pricing vs. DJIA, for example. I am referring to the code fragment:
> 
> // Calculate PF Chart Box size and minimum Reverse values
> // Box = ((tot[i]/(i+1))^.5)/7.3374;     
> 
> Cheers,
> 
> Richard
> ----- Original Message ----- 
> From: dtsokakis 
> To: amibroker@xxxx 
> Sent: Wednesday, July 17, 2002 2:49 PM
> Subject: [amibroker] Re: Point & Figure Chart in AFL
> 
> 
> Richard,
> YHOO via Amiquote.
> Why do you think it is a matter of data provider ?
> Dimitris Tsokakis
> 
> --- In amibroker@xxxx, "Richard Alford" <richard.alford@xxxx> 
wrote:
> > but the point remains that you and I get different results.  
what 
> is your data source?
> > 
> > Richard
> > ----- Original Message ----- 
> > From: dtsokakis 
> > To: amibroker@xxxx 
> > Sent: Wednesday, July 17, 2002 1:47 PM
> > Subject: [amibroker] Re: Point & Figure Chart in AFL
> > 
> > 
> > Richard,
> > ANY other function works just fine with my valuable Amibroker 
> 4.06.
> > Just fine.
> > I can not see the reason for this P&F script.
> > Anyway, the author perhaps could expain.
> > Dimitris Tsokakis
> > 
> > --- In amibroker@xxxx, "Richard Alford" <richard.alford@xxxx> 
> wrote:
> > > DT, I agree it was not easy to understand. The attached 
charts 
> > showed the TWO results that were generated whenever I entered 
the 
> > symbol MSFT - it appears to be a fluke and I cannot reproduce 
it 
> any 
> > longer. Although there is not ticker name in the formula, 
there 
> was 
> > strange behavior occurring for MSFT and MSFT only at that 
time.
> > > 
> > > The gist of my reply to you was that using the SAME code as 
you 
> > posted and using the code I copied from the files sections, I 
> > generated the same results - and not the results that you 
were 
> > creating. That suggests that you have a problem in your data 
> and/or 
> > setup. The only reason for the two codes was to guarantee 
that 
> there 
> > wasn't a subtle error - there was not.
> > > 
> > > Sorry for adding the confusion about the MSFT fluke at the 
same 
> > time.
> > > 
> > > Cheers,
> > > 
> > > Richard
> > > ----- Original Message ----- 
> > > From: dtsokakis 
> > > To: amibroker@xxxx 
> > > Sent: Wednesday, July 17, 2002 12:47 AM
> > > Subject: [amibroker] Re: Point & Figure Chart in AFL
> > > 
> > > 
> > > Richard,
> > > It is not easy to understand this
> > > "the plot for MSFT changes when one changes the symbol go 
> MSFT 
> > from 
> > > MSFT??? "
> > > I copied the formula from
> > > http://groups.yahoo.com/group/amibroker/files/Point-Figure
> > > pasted in my Ind. builder and get the posted gifs.
> > > No ticker name is into the formula.
> > > What is "the two MSFT " ???
> > > Do you use the same code from the above address??
> > > DT
> > > 
> > > 
> > > --- In amibroker@xxxx, "Richard Alford" 
<richard.alford@xxxx> 
> > wrote:
> > > > Those are not the figures I generate using the code in 
> > the "files 
> > > section". (Why wasn't this put in the AFL library is a 
> question 
> > in 
> > > my mind???)
> > > > 
> > > > Just noticed that the plot for MSFT changes when one 
> changes 
> > the 
> > > symbol go MSFT from MSFT??? Not the case for AMZN or 
ORCL?  
> > > > 
> > > > I attached the two MSFT for comparison, one is "my" 
copy, 
> and 
> > the 
> > > other is a copy and paste of the code in your note. The 
> > difference 
> > > is the quirk in MSFT, not an error in the code you have 
used. 
> And 
> > DT 
> > > do you really like black on blue borders? Personally, I 
can 
> > never 
> > > read your chart titles.
> > > > 
> > > > Cheers,
> > > > 
> > > > Richard
> > > > 
> > > > 
> > > > ----- Original Message ----- 
> > > > From: Dimitris Tsokakis 
> > > > To: amibroker@xxxx 
> > > > Sent: Tuesday, July 16, 2002 1:14 PM
> > > > Subject: [amibroker] Re: Point & Figure Chart in AFL
> > > > 
> > > > 
> > > > Mirat,
> > > > Here is P&F charts for AMZN, MSFT and ORCL.
> > > > Data since Jan 2000.
> > > > Is it the expected picture ?
> > > > The code, copied from files section
> > > > 
> > > > // PF Chart by Mirat Dave
> > > > // Copy and paste this as a custom indicator.
> > > > 
> > > > EnableScript("jscript");
> > > > <%
> > > > 
> > > > High = VBArray( AFL( "High" ) ).toArray();
> > > > Low = VBArray( AFL( "Low" ) ).toArray();
> > > > 
> > > > // Calculate running average stock price for use in 
> > calculating 
> > > the Box size.
> > > > 
> > > > tot = new Array();
> > > > tot[0] = (High[0] + Low[0])/2;
> > > > for( i=1; i < High.length; i++ )
> > > > {
> > > > tot[i] = tot[i-1] + ((High[i] + Low[i])/2);
> > > > }
> > > > PFO = new Array();
> > > > PFC = new Array();
> > > > 
> > > > // initialize first element
> > > > 
> > > > j = 0;
> > > > PFO[j] = High[0];
> > > > PFC[j] = Low[0];
> > > > down = 1; // By default the first bar is a down bar.
> > > > 
> > > > up = 0;
> > > > swap = 0;
> > > > 
> > > > // perform the loop that produces PF Chart
> > > > 
> > > > for( i = 1; i < High.length; i++ )
> > > > {
> > > > // Calculate PF Chart Box size and minimum Reverse 
values
> > > > 
> > > > Box = ((tot[i]/(i+1))^.5)/7.3374;
> > > > Reverse = Box * 3;
> > > > if( Low[i] < PFC[j] - Box && down)
> > > > {
> > > > PFC[j] = Low[i];
> > > > }
> > > > else
> > > > {
> > > > if( High[i] >= PFC[j] + Reverse && down)
> > > > {
> > > > j++;
> > > > swap = 1;
> > > > PFO[j] = Low[i];
> > > > PFC[j] = High[i];
> > > > }
> > > > }
> > > > if( High[i] > PFC[j] + Box && up)
> > > > {
> > > > PFC[j] = High[i];
> > > > }
> > > > else
> > > > {
> > > > if( Low[i] <= PFC[j] - Reverse && up)
> > > > {
> > > > j++;
> > > > PFC[j] = Low[i];
> > > > PFO[j] = High[i];
> > > > swap = 1;
> > > > }
> > > > }
> > > > if( swap )
> > > > {
> > > > swap = 0;
> > > > if( up )
> > > > {
> > > > up = 0;
> > > > down = 1;
> > > > }
> > > > else
> > > > {
> > > > up = 1;
> > > > down = 0;
> > > > }
> > > > }
> > > > }
> > > > 
> > > > // Shift chart to the right to eliminate trailing 
empty 
> data
> > > > // - PF charts are generally smaller/shorter then the 
> full 
> > stock 
> > > charts because they lack a time scale.
> > > > 
> > > > delta = High.length - PFO.length;
> > > > for( i = High.length; i > delta; i-- )
> > > > {
> > > > PFO[ i-1 ] = PFO[ i-delta-1];
> > > > PFC[ i-1 ] = PFC[ i-delta-1];
> > > > }
> > > > for( i = 0; i < delta; i++)
> > > > {
> > > > PFO[ i-1 ] = 0;
> > > > PFC[ i-1 ] = 0;
> > > > }
> > > > AFL.Var("PFO") = PFO;
> > > > AFL.Var("PFC") = PFC;
> > > > %>
> > > > 
> > > > O = PFO;
> > > > C = PFC;
> > > > 
> > > > H = (O+C)/2;
> > > > L = (O+C)/2;
> > > > 
> > > > GraphXSpace = 9;
> > > > Graph0Style = 64;
> > > > 
> > > > Graph0Color =1;
> > > > Graph0 = C;
> > > > 
> > > > Thanks in advance for any reply.
> > > > Dimitris Tsokakis
> > > > 
> > > > Yahoo! Groups Sponsor 
> > > > 
> > > > Click here to find your contact lenses! 
> > > > 
> > > > Your use of Yahoo! Groups is subject to the Yahoo! 
Terms 
> of 
> > > Service.
> > > 
> > > 
> > > Yahoo! Groups Sponsor 
> > > ADVERTISEMENT
> > >              
> > >        
> > > 
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of 
> > Service.
> > 
> > 
> > Yahoo! Groups Sponsor 
> > ADVERTISEMENT
> >              
> >        
> > 
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> Service.
> 
> 
> Yahoo! Groups Sponsor 
> ADVERTISEMENT
>              
>        
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.


Yahoo! Groups Sponsor 
ADVERTISEMENT
             
       

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


------=_NextPart_001_04B4_01C22F17.7C07E280
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>No apologies necessary, in fact, thanks for the PnF 
script.&nbsp; Ingenious piece of work to morph the time plot into a PnF 
display.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>As will become clear shortly, I am far from a 
experienced PnF interpreter.&nbsp; It seems that two parameters significantly 
influence the&nbsp; PnF chart, firstly the box-size and the reversal threshold 
(3 boxes is common and used in your code.)&nbsp; I have been experimenting with 
the box size, and it seems to me that it should be related to the ATR; you use a 
fixed&nbsp;ratio of the average price to the magic number 7.3374 which would 
seem to be specific to a particular instrument.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have attached a modified version of the code, 
fancied up with titles and parameter information that uses the last ATR.&nbsp; I 
am not suggesting that this is a good approach - well I suppose I am sayingit 
isn't a bad approach - and would appreciate your comments.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Richard</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV 
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
<A title=mirat_dave@xxxx 
href="mailto:mirat_dave@xxxx";>mirat_dave</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=amibroker@xxxxxxxxxx 
href="mailto:amibroker@xxxxxxxxxxxxxxx";>amibroker@xxxxxxxxxxxxxxx</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 19, 2002 8:59 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [amibroker] Re: Point &amp; 
Figure Chart in AFL</DIV>
<DIV><BR></DIV><TT>Hello Richard and Dimitris,<BR><BR>Sorry to have caused so 
much confusion.<BR><BR>Since most stocks since 2000 have been trending down, 
you may get a <BR>only a few bars because the P&amp;F Chart ignores smallup 
moves and only <BR>extends down bars when the price moves more than the box 
size.&nbsp; Since <BR>2000, you may very well have only a few bars.&nbsp;Try 
loading more data <BR>for at least one stock.<BR><BR>I used AmiQuote and Yahoo 
for the data.&nbsp; I have data from January <BR>1994.&nbsp; The AmiBroker 
version on which I created this file is 4.0.0&nbsp; <BR>Apr 26 2002.<BR><BR>I 
do not know if the AmiBroker version is causing the difference.&nbsp; I 
<BR>saw that it worked for Richard on MSFT (although I am not sure what 
<BR>the whole MSFT v. MSFT issue was - it seems to have resolved 
<BR>itself).&nbsp; Perhaps Richard also has more data loaded.<BR><BR>As you 
can see from the script, it is very simple.&nbsp; If problems <BR>continue, I 
would be happy to go through it in detail to see if there <BR>is a coding 
error.<BR><BR>I'm afraid I have no other explanation other than more 
data.&nbsp; Let's <BR>try that first.<BR><BR>Mirat<BR><BR>PS&nbsp; I would 
post .gifs of my charts but I do not know how to attach a <BR>file to my 
reply.&nbsp; Although that would not help resolve the issue. 
:-)<BR><BR><BR><BR><BR><BR>--- In amibroker@xxxx, "Richard Alford" 
&lt;richard.alford@xxxx&gt; wrote:<BR>&gt; I am just isolating 
variables.&nbsp; If we have the same program and <BR>version (4.06.1 Jun 19 
build), the same indicator code (this I <BR>confirmed) and same data we should 
get the same result.&nbsp; (I continue <BR>to believe in deterministic 
computing - probably naive in light of <BR>Microsoft!).&nbsp; The questionable 
variable, and a big one, is the data <BR>source - I use qp2.&nbsp; Perhaps 
someone using yahoo could compare to <BR>your results?<BR>&gt; <BR>&gt; 
<BR>&gt; It does appear that the "box size", the significant change that 
<BR>defines an X or O in my understanding, should be normalized to the 
<BR>price of the instrument to account for the difference in WCOME <BR>pricing 
vs. DJIA, for example.&nbsp; I am referring to the code fragment:<BR>&gt; 
<BR>&gt; // Calculate PF Chart Box size and minimum Reverse values<BR>&gt; // 
Box = ((tot[i]/(i+1))^.5)/7.3374;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; <BR>&gt; 
Cheers,<BR>&gt; <BR>&gt; Richard<BR>&gt;&nbsp;&nbsp; ----- Original Message 
----- <BR>&gt;&nbsp;&nbsp; From: dtsokakis <BR>&gt;&nbsp;&nbsp; To: 
amibroker@xxxx <BR>&gt;&nbsp;&nbsp; Sent: Wednesday, July 17, 2002 2:49 
PM<BR>&gt;&nbsp;&nbsp; Subject: [amibroker] Re: Point &amp; Figure Chart in 
AFL<BR>&gt; <BR>&gt; <BR>&gt;&nbsp;&nbsp; Richard,<BR>&gt;&nbsp;&nbsp; YHOO 
via Amiquote.<BR>&gt;&nbsp;&nbsp; Why do you think it is a matter of data 
provider ?<BR>&gt;&nbsp;&nbsp; Dimitris Tsokakis<BR>&gt; <BR>&gt;&nbsp;&nbsp; 
--- In amibroker@xxxx, "Richard Alford" &lt;richard.alford@xxxx&gt; 
<BR>wrote:<BR>&gt;&nbsp;&nbsp; &gt; but the point remains that you and I get 
different results.&nbsp; <BR>what <BR>&gt;&nbsp;&nbsp; is your data 
source?<BR>&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt; 
Richard<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; ----- Original Message ----- 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; From: dtsokakis <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; To: amibroker@xxxx <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Sent: Wednesday, July 17, 2002 1:47 PM<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Subject: [amibroker] Re: Point &amp; Figure Chart in AFL<BR>&gt;&nbsp;&nbsp; 
&gt; <BR>&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Richard,<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; ANY other function works just 
fine with my valuable Amibroker <BR>&gt;&nbsp;&nbsp; 4.06.<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; Just fine.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; I can not see 
the reason for this P&amp;F script.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Anyway, the author perhaps could expain.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Dimitris Tsokakis<BR>&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; --- In amibroker@xxxx, "Richard Alford" 
&lt;richard.alford@xxxx&gt; <BR>&gt;&nbsp;&nbsp; wrote:<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; DT, I agree it was not easy to understand.&nbsp; The 
attached <BR>charts <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; showed the TWO 
results that were generated whenever I entered <BR>the <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; symbol MSFT - it appears to be a fluke and I cannot reproduce 
<BR>it <BR>&gt;&nbsp;&nbsp; any <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
longer.&nbsp; Although there is not ticker name in the formula, <BR>there 
<BR>&gt;&nbsp;&nbsp; was <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; strange 
behavior occurring for MSFT and MSFT only at that 
<BR>time.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; The gist of my reply to you was that using the SAMEcode 
as <BR>you <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; posted and using the code I 
copied from the files sections, I <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
generated the same results - and not the results that you <BR>were 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; creating.&nbsp; That suggests that you 
have a problem in your data <BR>&gt;&nbsp;&nbsp; and/or <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; setup.&nbsp; The only reason for the two codes was to 
guarantee <BR>that <BR>&gt;&nbsp;&nbsp; there <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; wasn't a subtle error - there was not.<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; Sorry for 
adding the confusion about the MSFT fluke at the <BR>same <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; time.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; Cheers,<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
Richard<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; ----- Original 
Message ----- <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; From: 
dtsokakis <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; To: 
amibroker@xxxx <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Sent: 
Wednesday, July 17, 2002 12:47 AM<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; Subject: [amibroker] Re: Point &amp; Figure Chart in 
AFL<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Richard,<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; It is not easy 
to understand this<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; "the 
plot for MSFT changes when one changes the symbol go <BR>&gt;&nbsp;&nbsp;MSFT 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; from <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; MSFT??? "<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; I copied the formula 
from<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; <A 
href="http://groups.yahoo.com/group/amibroker/files/Point-Figure";>http://groups.yahoo.com/group/amibroker/files/Point-Figure</A><BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; pasted in my Ind. builder and get the posted 
gifs.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; No ticker name is 
into the formula.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; What 
is "the two MSFT " ???<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Do you use the same code from the above address??<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; DT<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; --- In amibroker@xxxx, "Richard Alford" 
<BR>&lt;richard.alford@xxxx&gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
wrote:<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; Those are 
not the figures I generate using the code in <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; the "files <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; section".&nbsp; (Why wasn't this put in the AFL library is a 
<BR>&gt;&nbsp;&nbsp; question <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; in 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; my 
mind???)<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; Just noticed that 
the plot for MSFT changes when one <BR>&gt;&nbsp;&nbsp; changes 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; the <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; symbol go MSFT from MSFT???&nbsp; Not the 
case for AMZN or <BR>ORCL?&nbsp; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt; I attached the two MSFT for comparison, one is "my" <BR>copy, 
<BR>&gt;&nbsp;&nbsp; and <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; the 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; other is a copy and 
paste of the code in your note.&nbsp; The <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; difference <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; is the quirk in MSFT, not an error in the code you have 
<BR>used. <BR>&gt;&nbsp;&nbsp; And <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; DT 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; do you really like 
black on blue borders?&nbsp; Personally, I <BR>can <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; never <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
read your chart titles.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
Cheers,<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
Richard<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; ----- 
Original Message ----- <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; From: Dimitris Tsokakis <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; To: amibroker@xxxx <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Sent: Tuesday, July 16, 
2002 1:14 PM<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; Subject: [amibroker] Re: Point &amp; Figure Chart in 
AFL<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Mirat,<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Here is P&amp;F charts for AMZN, MSFT and ORCL.<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Data since Jan 
2000.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Is it the expected picture ?<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; The code, copied from files 
section<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // PF 
Chart by Mirat Dave<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; // Copy and paste this as a custom 
indicator.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
EnableScript("jscript");<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &lt;%<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
High = VBArray( AFL( "High" ) ).toArray();<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Low = VBArray( AFL( "Low" ) 
).toArray();<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // 
Calculate running average stock price for use in <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; calculating <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; the Box size.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; tot = new Array();<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; tot[0] = (High[0] + 
Low[0])/2;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; for( i=1; i &lt; High.length; i++ )<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; {<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; tot[i] = tot[i-1] + 
((High[i] + Low[i])/2);<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; }<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; PFO = new Array();<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; PFC = new Array();<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // initialize first 
element<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; j= 
0;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
PFO[j] = High[0];<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; PFC[j] = Low[0];<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; down = 1; // By default the first baris a 
down bar.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; up = 
0;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp;swap 
= 0;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // 
perform the loop that produces PF Chart<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; for( i = 1; i &lt; High.length; i++ )<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; {<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // Calculate PF Chart Box 
size and minimum Reverse <BR>values<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; Box = ((tot[i]/(i+1))^.5)/7.3374;<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Reverse = Box * 
3;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp;if( 
Low[i] &lt; PFC[j] - Box &amp;&amp; down)<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; {<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; PFC[j] = Low[i];<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; }<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; else<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; {<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; if( High[i] &gt;= PFC[j] + 
Reverse &amp;&amp; down)<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;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sp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; down = 1;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; }<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; else<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; {<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; up = 1;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; down = 0;<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; }<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; }<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; }<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // Shift chart to the right to eliminate 
trailing <BR>empty <BR>&gt;&nbsp;&nbsp; data<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; // - PF charts are 
generally smaller/shorter then the <BR>&gt;&nbsp;&nbsp; full 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; stock <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; charts because they lack a time 
scale.<BR>&gt;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&nbsp;&nbsp; Graph0 = 
C;<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Thanks 
in advance for any reply.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Dimitris Tsokakis<BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yahoo! 
Groups Sponsor <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Click here to find your 
contact lenses! <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; 
<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; Your 
use of Yahoo! Groups is subject to the Yahoo! <BR>Terms <BR>&gt;&nbsp;&nbsp; 
of <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
Service.<BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp; &gt; <BR>&gt;&nbsp;&nbsp; &gt;&nbsp;&nbsp; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yahoo! Groups Spon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! Groups is subject to the Yahoo! Terms of <BR>&gt;&nbsp;&nbsp; 
Service.<BR>&gt; <BR>&gt; 
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yahoo! Groups Sponsor 
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ADVERTISEMENT<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; 
<BR>&gt;&nbsp;&nbsp; Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of <BR>Service.<BR><BR></TT><BR><BR><TT>Your 
use of Yahoo! Groups is subject to the <A 
href="http://docs.yahoo.com/info/terms/";>Yahoo! Terms of Service</A>.</TT> 
<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_04B4_01C22F17.7C07E280--

Attachment:
zip00020.zip

Attachment: Description: "Description: Zip compressed data"