# US 2021/0082046 A1 · Tactical investment algorithms through monte carlo backtesting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0082046 A1
- Document ID: US20210082046A1
- Status: Published application
- Kind: A1
- Application number: 17/016,397
- Filed: 2020-09-10
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: True Positive Technologies Holding LLC
- Applicants: True Positive Technologies Holding LLC
- Inventors: Marcos LOPEZ DE PRADO
- Web page: https://patentgrep.com/patent/US20210082046A1

## CPC

- G06Q 40/04: Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06N 3/094: Adversarial learning
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G06Q 10/04: Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem" (market predictions or forecasting for commercial activities G06Q30/0202)
- G06Q 10/067: Enterprise or organisation modelling
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Disclosed herein are methods and systems for computing optimized trading instructions, comprising applying a plurality of prediction models to compute trading instructions predicted to produce optimal outcomes based on received trading observations. Each prediction model is optimized, using a Monte Carlo algorithm, to predict optimal outcomes for a respective trading pattern based on a respective Data Generating Processes (DGPs). Weights are assigned to the prediction models according to probability scores computed for them according to mapping of the received trading observations to the DGPs associated with the prediction models and aggregated trading instructions are computed by aggregating, based on the weights, the trading instructions computed by the prediction models. Further disclosed are systems and methods for creating an ensemble of prediction models each optimized to predict optimal outcomes for a respective one of a plurality of trading patterns using an expanded simulated samples' dataset generated by a Monte Carlo algorithm.

## Claims

### Claim 1

A computer implemented method of computing optimized trading instructions, comprising:
receiving a dataset comprising a plurality of trading observations;
applying a plurality of prediction models to compute trading instructions to produce optimal outcomes predicted based on the plurality of trading observations, each of the plurality of prediction models is optimized to predict optimal outcomes for a respective one of a plurality of trading patterns by training the respective model through backtesting using an expanded training dataset comprising a plurality of simulated trading observations generated by a Monte Carlo algorithm based on a respective one of a plurality of Data Generating Processes (DGPs) derived from a respective one of a plurality of historical datasets comprising a plurality of past trading observations reflecting a respective one of the plurality of trading patterns;
computing a respective probability score for mapping the received dataset to each of the plurality of DGPs;
assigning a respective weight to each of the plurality of prediction models according to its respective probability score;
computing aggregated trading instructions aggregating the trading instructions for investing a respective portion of an investment according to each of the plurality of prediction models based on its respective weight; and
outputting the aggregated trading instructions to at least one trading system.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, wherein the plurality of trading observations comprise a plurality of trading features observed during a certain recent time period associated with respective outcomes which jointly reflect a current trading pattern.

### Claim 3 (depends on 1)

The computer implemented method of claim 1, wherein the plurality of simulated trading observations comprise a plurality of simulated trading features associated with respective simulated outcomes.

### Claim 4 (depends on 1)

The computer implemented method of claim 1, further comprising computing the respective probability score for mapping the received dataset to each of the plurality of DGPs based on a comparison between the respective outcomes extracted from the plurality of trading observations and the optimal outcomes computed by each of the plurality of prediction models.

### Claim 5 (depends on 1)

The computer implemented method of claim 1, wherein the trading instructions are computed based on trading instructions computed by each of the plurality of prediction models based on a maximal outcome predicted in return to investing its respective portion of the investment.

### Claim 6 (depends on 1)

The computer implemented method of claim 1, wherein each of the plurality of prediction models is trained using a first subset of the plurality of simulated trading observations generated based on the respective DGP and tested using a second subset of the plurality of simulated trading observations generated based on the respective DGP, the simulated outcomes of the second subset are not available to the plurality of prediction models.

### Claim 7 (depends on 6)

The computer implemented method of claim 6, wherein a prediction performance of each of the plurality of prediction models is tested by comparing between the optimal outcome computed by the respective prediction model for the simulated values of the second subset and the simulated outcomes generated for the second subset by the Monte Carlo simulation algorithm.

### Claim 8

A system for computing optimized trading instructions, comprising:
at least one processor executing a code, the code comprising:
code instructions to receive a dataset comprising a plurality of trading observations;
code instructions to apply a plurality of prediction models to compute trading instructions to produce optimal outcomes predicted based on the plurality of trading observations, each of the plurality of prediction models is optimized to predict optimal outcomes for a respective one of a plurality of trading patterns by training the respective model through backtesting using an expanded training dataset comprising a plurality of simulated trading observations generated by a Monte Carlo algorithm based on a respective one of a plurality of Data Generating Processes (DGPs) derived from a respective one of a plurality of historical datasets comprising a plurality of past trading observations reflecting a respective one of the plurality of trading patterns;
code instructions to compute a respective probability score for mapping the received dataset to each of the plurality of DGPs;
code instructions to assign a respective weight to each of the plurality of prediction models according to its respective probability score;
code instructions to compute aggregated trading instructions aggregating the trading instructions of the prediction models for investing a respective portion of an investment according to each of the plurality of prediction models based on its respective weight; and
code instructions to output the aggregated trading instructions to at least one trading system.

### Claim 9 (depends on 1)

A computer program product comprising program instructions executable by a computer, which, when executed by the computer, cause the computer to perform a method according to claim 1.

### Claim 10

A computer implemented method of creating an ensemble of prediction models optimized to predict optimal outcomes for a plurality of trading patterns, comprising:
obtaining a plurality of historical datasets comprising a plurality of past trading observations, each of the historical datasets comprises a plurality of past trading observations comprising a plurality of trading features observed during a past time period associated with respective outcomes, the plurality of trading features and the associated respective outcomes jointly reflect a respective one of a plurality of trading patterns;
computing a respective Data Generating Processes (DGP) for each of the plurality of trading patterns based on a respective historical dataset;
applying a Monte Carlo algorithm for generating, based on the respective DGP, a respective expanded training dataset comprising a plurality of simulated trading datasets;
training each of a plurality of prediction models by backtesting using a respective expanded training dataset, wherein a first subset of the simulated trading observations of the respective expanded training dataset is used for training the respective prediction model and a second subset of the simulated trading observations is used to test the respective prediction model; and
outputting the plurality of prediction models each trained using a respective expanded training dataset and thus optimized to predict optimal outcomes for a respective one of the plurality of trading patterns.

### Claim 11

A system for creating an ensemble of prediction models optimized to predict optimal outcomes for a plurality of trading patterns, comprising:
at least one processor executing a code, the code comprising:
code instructions to obtain a plurality of historical datasets comprising a plurality of past trading observations, each of the historical datasets comprises a plurality of past trading observations comprising a plurality of trading features observed during a past time period associated with respective outcomes, the plurality of trading features and the associated respective outcomes jointly reflect a respective one of a plurality of trading patterns;
code instructions to compute a respective Data Generating Processes (DGP) for each of the plurality of trading patterns based on a respective historical dataset;
code instructions to apply a Monte Carlo algorithm for generating, based on the respective DGP, a respective expanded training dataset comprising a plurality of simulated trading datasets;
code instructions to train each of a plurality of prediction models by backtesting using a respective expanded training dataset, wherein a first subset of the simulated trading observations of the respective expanded training dataset is used for training the respective prediction model and a second subset of the simulated trading observations is used to test the respective prediction model; and
code instructions to output the plurality of prediction models each trained using a respective expanded training dataset and thus optimized to predict optimal outcomes for a respective one of the plurality of trading patterns.

### Claim 12 (depends on 10)

A computer program product comprising program instructions executable by a computer, which, when executed by the computer, cause the computer to perform a method according to claim 10.
