Studies: Pyrapoint spacing is changed by Zooming (1229)

Q:  I have been experimenting with Pyrapoint, which I find amazing, by the way - a wonderful contribution.  I noticed something today which may be a bug in the program or simply reflect my lack of understanding of how the program is supposed to work.  I found that the zoom-in feature caused a time line to shift.

Here is the setup:  Looking at weekly charts of FBR, internet data, starting the Pyrapoint at the peak of 3/10/00.  The time line which is generated running from 267 to 274 starts on 4/22/05  and ends on 5/27.  When you use the zoom and begin the zoom draw box from the near the end of 2003, this time line is shifted from 270 to 274 starting 5/20/05 and ending 6/10/05.  As long as you start the zoom box in 2004 this shift does not occur. The time line is being shifted by 3 weeks.

I am wondering why the time line is being shifted when zooming from farther back than 2004, as it seems that it should remain stable? 

A:  The thing that you change by zooming is the scale range.  The prices are being normalized to 3 digits based on the highest price on the chart scale.   At one zoom level you probably have a price over 999 so that it is 4 digits, such as   1210.   And then when zoomed, the prices are all under 1000 or back to 3 digits.

The 1210 price normalized to 3 digits is looking for the square root of  121 which is 11, so the spacing of the vertical lines for the Pyrapoint box is every 11 bars.   However, when the price is say 900, the square root is then 30, and the vertical line spacing is now 30 bars apart.  This is what is causing the time shift.

You can override the 3 digit normalization by a selection on the Pyrapoint property form, to use 4 digits so the 1210 is treated as 1210 instead of as 121.  Then the square root of 1210 is 34.8 which is similar to the 30 which is the square root of the 900 price.


Last modified 1/23/08 1:07 AM