[go: up one dir, main page]

CN119904306A - Quantitative trading method and system integrating multi-source information data - Google Patents

Quantitative trading method and system integrating multi-source information data Download PDF

Info

Publication number
CN119904306A
CN119904306A CN202411754399.2A CN202411754399A CN119904306A CN 119904306 A CN119904306 A CN 119904306A CN 202411754399 A CN202411754399 A CN 202411754399A CN 119904306 A CN119904306 A CN 119904306A
Authority
CN
China
Prior art keywords
data
trading
strategy
source information
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411754399.2A
Other languages
Chinese (zh)
Inventor
余乐
陈耀权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Technology and Business University
Original Assignee
Beijing Technology and Business University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Technology and Business University filed Critical Beijing Technology and Business University
Priority to CN202411754399.2A priority Critical patent/CN119904306A/en
Publication of CN119904306A publication Critical patent/CN119904306A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/10Pre-processing; Data cleansing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • G06N5/041Abduction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0202Market predictions or forecasting for commercial activities
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Economics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Evolutionary Biology (AREA)
  • Game Theory and Decision Science (AREA)
  • Computational Linguistics (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Mathematical Physics (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明公开了一种融合多源信息数据的量化交易方法和系统,该方法执行以下步骤:接收量化交易策略中的多源信息数据,其中,所述多源信息数据至少包括:结构化数据(如开盘价、交易量等)和非结构化数据(如经济指标、新闻文本等);根据对所述多源信息数据进行数据预处理、特征提取与特征融合,并生成量化交易策略模型;获取历史多源信息数据,使用所述的量化交易策略模型进行回测评估,并生成回测结果;根据回测结果判断是否执行策略交易,获取实时多源信息数据进行模拟实际交易或实际交易,并生成交易结果。本发明实现了多源信息数据的采集和处理、策略构建、回测和交易的一体化系统,提高了预测模型的准确率和系统的执行效率。

The present invention discloses a quantitative trading method and system integrating multi-source information data, which performs the following steps: receiving multi-source information data in a quantitative trading strategy, wherein the multi-source information data at least includes: structured data (such as opening price, trading volume, etc.) and unstructured data (such as economic indicators, news text, etc.); performing data preprocessing, feature extraction and feature fusion on the multi-source information data, and generating a quantitative trading strategy model; obtaining historical multi-source information data, using the quantitative trading strategy model for backtesting evaluation, and generating backtesting results; judging whether to execute strategy trading according to the backtesting results, obtaining real-time multi-source information data for simulating actual trading or actual trading, and generating trading results. The present invention realizes an integrated system for the collection and processing of multi-source information data, strategy construction, backtesting and trading, and improves the accuracy of the prediction model and the execution efficiency of the system.

Description

Quantitative transaction method and system integrating multi-source information data
Technical Field
The invention relates to the field of artificial intelligence and computer software, in particular to a quantitative transaction method and a quantitative transaction system for fusing multisource information data.
Background
The financial market widely regards technical analysis variables as the core features of stock price predictions. These variables provide important support for the prediction of future price trends by analyzing historical price and transaction amount data. Technical analytical methods are widely used in stock market predictive models, such as research based on wave theory, prop theory and twining theory. The method identifies trend reversal and supporting resistance position by analyzing the change modes of price and transaction amount, and provides basis for investment decision. Meanwhile, technical indexes such as momentum and Relative Strength Index (RSI) and the like provide effective references for price prediction by quantifying key changes of historical data.
Basic surface analysis also plays an important role in value assessment. By analyzing financial reports, macro economic indicators, and industry dynamics, investors can evaluate the intrinsic value of the asset and make strategies by leveraging the risk versus expected revenue with tools such as Capital Asset Pricing Models (CAPM). In recent years, the development of deep learning has driven the integration of technical analytics with other data sources, such as financial news, social media information, and online search behavior. Although these external variables enrich the data dimension, research shows that higher prediction accuracy can be achieved by using the technical analysis data alone, and the introduction of additional data variables does not significantly improve the accuracy, which highlights the core role and advantages of the technical analysis data in constructing an efficient prediction model.
The core innovation of the invention is to fuse multi-source information data, and provides a quantitative transaction method combining emotion analysis and technical analysis, and effectively integrate the quantitative transaction method into a quantitative transaction system. Different from the traditional method that technical analysis and emotion analysis are separately processed, the invention adopts a feature fusion technology, combines the emotion features based on unstructured data with technical index transaction signals based on structured data, and constructs a comprehensive prediction model. The fusion method not only overcomes the limitation of a single data source analysis method in capturing market multidimensional information, but also remarkably improves the prediction accuracy and the reliability of investment decision.
Through systematic multi-source information data fusion, the invention further enhances the processing capacity of the model on complex market data, thereby optimizing the execution efficiency of the transaction strategy. Experimental results show that compared with the traditional single data source analysis method, the prediction model based on multi-source information fusion can capture market trends more accurately, and feasibility and transaction benefits in practical application are remarkably improved.
Disclosure of Invention
The invention provides a quantitative transaction method integrating multisource information data, which is used for improving the accuracy of a quantitative transaction system in policy prediction and the income expression in actual transaction. The method comprises the steps of receiving multi-source information data in a quantized transaction strategy, wherein the multi-source information data at least comprise structured data (such as a drive price, transaction amount and the like) and unstructured data (such as economic indexes, news texts and the like), carrying out data preprocessing, feature extraction and feature fusion on the multi-source information data, generating a quantized transaction strategy model, obtaining historical multi-source information data, carrying out feedback evaluation by using the quantized transaction strategy model, generating a feedback result, judging whether strategy transaction is executed according to the feedback result, obtaining real-time multi-source information data, carrying out simulation actual transaction or actual transaction, and generating a transaction result.
In the multi-source information data receiving process of the quantitative transaction method, the invention provides a plurality of data interfaces which support the acquisition of structured and unstructured data from a plurality of data sources. Real-time data such as structured data (e.g., price of a disc, transaction amount, etc.) is obtained through the exchange interface, and unstructured data (e.g., news text, economic indicators, etc.) is obtained through the data packet interface. The history data may be downloaded via a data interface or uploaded directly by the user. All the collected or uploaded data are finally stored in a system database in a centralized way, so that the integrity and usability of the data are ensured.
When the multisource information data is processed, the quantitative transaction strategy model is constructed through data preprocessing, feature extraction and feature fusion. The structured data analyzes market trend through technical indexes, and the unstructured data analyzes emotion by calling a large model interface to extract market emotion characteristics. By means of a feature fusion method, such as splicing, adding and multiplying, the system can effectively fuse structured and unstructured data, and the prediction precision of a strategy model is improved, so that the decision process of quantitative transaction is optimized.
The invention also provides a quantitative transaction system fusing the multi-source information data, which aims to improve the prediction accuracy and the transaction income efficiency of the quantitative transaction system. The system comprises:
The core engine includes a main engine and an event engine. The event engine monitors the events in the system in real time and triggers corresponding operations through an event priority queue and a circulation processing mechanism, and combines data circulation and event driving logic to realize high-efficiency closed-loop management of strategy signal generation, data updating and transaction instruction execution and ensure the real-time performance and reliability of system response.
The service module comprises a service module, a core module and an interface module. The business module integrates data management, strategy generation, back detection, transaction execution and other modules to support the whole flow of a quantized transaction strategy, the core module is a core execution unit of the system and is responsible for executing specific operation according to the requirements of the functional module, the interface module comprises a plurality of sub-modules, the exchange interface is used for realizing interaction with an external exchange and supporting efficient market data receiving, transaction instruction transmission and state feedback, the data packet interface is connected with a plurality of data merchants through a standardized API and is used for downloading historical market data, financial reports and news data, and the large model interface is used for efficiently converting text data into structured data and realizing efficient fusion and management of diversified data.
And displaying a visual setting interface, wherein the interface provides an interactive bridge between a user and the system, the user can input configuration information through the interface, and the system intuitively feeds back a result on the interface. The main interface supports the connection of different exchange interfaces and data packet interfaces to realize buying and selling operation and real-time market data acquisition, and the data packet interfaces also support the reception of unstructured data such as market data, financial report data, news data and the like. The back measurement interface can set multi-source data and back measurement parameters, support historical verification of the strategy and visually present the back measurement result, and the strategy interface allows a user to configure the data source and the strategy running time, select actual transaction or simulated transaction and feed back the execution result in real time.
In the business module of the quantitative transaction system, the invention expands the functions which the quantitative transaction should have so as to improve the prediction accuracy and the transaction income efficiency of the quantitative transaction system. The function module comprises a data management module, a strategy module, a return detection module and a transaction module, wherein the data management module is used for receiving, storing and processing multi-source information from different data sources to ensure the effectiveness and timeliness of the data, the strategy module is used for constructing a prediction model according to defined data characteristics to generate transaction signals and conduct transaction risk management and control, the return detection module is used for carrying out return detection on a quantized transaction strategy by utilizing historical multi-source information data to evaluate the performance and effect of the strategy, and the transaction module is used for executing simulation transaction or actual transaction operation by utilizing real-time multi-source information data based on a return detection result and updating a transaction state in real time.
The invention successfully improves the construction and execution efficiency of the quantitative transaction strategy through the deep fusion of the multi-source information data and the application of the characteristic engineering. By introducing an event-driven mechanism and a high-efficiency back-testing algorithm, the technical threshold is reduced, and the prediction accuracy of the strategy and the benefit of actual transaction are obviously improved. Finally, the system realizes more accurate prediction while processing complex market information, has wide application potential, and can provide powerful support for investors in financial markets.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the embodiments are briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a business flow diagram of a quantized transaction method and system incorporating multi-source information data;
FIG. 2 is a schematic flow chart of a quantitative transaction method incorporating multi-source information data;
FIG. 3 is a flow chart of model construction for a quantized transaction method incorporating multi-source information data;
FIG. 4 is a diagram of a quantized transaction system architecture incorporating multi-source information data;
FIG. 5 is a schematic diagram of a quantized transaction system incorporating multi-source information data;
FIG. 6 is a schematic diagram of a main interface of a quantitative transaction system according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a feedback interface of a quantitative transaction system according to an embodiment of the present invention;
Fig. 8 is a schematic diagram of a policy interface of a quantized transaction system according to an embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
The embodiment of the invention provides a quantitative transaction method for fusing multi-source information data, which is shown in fig. 1. The system receives and analyzes data through the data packet interface and the exchange interface, wherein the structured data comprises a driving price, a lowest price, a highest price, an exchange amount, a historical fluctuation rate and the like, and the unstructured data comprises a news text, social media emotion and the like. The system uses feature engineering to fuse the data, generates a high-dimensional feature vector for strategy prediction, and constructs transaction logic based on historical data and real-time data. And judging whether to execute the simulated transaction according to the return test result. If the simulated transaction is to be executed, setting the simulated operation time length, controlling the quantitative transaction strategy to execute the simulated transaction operation to obtain a simulated transaction result, and judging whether to execute the actual transaction according to the return test result. And if the actual transaction is to be executed, controlling the quantitative transaction strategy to execute the actual transaction operation to obtain an actual transaction result.
Based on the same inventive concept, the embodiment of the invention provides a quantitative transaction method combining multi-source information data processing. Fig. 2 shows a flow chart of the method, comprising the following steps:
S201, receiving multi-source information data in a quantized transaction strategy, wherein the multi-source information data at least comprises structured data (such as a drive price, a transaction amount and the like) and unstructured data (such as economic indexes, news texts and the like).
The data collection is performed by a user-friendly visualization tool, and the user can acquire historical data from a system data packet interface or upload the data to a data management module of the system. The real-time market data is used for simulating real-time transaction and real-disk transaction, wherein the structured data is acquired through a transaction exchange interface, and the unstructured data is acquired through a data packet interface.
As unstructured data includes, but is not limited to, economic indicators, industry analysis reports, macro-economic data, corporate financial reports, news texts, and the like. Therefore, in an alternative embodiment, the packet interface provided by the embodiment of the present invention may further include Tushare, aggregate width, IB penetration, wind, etc. All the data collected or uploaded by the user are finally stored in the SQLite database for unified management and quick call.
S202, carrying out data preprocessing, feature extraction and feature fusion on the multi-source information data, and generating a quantized transaction strategy model.
Specifically, the structured data analyzes future price trends via technical metrics. The data can be downloaded from the API of the data provider, or can be directly uploaded to the SQLite database of the system, and other structural data characteristics can be obtained through a technical index formula. The most widely used technical indicators in the market include MACD, KDJ, brin line (BOLL) and the like.
And the unstructured data is used for extracting text emotion by using the large model and the prompt words called in the system, and the text emotion is used for evaluating market signals.
The prompt word specifically means that all previous indications are forgotten. Suppose you are a financial expert with stock recommendation experience. The text answers good or bad for the stock price of the company name in a short period of time according to the text below.
In the emotion analysis process of unstructured data, the system inputs a text into a model API, calls a large model, and extracts emotion features influenced by stock price through the model. The method comprises the following steps of analyzing input text by a hypothesis model, generating a prediction result of the stock price of a target company, and judging the influence of the text on the short-term stock price. The system output "yes" indicates a positive effect, denoted as digital 2, "no" indicates a negative effect, denoted as digital 1, and "unknown" indicates an undeterminable, denoted as digital 0.
Based on feature sequences generated from structured and unstructured data, the embodiment of the invention provides several feature fusion methods, namely splicing different features directly to form new fusion features, adding, namely adding a plurality of feature graphs element by element to obtain a feature average value so as to reduce noise influence, multiplying, namely multiplying the plurality of feature graphs element by element, enhancing semantic information of the features and retaining details.
In order to further refine the process of constructing the policy model, the specific flow is shown in fig. 3:
The method comprises the steps of obtaining unstructured data, such as text data of economic indexes, news texts and the like, carrying out emotion polarity analysis by using a large model through calling a large model API interface which is well deployed in a system to obtain emotion feature sequences, simultaneously, calculating the corresponding feature sequences through calling corresponding technical index modules of the obtained structured data (such as a closing price, a opening price and transaction amount), splicing the emotion feature sequences and the technical index feature sequences to construct new feature data, and finally, analyzing the integrated feature sequences to construct a stock price prediction model.
In addition, because of the variety of unstructured data and structured data, a user needs to select required data in a designated policy interface so as to ensure the normal calling of the data and the smooth proceeding of subsequent model construction operation.
S203, historical multi-source information data are acquired, the quantitative transaction strategy model is used for carrying out feedback assessment, and a feedback result is generated. The specific steps include that corresponding market quotation data are obtained from the SQLite database according to the set return time period, and the corresponding market quotation data are input into the quantitative transaction strategy model in the S202 one by one through the message queue, and finally a return test result is obtained.
S204, judging whether to execute strategy transaction according to the back measurement result, acquiring real-time multi-source information data to simulate actual transaction or actual transaction, and generating transaction result.
Specifically, after the return test result meets the user requirement, the system starts a simulation transaction module, acquires market data from the exchange in real time and inputs the market data into a quantitative transaction strategy. Non-day data (e.g., the first two days of data) is used in the simulated transaction process to simulate the actual transaction process, but without involving actual funds manipulation. The system monitors the simulated transaction state according to the preset strategy running time, automatically stops the transaction when the set deadline is reached, and generates a simulated transaction result.
After both the return test result and the simulated transaction result meet the user requirements, the system starts the actual transaction function. Considering the randomness of market quotation data, even if the return and simulated transaction results are eligible, there may be a risk to the actual transaction. Therefore, the actual transaction result is transmitted to the visual interface in real time for the user to judge whether to continue or stop the transaction.
From the above, the quantitative transaction method for fusing the multi-source information data provided by the embodiment of the invention can realize the historical return, simulation transaction and actual transaction of the strategy. The method can rapidly verify whether the test result meets the condition and ensure that the strategy normally operates in the actual transaction, thereby improving the prediction precision and remarkably improving the yield of the actual transaction.
Based on the same inventive concept, an optional system architecture diagram of a quantitative transaction system based on multi-source information data is provided in an embodiment of the present invention, as shown in fig. 4. The quantized transaction system comprises three parts of a front end, a strategy construction layer and a strategy operation layer, wherein the data flow is referenced with the numbers in fig. 4:
The method comprises the steps of 1, configuring parameters such as data types, feature fusion methods and function selection and the like on a front-end interface by a user, 2, sending configuration information into a system, calling an API to obtain configured multi-source information data, 3, sending the obtained data into a strategy construction layer, and respectively carrying out feature processing on structured and unstructured data according to a configured processing method. The structured data are features of calculation technical indexes, unstructured data are sent into a large model to be subjected to emotion analysis, and finally a unified data set is generated through feature fusion, wherein the step 4 is that the system utilizes the generated data set to carry out model construction in a strategy generation module and designs transaction logic and risk control conditions based on model predicted values, the step 5 is that after the strategy construction is completed, a strategy operation layer calls a corresponding functional module in strategy starting configuration information to execute operations such as back detection, simulation transaction or actual transaction, the step 6 is that after the function operation is completed, the system transmits results to a strategy evaluation and visualization module to calculate final results, and the step 7 is that the final results are displayed on a front-end interface, and when the simulation transaction and the actual transaction are executed, the interface displays detailed information of transaction results, key indexes and strategy operation in real time.
Based on the same inventive concept, the embodiment of the invention provides a functional module of a quantitative transaction system based on multi-source information data. The principle of each module is similar to that of the quantized transaction strategy execution method, so that the implementation of the method can be referred to, and repeated parts are not repeated.
The embodiment of the invention provides a quantitative transaction system for fusing multisource information data, and fig. 5 is a schematic diagram of the system in the embodiment of the invention. The system includes an event engine, a host engine, and a service module.
The main engine is a core management module of the system and is responsible for managing and coordinating initialization and operation of different modules, and concretely comprises the steps of managing the modules in the system (such as functions, function engines, interfaces and the like), initializing and adding the different modules through methods such as add_app, add_engine, add_gateway and the like, and starting an event engine, namely, starting the event engine and ensuring that the event engine can process events in the system.
The event engine processes based on an event circulation architecture and supports timing tasks and asynchronous interaction so as to ensure real-time response and efficient processing of the system, and the core technology comprises the steps of timing task processing, namely generating timing events through a timer and asynchronously triggering the timing tasks through the event engine so as to ensure that the system can periodically execute related tasks, asynchronous event processing, namely adopting an event circulation mechanism and an asynchronous non-blocking architecture, enabling the processing of the events not to block other tasks of the system and supporting high-concurrency and low-delay event processing, and modular event processors, namely scheduling corresponding modules for different types of events (such as data subscription, transaction instructions and system alarms).
Meanwhile, the system function is perfected through the service module, and the method specifically comprises the following steps:
and the service module is used for completing main functions of the system by integrating the core modules such as data management, strategy generation, return test, transaction execution and the like. Comprising the following steps:
the data management module is in charge of receiving, storing and processing data from a plurality of data sources, ensuring the integrity, the effectiveness and the timeliness of the data, and providing historical data and real-time market data support required by policy execution and return test;
And the strategy module is used for constructing a prediction model according to the defined data characteristics, generating a transaction signal and controlling transaction risks. The module can automatically analyze market trend, output marketing signals and perform necessary risk early warning and loss stopping setting;
And the return testing module is used for returning the quantitative transaction strategy based on the historical data and evaluating the performance of the strategy under different market conditions. The return test result helps to optimize the strategy, and the success rate and the income performance in the actual transaction are improved;
and the transaction module is used for executing the simulation transaction and the actual transaction operation according to the transaction signal and the return result generated by the strategy module. The module can update the transaction state in real time, track the execution condition, communicate with the exchange and ensure the accurate and timely transmission of the transaction instruction;
And the core module is used for providing core services of the system, and the core module is used for providing specific functional support in the system according to the functions of the engine. Core services include, but are not limited to:
the order management system is responsible for processing the issuing and management of all transaction instructions and ensuring that the order can quickly respond to market dynamics;
The log system provides real-time running state tracking for developers and users, captures system errors and anomalies and provides powerful support for debugging and optimization;
the email notification module is used for reminding a user in time when offline or a major event occurs, and improving user experience and system transparency;
And the interface module is connected with an external API interface, and the part builds communication with the outside according to the function of the API. The multi-source information data required for the system may be obtained from the exchange API and the data provider. The exchange API also bears the communication of the exchange, realizes the ordering operation, acquires the authority of interacting with the large model from the model API, and performs text analysis on the unstructured data through the large model. Callable large models include GLM-4, prompt, claude2.1, and the like.
In order to reduce the technical threshold, the invention provides a visual setting interface through which a user can easily input quantitative transaction parameters. Thus, as an optional embodiment, before S201, the method for quantifying transaction policy execution provided in the embodiment of the present invention further includes displaying a visual setting interface, which specifically includes:
in the above-mentioned S201 and S202, the configuration information for executing the quantized transaction policies inputted by the user through the interface may be received, and in the above-mentioned S203 and S204, the output results of the transactions of different policies may be outputted at regular time or in real time.
Fig. 6, fig. 7, and fig. 8 are a main interface, a callback interface, and a policy interface according to an embodiment of the present invention. The main interface shown in fig. 6 includes a functional area for switching to other two interfaces and includes an account module (such as a data packet interface account, a simulated transaction account and a real disk transaction account) connected to an external interface for data acquisition, the callback interface shown in fig. 7 provides a button for quickly adjusting a policy code, after a user configures a callback parameter, the user can start the callback with one key, and the result is displayed in a result display area and a visual display area, and the policy interface shown in fig. 8 is focused on simulating actual transaction and actual transaction functions. Before executing a policy, a user needs to configure relevant parameters of the policy, such as data selection, runtime, and other policy parameters.
The three visual interfaces in the embodiment respectively bear different functions, namely a main interface is used for external connection, a return test interface supports policy return test by using historical data, and a policy interface is used for executing simulated actual transaction or actual transaction.
The method and the system can realize strategy return measurement, simulated transaction and real disc transaction through the preselected multi-source information data, quickly verify the feasibility of the strategy, improve the reliability of the strategy, reduce the risk of the transaction, and further effectively improve the yield of the real disc transaction.
In summary, the embodiment of the invention provides a quantitative transaction method and a quantitative transaction system for fusing multi-source information data. By pre-selecting the needed multi-source information data, strategy return, simulation transaction and actual transaction can be realized, the feasibility of the strategy is rapidly checked, the reliability of the strategy is improved, and the transaction risk is reduced. The above embodiments are merely illustrative of the preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but various modifications and improvements made by those skilled in the art to which the present invention pertains are made without departing from the spirit of the present invention, and all modifications and improvements fall within the scope of the present invention as defined in the appended claims.

Claims (10)

1.一种融合多源信息数据的量化交易方法,其特征在于:1. A quantitative trading method integrating multi-source information data, characterized by: 接收量化交易策略中的多源信息数据,其中,所述多源信息数据至少包括:结构化数据(如开盘价、交易量等)和非结构化数据(如经济指标、新闻文本等);Receiving multi-source information data in a quantitative trading strategy, wherein the multi-source information data at least includes: structured data (such as opening price, trading volume, etc.) and unstructured data (such as economic indicators, news text, etc.); 根据对所述多源信息数据进行数据预处理、特征提取与特征融合,并生成量化交易策略模型;Performing data preprocessing, feature extraction and feature fusion on the multi-source information data, and generating a quantitative trading strategy model; 获取历史多源信息数据,使用所述的量化交易策略模型进行回测评估,并生成回测结果;Obtain historical multi-source information data, use the quantitative trading strategy model to perform backtesting evaluation, and generate backtesting results; 根据回测结果判断是否执行策略交易,获取实时多源信息数据进行模拟实际交易或实际交易,并生成交易结果。Determine whether to execute strategy trading based on backtesting results, obtain real-time multi-source information data to simulate actual trading or actual trading, and generate trading results. 2.如权利要求1所述的方法中,所述接收多源信息数据,其特征在于:2. In the method of claim 1, the receiving of multi-source information data is characterized by: 采集实时市场行情数据、财报数据、新闻数据等;Collect real-time market data, financial report data, news data, etc. 将实时市场行情数据存储在高效的数据库系统中,如SQLite数据库;Store real-time market data in an efficient database system, such as SQLite database; 通过API接口连接数据提供商,实时获取并下载历史数据,存储在系统数据库中,以支持后续回测及实时交易策略的执行。Connect to data providers through API interfaces to obtain and download historical data in real time and store it in the system database to support subsequent backtesting and execution of real-time trading strategies. 3.如权利要求1所述的方法中,所述数据特征提取与特征融合,其特征在于:3. In the method according to claim 1, the data feature extraction and feature fusion are characterized by: 根据所述非结构化数据应用的时间段,从数据库中获取文本数据(如新闻、财报等),通过API接口调用大模型方法(如GLM-4、prompt和Claude2.1等)进行情绪特征分析,以评估个股的情绪趋势;According to the time period of the unstructured data application, text data (such as news, financial reports, etc.) is obtained from the database, and large model methods (such as GLM-4, prompt and Claude2.1, etc.) are called through the API interface to perform sentiment feature analysis to evaluate the sentiment trend of individual stocks; 根据所述结构化数据(如市场行情数据),通过技术分析方法计算相关指标,制定量化交易的择时操作策略;Based on the structured data (such as market data), relevant indicators are calculated through technical analysis methods to formulate timing operation strategies for quantitative trading; 对所述结构化数据和非结构化数据进行特征融合(如拼接,相加和相乘等),结合两类特征的预测结果,对未来股价走势进行综合预测,并基于该预测生成交易决策。The structured data and the unstructured data are subjected to feature fusion (such as concatenation, addition and multiplication, etc.), and the prediction results of the two types of features are combined to make a comprehensive prediction of the future stock price trend, and a trading decision is generated based on the prediction. 4.如权利要求1所述的方法中,所述回测评估,其特征在于:4. In the method of claim 1, the backtest evaluation is characterized by: 定义回测时间段,其中根据所述特征数据,输入所述量化交易策略执行回测操作,得到回测结果,包括:A backtesting period is defined, wherein the quantitative trading strategy is input according to the characteristic data to perform a backtesting operation and obtain a backtesting result, including: 在回测时间段内,根据所述多源信息数据进行特征融合后的特征数据,应用量化交易策略执行回测操作,评估策略在历史时间段内的表现。During the backtesting period, the quantitative trading strategy is applied to perform backtesting operations based on the feature data obtained after feature fusion of the multi-source information data to evaluate the performance of the strategy during the historical period. 5.如权利要求1所述的方法中,所述策略交易,其特征在于:5. In the method of claim 1, the strategic transaction is characterized by: 模拟实际交易,其中,在所述回测结果满足用户要求的情况下,根据模拟交易接口,控制所述量化交易策略执行模拟交易操作,得到交易结果,包括:在模拟交易过程中,实时监控策略的表现,记录策略的运行时长,当运行时长达到预设的模拟交易时长时,自动终止模拟交易,并输出模拟交易结果,以便进行后续的效果分析与调整;Simulate actual transactions, wherein, when the backtest results meet the user's requirements, according to the simulated trading interface, control the quantitative trading strategy to perform simulated trading operations and obtain trading results, including: during the simulated trading process, monitor the performance of the strategy in real time, record the running time of the strategy, and automatically terminate the simulated trading when the running time reaches the preset simulated trading time, and output the simulated trading results for subsequent effect analysis and adjustment; 实际交易,其中,在所述模拟交易结果满足用户要求的情况下,根据实盘交易接口,控制所述量化交易策略执行真实交易操作,得到实际交易结果,包括:在实际交易过程中,实时监控策略的表现,若监测值超过设定指标时,自动终止交易,或等待用户关闭策略,终止交易,并输出实际交易结果,以便进行后续的效果分析。Actual trading, wherein, when the simulated trading results meet the user's requirements, the quantitative trading strategy is controlled to execute real trading operations according to the real-time trading interface to obtain actual trading results, including: during the actual trading process, the performance of the strategy is monitored in real time. If the monitoring value exceeds the set indicator, the transaction is automatically terminated, or the user is asked to close the strategy, the transaction is terminated, and the actual trading results are output for subsequent effect analysis. 6.一种融合多源信息数据的量化交易方法系统,其特征在于:6. A quantitative trading method system integrating multi-source information data, characterized by: 核心引擎,包括,主引擎和事件引擎,其特征在于:主引擎负责系统功能和模块的管理与扩展,事件引擎则负责事件的调度、定时任务和API交互,使得系统能够高效地处理并发任务和事件;The core engine includes the main engine and the event engine. The main engine is responsible for the management and expansion of system functions and modules, while the event engine is responsible for event scheduling, scheduled tasks, and API interaction, so that the system can efficiently handle concurrent tasks and events. 服务模块,包括,业务模块,核心模块和接口模块,其特征在于:引擎提供基础服务,功能模块实现具体业务,API为外部系统提供访问和交互的通道;The service module includes business module, core module and interface module, which is characterized by: the engine provides basic services, the function module implements specific business, and the API provides a channel for access and interaction for external systems; 显示可视化设置界面,包括,主界面,回测界面和策略界面,其特征在于:用户输入的配置信息和反馈的结果信息。Displays a visual setting interface, including a main interface, a backtesting interface and a strategy interface, characterized by: configuration information input by the user and feedback result information. 7.如权利要求6所述的系统中,所述核心引擎,其特征在于:7. In the system as claimed in claim 6, the core engine is characterized by: 主引擎,用于协调并管理系统的整体工作流程,处理策略执行、回测与交易等核心功能;The main engine is used to coordinate and manage the overall workflow of the system, handling core functions such as strategy execution, backtesting and trading; 事件引擎,用于通过事件队列存储待处理的事件,采用事件循环机制持续处理队列中的事件,并触发相应的操作。The event engine is used to store pending events through the event queue, use the event loop mechanism to continuously process events in the queue, and trigger corresponding operations. 8.如权利要求6所述的系统中,所述服务模块,其特征在于:8. In the system as claimed in claim 6, the service module is characterized in that: 功能模块,包括但不限于数据管理模块、策略模块、回测模块和交易模块;Functional modules, including but not limited to data management module, strategy module, backtesting module and trading module; 功能引擎,用于将功能的逻辑转化为具体的操作;Function engine, used to convert the logic of the function into specific operations; 交易所接口,用于系统与外部交易所的交互,执行买卖操作,也可获取实时行情数据;Exchange interface, used for the system to interact with external exchanges, perform buy and sell operations, and obtain real-time market data; 数据包接口,通过API连接不同的数据源,实时获取市场数据、财报数据、新闻数据等非结构化数据,用于策略决策;Data packet interface, which connects different data sources through API to obtain unstructured data such as market data, financial report data, news data, etc. in real time for strategic decision-making; 大模型接口,通过API连接不同的大模型,并用它来分析非结构化数据。Big model interface, connect different big models through API and use it to analyze unstructured data. 9.如权利要求7所述的系统中,所述功能模块,其特征在于:9. In the system according to claim 7, the functional module is characterized in that: 数据管理模块,用于接收、存储和处理来自不同数据源的数据,确保数据的有效性和时效性;Data management module, used to receive, store and process data from different data sources to ensure the validity and timeliness of the data; 策略模块,根据已定义的数据特征,构建模型并进行预测,生成交易信号并进行风险管控;Strategy module, which builds models and makes predictions based on defined data features, generates trading signals and performs risk management; 回测模块,利用历史数据对量化交易策略进行回测,以评估策略的表现和效果;Backtesting module, which uses historical data to backtest quantitative trading strategies to evaluate the performance and effectiveness of the strategies; 交易模块,基于策略模块生成的交易信号与回测结果,执行模拟实际交易和实际交易操作,并实时更新交易状态。The trading module performs simulated actual trading and actual trading operations based on the trading signals and backtesting results generated by the strategy module, and updates the trading status in real time. 10.如权利要求9所述的系统中,所述数据管理模块,其特征在于:10. In the system according to claim 9, the data management module is characterized in that: 数据采集模块,用于采集实时多源信息数据;Data acquisition module, used to collect real-time multi-source information data; 数据存储模块,用于将实时多源信息数据存储于数据库(如SQLite数据库)中,并确保数据的高效存取与时效性。The data storage module is used to store real-time multi-source information data in a database (such as SQLite database) and ensure efficient access and timeliness of the data.
CN202411754399.2A 2024-12-02 2024-12-02 Quantitative trading method and system integrating multi-source information data Pending CN119904306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411754399.2A CN119904306A (en) 2024-12-02 2024-12-02 Quantitative trading method and system integrating multi-source information data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411754399.2A CN119904306A (en) 2024-12-02 2024-12-02 Quantitative trading method and system integrating multi-source information data

Publications (1)

Publication Number Publication Date
CN119904306A true CN119904306A (en) 2025-04-29

Family

ID=95463942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411754399.2A Pending CN119904306A (en) 2024-12-02 2024-12-02 Quantitative trading method and system integrating multi-source information data

Country Status (1)

Country Link
CN (1) CN119904306A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120258990A (en) * 2025-06-04 2025-07-04 深圳市赢时胜信息技术股份有限公司 Cross-modal transaction feature self-generation and anomaly detection system and method integrating large language model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120258990A (en) * 2025-06-04 2025-07-04 深圳市赢时胜信息技术股份有限公司 Cross-modal transaction feature self-generation and anomaly detection system and method integrating large language model

Similar Documents

Publication Publication Date Title
US11627053B2 (en) Continuous data sensing of functional states of networked computing devices to determine efficiency metrics for servicing electronic messages asynchronously
US11699113B1 (en) Systems and methods for digital analysis, test, and improvement of customer experience
US10387536B2 (en) Computerized data-aware agent systems for retrieving data to serve a dialog between human user and computerized system
US12210937B2 (en) Applying scoring systems using an auto-machine learning classification approach
CN119904306A (en) Quantitative trading method and system integrating multi-source information data
de Souza Carvalho et al. A comparative analysis of the agile and traditional software development processes productivity
CN114529402A (en) Credit management method, device and medium based on big data wind control
Lepenioti et al. Human-augmented prescriptive analytics with interactive multi-objective reinforcement learning
CN118691231A (en) Workflow operation method, device and medium based on multi-agent and human-machine collaboration
CN114066629A (en) Model management AI platform and model management method
CN118780641A (en) A smart cultural tourism supply chain management system based on blockchain
CN120086577A (en) A financial multi-source data processing system and method
US20240232934A1 (en) Systems and methods for sustainability-based transactional processing and reward automation
CN118036248A (en) Supply chain production line simulation method, device and equipment based on digital twin model
Ma ChatGPT and Generative AI in IT processes
CN116956994A (en) Business platform expansion prediction method and device
CN116450703A (en) Data processing, statistics, node determination and modeling method and electronic equipment
Gebrewold et al. Challenges with Measuring Software Delivery Performance Metrics: A case study at a software organisation
Ahmed et al. Intelligent Decision Making in IoT-Based Enterprise Management through Fusion Optimization with Deep Learning Models.
CN112732235A (en) Semi-automatic transaction investment tool, implementation method and transaction investment method
WO2022003737A1 (en) Platform and method for pluggable ai and machine learning cataloguing and prediction
US12182672B2 (en) Systems and methods for generating dynamic conversational queries in user interfaces using state machine libraries
US20240273109A1 (en) Just-in-time synthetic computations on time-series data using a metrics approach
CN117974248B (en) Data transaction method and system based on cloud service sharing
US20250209307A1 (en) System and Method for Multiple Concurrent Interactive Sessions Using Generative Artificial Intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination