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

Is it possible in the RTL language to mix ticker symbols within the same signal, scan, or custom indicator?  For instance, a signal which detects that both MWD and MER are above their upper Bollinger band.

Answer

Yes.  You'll need to make use of the MPD indicator in order to accomplish this.  This is best illustrated by using the specific example sited above.  We'll assume the symbol we're looking at is MWD.  First, we'll create a signal to detect closing price being above the upper band :

CL > BOLU

and save this signal with a name like  "Above_BOLU".  Now, we'll create another signal which looks for both our target symbol (MWD) and additional symbol (MER) to both be above the  upper Bollinger band:

CL > BOLU AND MPD = 1

The firs part CL > BOLU is going to take care of detecting if our primary target symbol, MWD, is above it's upper Bollinger band.  the second part, MPD = 1, will be accessing data from another symbol, in this case, MER.  MPD will be setup as follows:

Notice that in this case, we're using the Mixed Periodicity Data to mix in something other than periodicity.  In this case, we're mixing in a different ticker symbol.  Checking the "Align Data" checkbox will ensure that I/RT aligns up the MER bars with the proper MWD bars.  Notice also that we have chosen a data source for MER of "Indicator" and chosen our "Scan/Signal" technical indicator.  Click the "Indicator Preferences" button and then select the proper "Above_BOLU" signal from the list, and then click "OK".

Since Signals return numerical values of 1 (for True) or 0 (for False), the MPD will in turn return either a 1 or 0 for the MER value, and therefore we use the syntax MPD = 1 to detect if MER is above above it's upper Bollinger Band.