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      Market Profile 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

How do I create a Scan or Signal that looks for consolidation and then break out
of say a 4-8 week consolidation period?
   

Answer

To access the range over a recent period, you can use the True Range indicator...setup with "Actual Range of last X bars" checked. For instance, if you're looking at daily data and you want the range over the last 4 weeks (20 days), I would setup True Range with "Actual Range of last 20 bars". Then for consolidation, you might look for that range to be less than some specific number...

TR < 2

Or less than some percentage of price (5 below)...

TR < (CL * 0.05)

Or for a breakout, you might look for today's high or low to be outside that range for the previous days...

HI > TR.1 OR LO < TR.1

And to combine the two, looking for a breakout of a consolidation period which had a range less than 2, use...

TR.1 < 2 AND (HI > TR.1 OR LO < TR.1)