Home                           

 Try Investor/RT             

 Investor/RT Tour           

 Getting Started              

 What's New                  

 Testimonials                 

  Q&A - Broken down by Topic . . .      Complete List of Questions - All Topics
     Charts and Technical Indicators      TPO Charts
     RTL: Scans, Signals, and Custom Indicators      Importing and Exporting
     Trading Systems and Backtesting      Schedules
     Quotepages, Portfolios and Custom Columns      Alarms / Alerts
     Data: Historical Data, the Database, and Data Services      User Variables (T# and V#)
     Custom Instruments: Spreads and Pairs      General / Miscellaneous
     Controls, Windows, and the Button Indicator      Autotrading
     Slide Shows      Product Line

 
Q&A Home

Investor/RT Answer
Answers to Common Questions

   

Question

I created a chart with a 25 period Linear Regression.  Why does the Linear Regression line disappear when I switch periodicities (to weekly, or 30-minute)?
   

Answer

If you setup the Linear Regression indicator with "Automatic Using Last 25 Bars", then you'll get a 25 period linear regression line that will always use the last 25 bars, regardless of what periodicity you have the chart set to. You can switch between daily, weekly, 30-minute, 1-minute, etc, and you'll always get a regression line using the last 25 bars of whatever periodicity you're looking at.  I think this is probably what you're after.

If you use either of the other two settings ("From Date/Time to Date/Time" or "From Date/Time to Present"), the regression line is set to attach one or both of it's endpoints to a specific "date/time", which might not necessarily translate very well from one timeframe to another.  Certainly not between intraday and daily/weekly/month periodicities.

Also, if you're switching the chart from daily to weekly periodicity, you must ensure that you have enough data on the instrument.  In our example above, a 25 period linear regression line on daily data will obviously only require 25 days of data, while the weekly line will require 125 days of data (and monthly would require approximately 500 days of data).