Analyze the market with expression

dxScript is a programming language for time-series processing. Modern marketing tools integrate dxScript to allow users to express themselves with maximum flexibility when analyzing the market.

 

dxScript website

Check out our interactive playground and dive deep into the technical language documentation.
 

Knowledge Base

Check out our Knowledge Base to read more about dxScript language.

dxScript excels in ​technical analysis​. The language allows you to formulate advanced technical indicators concisely  and easily. With our powerful standard library, users can compose complex indicators. dxScript is a Swiss-army knife for market analysis with its built-in access to time-series history, support for recursive definitions, and an automatic prefetch inference.

Why dxScript?

The language strives to simplify and streamline reading and writing. Features:

  • Static type-safety: helpful feedback before running any code
  • Type inference: no need to spell out types, only code that matters
  • Transparent time-series: any value can be a series with access to all the history
  • Default parameter values: no need to repeat industry standards 
  • Built-in records: return more values and group data in-place
  • First-class functions: parameterizing data and  behavior

Script example

Here’s how you can use dxScript to compute average price change across recent candle history:

fun changeAvg {
  in x = candle.close
  in n = 10
  def change = x - x[1]
  out = change.avg(n)
}

dxFeed services

Several dxFeed services already bring dxScript to users:

  • ​dxFeed Radar​
  • Stock Scanner
  • Option Scanner
  • Alert Service