Simulation Gateway Protocol for Trading Algorithm Testing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing technologies face challenges in synchronizing external computer processes with market simulations, particularly in optimizing the quality and speed of simulation and testing of trading software tools.

Innovation Solution

The protocol connects a trading computer program with a market simulation program, converting asynchronous trading order data into synchronous data aligned with discrete time steps, enabling efficient inter-process communication and synchronization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If asynchronous trading order data is used for inter-process communication, then the trading program can operate independently and flexibly, but the market simulation cannot achieve synchronized calculations at discrete time steps

Engineering Contradiction:
Improveindependent operation flexibilityVSAvoidsynchronization precision
Core Design Contradiction:
Adaptability or versatilityVSManufacturing precision

Solution Approach 1:

A gateway process is introduced as an intermediary component between the trading program and market simulation. The gateway receives asynchronous trading order data from the trading program, converts it into synchronous data format, and delivers it to the market simulation at the appropriate discrete time steps. This mediator enables both independent operation flexibility and synchronization precision to coexist.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system transforms the temporal parameter of data transmission by converting asynchronous data (variable timing) into synchronous data (fixed discrete time steps). The gateway process changes the timing parameter of order data, aligning it with the simulation's discrete time step requirements while preserving the original trading logic independence.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If real-time simulation is performed, then the trading program can be evaluated in actual trading conditions, but the simulation time required is too long (8 hours for a trading day)

Engineering Contradiction:
Improveevaluation accuracyVSAvoidsimulation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by collecting and buffering trading order data during the simulation process, then processing multiple time steps in batches rather than sequentially in real-time. This allows the simulation to jump through time steps efficiently while maintaining accuracy, significantly reducing total simulation time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The gateway process continuously receives and buffers trading order data throughout the simulation runtime, ensuring no data is lost during time jumps. This continuous data collection enables the system to maintain evaluation accuracy while accelerating the simulation through non-real-time processing.

Inventive Principle:
Principle #20Continuity of useful action

3Manufacturing precision

If data is buffered for synchronization, then discrete time step calculations can be achieved, but data transmission delays may occur

Engineering Contradiction:
Improvetime step alignmentVSAvoiddata transmission delay
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system implements periodic action by processing data in discrete time step intervals rather than continuously in real-time. The gateway buffers data and releases it at regular simulation time steps, achieving precise time step alignment while the batching effect reduces overall transmission delays compared to strict real-time processing.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS12292813B2Method and system for operating a computer simulation
Publication Date: 2025.05.06 SIMUDYNE LTD
  • US12292813B2 patent drawing
  • US12292813B2 patent drawing
  • US12292813B2 patent drawing

AI summary

The disclosed method and system synchronizes information input into a simulation that is used to test a computer program in real time or simulated real time so that the program under test operates in an independent way. The method and system operates a timing protocol to connect one running computer process, a trading computer program, with another running process, a computer program that executes a market simulation.