Find Answers/MarketDelta Charts/Help Articles

What is RTL and How Can I Use It?

Trevor Harnett
posted this on February 18, 2010 08:14

The MarketDelta Real Time Language (or RTL) is the language used in MarketDelta to build Scans, Custom Indicators, or Trading Signals.  RTL is used to formulate expressions for Scans, Custom Indicators, or Trading Signals, using Data Elements (or Tokens), and Operators.  These RTL expressions can be compared to sentences, in which the Data Elements (Tokens) are the nouns, and the operators are the verbs.  Below are the five categories of elements, along with special functions and operators, all of which are building blocks of RTL and are used to create RTL expression.  Click on the category heading to see a list of the elements in that category, along with a brief description of those elements.

  • Historical Elements - These are elements which relate directly to historical price and volume data.  All historical elements can be qualified.
  • Primitive Elements - These elements only have a current value, and cannot be qualified.
  • Fundamental Elements - These elements represent measures of performance.  All the fundamental elements are transmitted by the Dial/Data historical service.  Certain fundamental elements are also transmitted by individual data feeds...check with your data vendor for details.
  • Technical Indicator Elements - These elements represent predefined technical studies.  Most studies have additional parameters that must be specified when the element is added.
  • Numeric Constants and Flags - These elements are simply tokens which represent constant numbers.  They exist to facilitate equation composition.  The descriptive tokens are generally easier to remember than the numbers they represent.
  • Special Functions - There are several special built-in functions that extend the scan language in useful ways by performing arithmetic or statistical calculations.
  • Operators - Arithmetic, Relational, and Logical
  • Textual String Elements - Some elements are textual strings and must be compared with quoted strings.  Wildcard characters can be used in the text you are comparing.
  • Option Analysis Elements - Some elements are only relevant for studying options.

screencast.png