Type/to search
Getting Started
Welcome to FMZ Quant Trading Platform
Quick Start
Key Security
Platform Basics
Account and Billing
Live Robot Billing and Top-up
Sub-accounts
Exchange
General Protocol
Local Credential Files
Exchange-Specific Notes
Securities and Futures
Crypto
Docker
Strategy Library
Live Trading
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
Data and Research
Integrations

The analysis formulas reference the market calculation methods from worldquant's publicly available 101%20Formulaic%20Alphas.pdfalpha101, with basic compatibility for its syntax (unimplemented features are noted), and have been enhanced. This tool is used for rapid time series computation and validation of trading ideas. Alpha Factor Analysis Tool Page.

The {} below represents placeholders, all expressions are case-insensitive, x represents data time series

  • abs(x), log(x), sign(x): absolute value, logarithm and sign function respectively.

The following operators +, -, *, /, >, < also conform to their standard meanings, ==: equality check, ||: logical OR, x ? y : z: ternary conditional operator.

  • rank(x) : Cross-sectional ranking, returns the percentile position. Requires a candidate pool of several instruments; with a single instrument nothing can be ranked and the raw value is returned.
  • delay(x, d) : Returns the value of series x from d periods ago.
  • sma(x, d) : Calculates the simple moving average of series x over d periods.
  • correlation(x, y, d): Calculates the correlation coefficient between time series x and y over the past d periods.
  • covariance(x, y, d) : Calculates the covariance between time series x and y over the past d periods.
  • scale(x, a) : Normalizes data such that sum(abs(x))=a (a defaults to 1).
  • delta(x, d) : Calculates the current value of time series x minus the value from d periods ago.
  • signedpower(x, a) : x^a.
  • decay_linear(x, d) : Calculates the d-period weighted moving average of time series x, with weights d,d-1,d-2....1 (normalized).
  • indneutralize(x, g) : Industry neutralization based on industry classification g, currently not supported.
  • ts_{O}(x, d) : Performs operation O on the past d periods of time series x (O can specifically represent min, max, etc., see below), d will be converted to integer.
  • ts_min(x, d) : Minimum value over the past d periods.
  • ts_max(x, d) : Maximum value over the past d periods.
  • ts_argmax(x, d) : Position of ts_max(x, d).
  • ts_argmin(x, d) : Position of ts_min(x, d).
  • ts_rank(x, d) : Ranking of time series x over the past d periods (percentile ranking).
  • min(x, d) : ts_min(x, d).
  • max(x, d): ts_max(x, d).
  • sum(x, d) : Cumulative sum over the past d periods.
  • product(x, d) : Cumulative product over the past d periods.
  • stddev(x, d) : Standard deviation over the past d periods.

Input data is case-insensitive. Default data is the instrument selected on the webpage, but can also be specified directly, for example: binance.ada_bnb

  • returns: Close price returns.
  • open, close, high, low, volume: Open price, close price, high price, low price and volume within the period.
  • vwap: Volume-weighted average price (not yet implemented, currently using close price).
  • cap: Total market capitalization (not yet implemented).
  • IndClass: Industry classification (not yet implemented).

Supports outputting multiple results at once, represented as a list. For example, [sma(close, 10), sma(high, 30)] will plot two lines on the chart. Besides inputting time series data, it can also be used as a simple calculator.