| 
 Hi Steve, 
  
The two are only cousins -- they share the notion of 
using a linear regression, however the tool is time limited by the length of the 
line you draw whereas the built in drag and drop indicator actually creates a 
moving average of the linear regression (or something like it).  
Additionally, as you may have noticed, the tool works only on a single symbol 
(like the other tools, e.g. Fibonacci, trendlines, etc.  The drag and drop 
indicator becomes a part of the chart you place it on, regardless of the symbol 
that is being charted.  It was this last issue that prompted me to write a 
drag and drop indicator that replicates (with my tweaks) the drawing tool (i.e., 
straight line with channels) but available as a permanent feature on any chart 
it is put on (i.e., you can apply it to a price or stochastic or whatever 
chart).  I placed it in the AFL library a month or two ago.  Go to the 
library and do a search on linear regression.  You'll get a number of 
indicators that use the lin reg function -  mine is an attempt to replicate 
the visual tool found in TC2K as well as be a base for AA searches of different 
sorts.    
  
Hope this helps. 
  
Peace and Justice   ---   
Patrick 
  ----- Original Message -----  
  
  
  Sent: Friday, April 15, 2005 2:50 
PM 
  Subject: [amibroker] Regression Channel 
  Vs Linear Regression 
  
 
  If I use the drawing tool "Regression Channel" I get a 
  straight line  (plus 2 channel lines) on my price chart extending as far as 
  I drag  the indicator.  If I plot Linear Regression on the same chart, I 
  get a curve which  follows the price - no straight 
  line.
  Example: Plot(LinearReg(C,52),"LR",1,1);
 
  Questions:
  1. 
  Why are they different? 2. Using AFL, how can I replicate the straight line 
  of the Regression 
   Channel?
  Thanks,
  Steve
 
 
 
 
  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
 
 
  
  
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 
  |