Stock backtest data visualization device and method

By marking the buy and sell symbols in a single price line chart, and combining the overlay display of the rate of return bar chart, the complexity of data visualization in the existing technology is solved, and the simple display of stock backtest data is realized, which improves users ability to identify and understand.

CN118898516APending Publication Date: 2024-11-05MITAKE INFORMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311344275.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-02
Filing Date
2023-10-17
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The prior art cannot effectively present the entry points, exit points and return rates of stock backtesting in a visual way in the technical line chart, making it difficult for users to quickly identify and understand the backtesting data.

Method used

A single price line chart is used to display the buy symbol and sell symbol, and the backtest results are displayed in the same view through the superimposed return rate bar chart. The image annotation and interactive visual effects are used to enable users to intuitively identify the suitability of trading strategies.

Benefits of technology

It makes it easier to visually identify and understand stock backtest information quickly, simplify the visual representation of data, and improves the convenience and efficiency of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898516A_ABST
    Figure CN118898516A_ABST
Patent Text Reader

Abstract

The invention discloses a data visualization device and method for stock backtesting. The method comprises the following steps: establishing connection with a server; generating a back-test view, and receiving the selection of the financial commodity, the transaction strategy and the time interval to combine into a back-test instruction; uploading a backtest instruction to the server; downloading back test data corresponding to the back test instruction from the server; downloading historical quotation data of the financial commodity from the server, generating a single price line graph according to the historical quotation data, and displaying the single price line graph on a back test view; and generating corresponding buying symbols and selling symbols according to the backtest data, and marking the buying symbols and the selling symbols at positions corresponding to the price fold lines. According to the invention, a user can visually identify and understand the entry and exit points of the back-test data in a more intuitive manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a stock backtesting technology, and more particularly to a data visualization device, method and computer program product for stock backtesting. Background Art

[0002] Stock backtesting, also known as stock backtesting, is a method of evaluating the performance of stock trading strategies by applying them to a series of real stock historical data to analyze their potential performance. The test results can help investors choose better stock trading strategies to obtain the best investment returns.

[0003] Specifically, stock backtesting usually includes the following steps: 1. Select a stock trading strategy: for example, select an indicator as the basis for stock buying and selling, or select stocks through technical analysis or fundamental analysis; 2. Determine the backtest time interval: determine the start and end time of the backtest, and determine the buying and selling frequency during the backtest period; 3. Simulate stock buying and selling behavior: According to the selected stock trading strategy, simulate stock buying and selling behavior within the backtest time interval; 4. Calculate the performance of the stock trading strategy: Calculate the rate of return and risk of the stock trading strategy based on the backtest results; 5. Analyze the performance of the stock trading strategy: Evaluate the performance of the stock trading strategy through analysis of the strategy performance indicators, and make adjustments or optimizations.

[0004] Prior art 1, Taiwan Invention Patent Publication No. I648694 discloses a method for searching for the best stock selection conditions by pre-backtesting historical data, the method comprising: (A) the processor performs historical backtesting on a variety of stocks and financial products according to a variety of stock selection conditions and their combinations, and pre-stores the historical backtesting results after backtesting in the database; and (B) the processor receives an index number, entry holding time and a backtesting time interval related to each of the stock selection conditions input by the user terminal, and calculates the best winning rate stocks or financial products that meet the index number from the database according to the backtesting time interval, and provides each of the stocks or financial products that meet the index number and their stock selection conditions to the user terminal. Prior art 1 solves the problem that "existing financial product analysis devices require investors to try various different indicators and combinations to find stocks or investment products with high winning rates, which will take a lot of time." The technical means of the prior art 1 is to "provide a method for searching for the best stock selection conditions by pre-backtesting historical data", and its technical effect is to "directly and quickly select the stocks and investment products with the best winning rate (highest or lowest)". However, the prior art 1 still fails to meet the needs of users (i.e., investors) in that it is unable to present the backtest information in a visual way in the technical line chart.

[0005] Another prior art is to mark the entry and exit points of the stock backtest with buy symbols (such as an upward triangle) and sell symbols (such as a downward triangle) in the K-line chart, such as Figure 1 As shown. Prior Art 2 solves the problem of “lack of visual presentation of backtest data” in Prior Art 1. The technical means of Prior Art 2 is to “convert the entry and exit time of the stock backtest into buy symbols and sell symbols and mark them on the corresponding price in the K-line chart”, and its technical effect is to “display the buy symbol representing the entry point of the stock backtest and the sell symbol representing the exit point in the K-line chart”. Although Prior Art 2 has provided users with a stock backtest K-line chart with data visualization, each K-line bar is drawn by four price levels, namely, the opening price, the closing price, the highest price and the lowest price. The K-line chart composed of multiple K-line bars is more complex in visual presentation. Overlaying the buy symbol and the sell symbol on the K-line bar will make the visual complexity higher. Therefore, the added buy symbol and sell symbol are not easy for users to visually identify (i.e., difficult to read). In other words, the technical purpose that the previous technology 2 originally wanted to achieve (presenting backtest data in a visual way) could not achieve the expected technical effect (allowing users to easily see the backtest data, which is difficult to identify because the screen information is too much and too complicated). Moreover, the data visualization stock backtest K-line chart provided by the previous technology 2 does not make it easy for users to quickly identify the same backtest (i.e., paired buy and sell symbols) by visual means.

[0006] Users need a technology that can provide graphical assistance and display stock backtest information with concise technical line graphs, so that they can visually more easily and quickly identify and understand the stock backtest information, but the previous technology 1 and the previous technology 2 cannot meet this user demand. Therefore, it is necessary to improve the existing method and propose a data visualization technology for stock backtesting with the resources of hardware and software working together, and use concise technical line graphs in the stock backtesting software to display the entry point, exit point and return rate of the stock backtesting, so as to make up for the shortcomings of the previous technology. Summary of the invention

[0007] In view of this, the present invention proposes a data visualization device, method and computer program product for stock backtesting, wherein a single price line chart in a stock backtesting application displays a buy symbol representing an entry point of a stock backtest and a sell symbol representing an exit point of a stock backtest, and the rate of return of each backtest is displayed in an overlay manner in the same view. The graphical annotation of the single price line chart can be used to intuitively and quickly identify the backtesting information, so as to understand whether the backtested trading strategy is suitable.

[0008] The present invention provides a data visualization device for stock backtesting, which comprises: a communication module for establishing an Internet network connection; a backtesting module for generating a backtesting view to receive a financial product, a trading strategy and a time interval selection to form a backtesting instruction, upload the backtesting instruction to a server, and download a backtesting data corresponding to the backtesting instruction from the server and trigger a backtesting line chart marking module, wherein the backtesting data comprises an entry time, an entry price, an exit time, an exit price and a rate of return; the backtesting line chart marking module downloads the backtesting data corresponding to the backtesting instruction from the server and triggers a backtesting line chart marking module. A single price line chart is generated based on historical quotation data of a financial product and displayed on the backtest view. The single price line chart includes a price line. A corresponding buy symbol and a sell symbol are generated based on the backtest data and marked at the corresponding position of the price line. The buy symbol corresponds to the entry time and the sell symbol corresponds to the exit time; a memory is used to store an application, the application includes the backtest module and the backtest line chart marking module; the screen is used to display a graphical user interface of the application; one or more processors are connected to the memory and the screen and execute the application.

[0009] Optionally, the single price line chart is a closing price line chart or an average price line chart.

[0010] Optionally, the backtest view displays a plurality of default trading strategy buttons, each of which represents a different trading strategy and includes an entry strategy and an exit strategy, and the entry strategy and the exit strategy each include one to several screening conditions and corresponding one to several parameters.

[0011] Optionally, the backtesting module further includes: receiving a default one-click instruction for each of the trading strategy buttons to generate the corresponding backtesting instruction and uploading it to the server, then downloading the backtesting data corresponding to the backtesting instruction and generating the single price line chart corresponding to one of the trading strategy buttons and marking the corresponding buy symbol and sell symbol accordingly.

[0012] Optionally, the backtesting module further includes: generating a backtesting entry and exit data table based on the backtesting data and displaying it in the backtesting view, wherein the backtesting entry and exit data table presents the entry time, the entry price, the exit time, the exit price and the trading strategy of the backtesting data in a tabular form.

[0013] Optionally, the single price line chart and the backtest entry and exit data table provide two-way interactive visual feedback when being operated.

[0014] Optionally, the backtest line chart marking module further includes: generating a rate of return switching switch displayed on the backtest view, the rate of return switching switch is used to receive an open instruction or a close instruction to open or close a rate of return bar chart superimposed on the single price line chart.

[0015] Optionally, when the rate of return bar chart is superimposed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a rate of return label on one side corresponding to a rate of return of the rate of return bar chart, and displays a price label on the other side corresponding to the price line.

[0016] Optionally, the rate of return bar chart includes one to several rate of return bars (Bar), one rate of return bar represents a complete transaction, the width of the rate of return bar represents the time length from the entry time to the exit time, and the length of the rate of return bar represents the rate of return of the transaction, the length of the rate of return bar above a rate of return baseline represents a positive rate of return, and the length of the rate of return bar below the rate of return baseline represents a negative rate of return.

[0017] Optionally, the rate of return column belonging to the positive rate of return is marked with a first color, and the rate of return column belonging to the negative rate of return is marked with a different second color.

[0018] The present invention further proposes a data visualization method for stock backtesting, which is applied to a device, wherein the device includes a communication module, a memory and a screen, and the method includes: establishing a connection with a server; generating a backtesting view to receive a financial product, a trading strategy and a time interval selection to form a backtesting instruction; uploading the backtesting instruction to the server; downloading backtesting data corresponding to the backtesting instruction from the server, wherein the backtesting data includes an entry time, an entry price, an exit time, an exit price and a rate of return; downloading historical quotation data of the financial product from the server and generating a single price line chart based on the data to display in the backtesting view, wherein the single price line chart includes a price broken line; and generating a corresponding buy symbol and a sell symbol based on the backtesting data and marking them at the corresponding position of the price broken line, wherein the buy symbol corresponds to the entry time and the sell symbol corresponds to the exit time.

[0019] Optionally, the single price line chart is a closing price line chart or an average price line chart.

[0020] Optionally, the backtest view displays a plurality of default trading strategy buttons, each of which represents a different trading strategy and includes an entry strategy and an exit strategy, and the entry strategy and the exit strategy each include one to several screening conditions and corresponding one to several parameters.

[0021] Optionally, a one-click instruction for each of the default trading strategy buttons is received to generate the corresponding backtest instruction and upload it to the server, and then the backtest data corresponding to the backtest instruction is downloaded to generate the single price line chart corresponding to one of the trading strategy buttons and mark the corresponding buy symbol and sell symbol.

[0022] Optionally, the method further includes: generating a backtest entry and exit data table based on the backtest data and displaying it in the backtest view, wherein the backtest entry and exit data table presents the entry time, the entry price, the exit time, the exit price and the trading strategy of the backtest data in a tabular form.

[0023] Optionally, the single price line chart and the backtest entry and exit data table provide two-way interactive visual feedback when being operated.

[0024] Optionally, the method further includes: generating a rate of return switch to be displayed on the backtest view, the rate of return switch being used to receive an on instruction or a off instruction to turn on or off a rate of return bar chart to be superimposed on the single price line chart.

[0025] Optionally, when the rate of return bar chart is superimposed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a rate of return label on one side corresponding to a rate of return of the rate of return bar chart, and displays a price label on the other side corresponding to the price line.

[0026] Optionally, the rate of return bar chart includes one to several rate of return bars (Bar), one rate of return bar represents a complete transaction, the width of the rate of return bar represents the time length from the entry time to the exit time, and the length of the rate of return bar represents the rate of return of the transaction, the length of the rate of return bar above a rate of return baseline represents a positive rate of return, and the length of the rate of return bar below the rate of return baseline represents a negative rate of return.

[0027] Optionally, the rate of return column belonging to the positive rate of return is marked with a first color, and the rate of return column belonging to the negative rate of return is marked with a different second color.

[0028] The present invention also proposes a computer program product installed in a device having a processor, a memory and a screen. The computer program product is stored in the memory and can be run on the processor. When the processor executes the computer program product, the steps of the data visualization method of the above-mentioned stock backtesting are implemented.

[0029] The detailed features and advantages of the present invention are described in detail in the following embodiments, and the contents are sufficient to enable any technician in the field to understand the technical content of the present invention and implement it accordingly. According to the contents disclosed in this specification, the scope of protection of the claims and the drawings, any technician in the field can easily understand the relevant purposes and advantages of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of a screen image of the prior art 2; Figure 2 is a system function block diagram of a device according to an embodiment of the present invention; Figure 3 A system function block diagram of an application program according to an embodiment of the present invention; Figure 4 A schematic diagram of a screen image of a backtest view according to an embodiment of the present invention (I); Figure 5 Schematic diagram of the screen of the backtest view according to an embodiment of the present invention (II); Figure 6 Schematic diagram of the screen of the backtest view according to the embodiment of the present invention (III); Figure 7 This is a screen diagram of the backtest view according to an embodiment of the present invention (IV); Figure 8 Schematic diagram of the screen of the backtest view according to the embodiment of the present invention (V); Fig. 9 A schematic diagram of a screen image of a backtest view according to an embodiment of the present invention (VI); and Fig.10 FIG. 4 is an operation flow chart of an embodiment of the present invention.

[0031] In the figure: 10: Data visualization device for stock backtesting 12: Processor 14: Memory 16: Screen 18: Communication module 20: Applications 22: Backtesting Module 24: Backtest line chart marking module 26: Server 28: Database 30: Backtesting calculation module 32: Backtest View 34: Buy symbol 36: Sell symbol 38: Single price line chart 40: Reward rate switch 42: Rate of Return Bar Chart 44: Return Baseline 46: The selected entry and exit point 48: Line segment eye-catching marking 50: The selected rate of return bar 52: Backtesting entry and exit data table 54: Trading strategy button. DETAILED DESCRIPTION

[0032] The present invention is applicable to but not limited to personal computers (Personal Computer / Mac Computer), laptop computers (Laptop / Notebook / Portable Computer), smart TVs (Smart TV), smart phones (Smartphones), tablet computers (Tablet PCs), handheld stock quoting devices (Hand-Held Stock Quoting Devices), personal digital assistants (PDAs) and the like. Any device that is equipped with a screen and can execute the application program of the present invention (i.e., stock backtesting software) can apply the device and method of the present invention.

[0033] See also Figure 2 and Figure 3 , a system functional block diagram of a data visualization device 10 for stock backtesting of the present invention and a system functional block diagram of an application 20, wherein only the core modules related to a preferred embodiment of the present invention are listed in the figure, and the other modules are omitted and not depicted. The application 20 is executed on the data visualization device 10 for stock backtesting of the present invention. In one embodiment of the present invention, the data visualization device 10 for stock backtesting of the present invention comprises: one or more processors 12, a memory 14, a screen 16, and a communication module 18. Among them, the memory 14 stores an application 20 (i.e., stock backtesting software, stock simulation trading software or stock trading strategy software); the processor 12 executes a number of program instructions contained in the application 20, and implements the following modules of the client (i.e., the data visualization device 10 for stock backtesting of the present invention) in a hardware and software collaborative operation manner: a backtesting module 22 and a backtesting line chart marking module 24; the screen 16 is used to display the graphical user interface (GUI) of the application 20, and in some embodiments, it also includes: processing touch events (such as the screen 16 of a touch-sensitive device such as a smart phone, a tablet computer, etc.); the communication module 18 is used to establish an Internet network connection, such as: wired broadband, WLAN (Wi-Fi, etc.), a mobile communication network (such as 3G, 4G, 5G, etc.), etc.

[0034] Continue reading Figure 3, a system functional block diagram of an application 20 according to an embodiment of the present invention, wherein the client end includes: a backtest module 22 and a backtest line chart marking module 24, and the server end 26 includes: a database 28 and a backtest calculation module 30. The figure only lists the core modules related to a preferred embodiment of the present invention, and the remaining modules are omitted and not described, such as: a self-selected quotation module, an international financial module, a financial news module, an alert setting module, a trading module, a simulated trading module, an accounting module... and other modules.

[0035] The backtesting module 22 is used to generate a backtesting view 32, and receive the financial product (product code or product code), trading strategy (including entry strategy and exit strategy) and time interval (i.e., the start time and end time of the backtesting) selected by the user to form a backtesting instruction, upload the backtesting instruction to the server 26 (the backtesting operation after uploading will be described later), and download the backtesting data corresponding to the backtesting instruction from the server 26 and trigger the backtesting line chart marking module 24. The backtesting data includes the entry time, entry price, exit time, exit price and rate of return. In some embodiments, before backtesting, the user needs to enter the product code or product code of the financial product. In some embodiments, the user first selects a financial product (for example, clicks on one of the self-selected products from the self-selected quotation view, not depicted) and switches to the backtesting view 32 of the financial product, for example, clicks Figure 4In the "Stock Backtest" tab (or backtest option, not depicted), in the backtest view 32 of the financial instrument, only the trading strategy and time interval need to be selected, and the instrument code or instrument code of the financial instrument does not need to be input separately, because the backtest view 32 has obtained the instrument code or instrument code of the financial instrument. In some embodiments, the trading strategy used for backtesting is a one-to-one combination of a fixed entry strategy and an exit strategy, for example: the screening condition of the entry strategy is the MACD golden cross, and the screening condition of the exit strategy is the MACD death cross, and another example: the screening condition of the entry strategy is the MACD golden cross, and the screening condition of the exit strategy is the combination of the MACD death cross and the KD death cross (that is, the screening conditions of these two technical indicators are met at the same time). In some embodiments, the entry strategy and the exit strategy are a one-to-many combination, for example: the screening condition of the entry strategy is the MACD golden cross, and the screening condition of the exit strategy can be any one of the MACD death cross, the KD death cross, or the SMA death cross. In some embodiments, the entry strategy and the exit strategy are a many-to-one combination, for example: the screening condition of the entry strategy is any one of the screening conditions of MACD golden cross, KD golden cross or SMA golden cross, and the screening condition of the exit strategy is MACD death cross. In some embodiments, the screening conditions of the entry strategy and the exit strategy are a many-to-many combination, for example: the screening condition of the entry strategy is any one of the screening conditions of MACD golden cross, KD golden cross or SMA golden cross, and the screening condition of the exit strategy can be any one of the screening conditions of MACD death cross, KD death cross or SMA death cross. In some embodiments, the time interval is a fixed default value used by the application 20 as the start and end time of the backtest, for example: the past six months (that is, the most recent trading day is the backtest deadline, and the trading day half a year ago is the backtest start time), the past year, the past three years, the past five years... etc. In some embodiments, the time interval is determined by the user. The financial product, trading strategy and time interval selected by the user are combined into a backtesting instruction, which can be uploaded to the server 26. After the server 26 performs calculations according to the backtesting instruction and generates corresponding backtesting data (including entry points, exit points and return rates), it is transmitted back to the backtesting module 22. In some embodiments, the backtesting view 32 displays a plurality of default trading strategy buttons 54 (for example, a first trading strategy button, a second trading strategy button, etc.), each of which includes a default entry strategy and an exit strategy. The default trading strategy button 54 is intended to generate corresponding backtesting data for the corresponding trading strategy (including entry strategy and exit strategy) in advance by the server 26.That is, when the user clicks a default trading strategy button 54 (generating a corresponding backtest instruction, which includes a financial product, a trading strategy and a time interval), the server 26 receives the uploaded backtest instruction and does not need to spend more time to perform calculations, but can quickly provide pre-calculated backtest data (stored in the memory or database 28 of the server 26), so that after the backtest module 22 receives it, the backtest line chart marking module 24 can immediately generate corresponding buy symbols 34 and sell symbols 36 on the single price line chart 38 and mark them at the corresponding positions of the price line. Therefore, after the user clicks the default trading strategy button 54, the corresponding buy symbol 34 and sell symbol 36 can be immediately viewed on the single price line chart 38; on the contrary, if the user clicks a non-default trading strategy (for example: a user-defined trading strategy), after the generated backtest instruction is uploaded to the server 26, it takes some time to calculate to generate the corresponding backtest data. In some embodiments, the backtest data includes one or more complete transactions, and a complete transaction includes an entry point (buy triggered by the entry strategy, including time and price), an exit point (sell triggered by the exit strategy, including time and price) and a rate of return (referring to the rate of return of the complete transaction). In some embodiments, the backtest data may include incomplete transactions, that is, only entry points but no exit points. In other words, since the exit strategy has not been triggered after buying the financial product, the status is "holding" and there will be no rate of return for this transaction. In some embodiments, when the backtest data includes an incomplete transaction, only the entry time but no exit time, before the exit strategy is still not triggered (the status is "holding"), there will be no entry of another transaction. In other words, no new transaction will be made before the previous transaction is exited.

[0036] The backtest line chart marking module 24 downloads the historical quotation data of the financial product from the server 26 and generates a single price line chart 38 based on the historical quotation data and displays it in the backtest view 32 ( Figure 4), a single price line chart 38 includes a price line (Price Line), and a corresponding buy symbol 34 and a sell symbol 36 are generated according to the backtest data and marked at the corresponding position of the price line. The buy symbol 34 corresponds to the entry time, and the sell symbol 36 corresponds to the exit time. In some embodiments, when the backtest module 22 receives the backtest data generated by the server 26, the backtest line chart marking module 24 is triggered to download the historical quotation data of the financial product and generate a single price line chart 38 accordingly, and then the corresponding buy symbol 34 and sell symbol 36 are generated according to the backtest data and marked at the corresponding position of the price line. In some embodiments, the backtest line chart marking module 24 first downloads the historical quotation data of the financial product and generates a single price line chart 38 accordingly, and then when the backtest module 22 receives the backtest data generated by the server 26, the backtest line chart marking module 24 is triggered to generate the corresponding buy symbol 34 and sell symbol 36 according to the backtest data and mark them at the corresponding position of the price line. Each time point on the real time axis of the so-called single price line chart 38 corresponds only to one price of the price line, such as the closing price line and the average price line. The present invention uses a simple single price line chart 38 to mark the buy symbol 34 and the sell symbol 36 of the backtest, which solves the problem that the existing technology superimposes symbols or marks on multiple price line charts (such as: K-line charts, US line charts, etc., where a line at a time point has four price levels, namely, opening price, highest price, lowest price and closing price) so that the line chart looks too messy, complicated and difficult to read. In addition, the present invention uses a single price line to receive another special technical effect that cannot be expected by the previous technology: the backtest result is a backtest result that can be traded, which is a backtest result that is truly worth referring to. For example, the present invention uses a single price line of the closing price line to do backtesting, which can ensure that the price of the day can be traded. Since the backtest is to simulate transactions with past historical data, such as the K-line used in the previous technology 2, the highest price, lowest price, and opening price may not necessarily be traded, and the volume may be very small. Therefore, the K-line chart itself does not have a reference value. It is placed in the backtest result chart, and it is impossible to know which price can be traded. Therefore, it is meaningless. In other words, if the result of the backtest is based on a price that may not be traded, then the backtest will be meaningless. The present invention makes it easier to quickly identify and understand the information of the stock backtest in the technical line chart (backtest view 32) visually. In some embodiments, the backtest line chart marking module 24 also includes: generating a rate of return switching switch 40 (for example: implemented by a switch component or a check box component) and displaying it in the backtest view 32, the rate of return switching switch 40 is used to receive an on instruction or a off instruction to turn on or off the rate of return bar chart 42 and superimpose it on the single price line chart 38 ( Figure 7). When the rate of return bar chart 42 is opened and superimposed on the single price line chart 38, the vertical axis coordinate label of the single price line chart 38 displays the rate of return label on one side (for example, the left outer side) to correspond to the rate of return of each rate of return bar in the rate of return bar chart 42, and displays the price label on the other side (for example, the right outer side) to correspond to the price line. In some embodiments, the rate of return bar chart 42 includes one to several rate of return bars (Bar), each rate of return bar represents a complete transaction, and the width of the rate of return bar represents the time length from the entry time to the exit time. In the same rate of return bar chart 42, the time length is represented by the same ratio. For example, if the width of a rate of return column is 2 units long, the rate of return column represents 2 trading days (it takes 2 trading days from the entry point to the exit point), and the width of another rate of return column is 5 units long, the rate of return column represents 5 trading days (it takes 5 trading days from the entry point to the exit point), and the length of the rate of return column represents the rate of return of the transaction, the length of the rate of return column above the rate of return baseline 44 represents a positive rate of return, and the length of the rate of return column below the rate of return baseline 44 represents a negative rate of return. In some embodiments, the rate of return column with a positive rate of return is marked with a first color (e.g., red), and the rate of return column with a negative rate of return is marked with a different second color (e.g., green).

[0037] In order to generate financial product backtest data corresponding to the backtest instruction and provide it to the client, the present invention includes a database 28 and a backtest calculation module 30 on the server 26. The database 28 stores historical quotation data, financial data, chip data and technical data of several financial products. The historical quotation data of financial products stored in the database 28 includes a variety of different time periods for users to choose to download, such as: 1 minute, 60 minutes, 1 day, 1 week, 1 month... and other time periods. Financial data, such as: stock price net value, gross profit margin, price-earnings ratio, operating profit... and so on. Chip data, such as: the number of buy / sell of the three major legal persons, the utilization rate of financing, the utilization rate of securities lending, chip distribution, turnover rate... and so on. Technical data, such as: 10-day moving average, KD, MACD, RSI... and so on. The so-called screening conditions mentioned above are used to compare these financial data, chip data and technical data, and the values ​​compared in the screening conditions are the so-called parameters. For example: the screening condition of a certain entry strategy is "KD golden cross", and the parameter is "9", which means "KD golden cross on the 9th".

[0038] The backtesting operation module 30 is used to receive the backtesting instruction uploaded by the client. The backtesting instruction includes: financial products, trading strategies (including: entry strategies and exit strategies) and time intervals. After receiving the backtesting instruction, the backtesting operation module 30 compares the financial products and time intervals specified in the database 28 with the backtesting instruction to screen out the entry points that meet the screening conditions of the entry strategy. When a matching entry strategy is screened out, the exit points that meet the screening conditions of the exit strategy are then screened out. An entry point (including entry price and entry time) and an exit point (including exit price and exit time) are collectively referred to as a complete transaction (i.e., one buy and one sell). When there is a complete transaction, the rate of return of the transaction can be calculated (i.e., calculated based on the entry price and exit price). When a complete transaction is completed and is still within the time interval of the backtesting instruction, the next entry point and exit point will continue to be screened until the time interval ends. In some embodiments, the backtest of a financial product within a time interval may have zero to several complete transactions. For example, if there is no entry point that meets the entry strategy within the time interval, the backtest data is "zero"; for another example, if there are five complete transactions within the time interval, the backtest data will have the entry time, entry price, exit time, exit price and return rate of the five transactions. In some embodiments, for the backtest of a financial product within the time interval, there are only entry points but no exit points, and the status is "holding", so there will be no return rate for that time. After the backtest is completed, the backtest calculation module 30 will send the generated backtest data back to the backtest module 22 of the client. In some embodiments, after receiving the uploaded backtest instruction, the server 26 will perform a backtest calculation on the specific financial product with the specified trading strategy, and the financial product backtest data will be provided to the client after the calculation is completed. In some embodiments, the backtesting operation module 30 performs backtesting operation on all financial products in advance with several default trading strategies (including entry strategies and exit strategies), and stores the backtesting data of the financial products after the operation in the memory or database 28 of the server 26. When the backtesting instruction uploaded by the client belongs to one of the "several default trading strategies", the backtesting operation module 30 does not need to perform backtesting operation again, but only needs to read the backtesting data corresponding to the specific financial product from the memory or database 28 to provide it to the client. Compared with the previous technology 2, this embodiment allows users to go back and forth without going back and forth: return to the strategy setting form--> generate backtesting instructions according to the strategy form setting trading strategy--> upload backtesting instructions--> the server performs backtesting operation according to the backtesting instructions--> the client device downloads the backtesting data--> displays it on the client device; in other words, each time the user retests a trading strategy, he must reselect the trading strategy and then go through the above process again.The present invention provides several default trading strategies (i.e., trading strategies that have been backtested in advance on the server side) to greatly increase the convenience of user operations, and increase the efficiency of users comparing backtest data of multiple default trading strategies, for example, directly displaying "average return rate", "average winning rate", or both "average return rate" and "average winning rate" with a button label on the trading strategy button 54. In addition, the present invention further greatly improves the convenience of user operations by turning the above-mentioned trading strategies into buttons, which will be described in detail below.

[0039] See also Figure 4, a schematic diagram of the screen 16 of the backtest view 32 of the embodiment of the present invention (I), which illustrates a graphical user interface of the application 20 (i.e., stock backtest software) displayed on the screen 16 of a preferred embodiment of the present invention. The accompanying drawings of this embodiment are illustrated by taking the screen style of a smart phone as an example, and the present invention is not limited to being used in smart phones. The present invention can also be used in personal computers, notebook computers, tablet computers, handheld stock machines, personal digital assistants, smart TVs, etc. In this embodiment, the smart phone (data visualization device 10 for stock backtesting) displays the backtest view 32 of the present invention. In some embodiments, when the user switches to the backtesting view 32 of a certain financial product by operating the menu (not shown in the figure), the backtesting view 32 displays several default trading strategy buttons 54, for example: a first trading strategy button (the figure is the "highest winning rate combination", which displays an average winning rate of "80.2%)) and a second trading strategy button (the figure is the "highest return combination", which displays an average return rate of "34.6%), and one of the trading strategy buttons 54 is used as the default "selected trading strategy button 54" (that is, the "highest winning rate combination" in the figure, whose entry strategy is "KD golden cross" and the exit strategy is "Boolean channel oversell"). The backtesting view 32 first generates a backtesting instruction for the financial product with the default selected trading strategy (that is, the trading strategy corresponding to the "selected trading strategy button 54" is a combination of the entry strategy and the exit strategy) and the default time interval and uploads it to the server 26, and then downloads the backtesting data corresponding to the backtesting instruction from the server 26. The figure is such an embodiment. In the legend, the "selected trading strategy button 54" is marked with a black rounded thick frame (i.e., the black rounded thick frame is the "selected trading strategy", and the gray rounded thin frame on the right is the "unselected trading strategy"). In some embodiments, a single click on the trading strategy button 54 can update the buy symbol 34 and the sell symbol 36 in the single price line chart 38, and at the same time, update the corresponding backtest entry and exit data table 52. In some embodiments, double-clicking or long pressing the trading strategy button 54 can edit its corresponding trading strategy, for example: modify the screening conditions and parameters of the entry strategy or exit strategy. In some embodiments, the trading strategy buttons 54 can also directly display the "average return rate" (not shown in the icon), directly display the "average win rate" (not shown in the icon), or directly display both the "average return rate" and the "average win rate" (not shown in the icon) on the button label. The default time period in the legend is "Recent Six Months" (that is, the most recent trading day is the backtesting deadline, and the trading day six months ago is the backtesting start time). Click "Recent Six Months" (the text in the legend has an underline, indicating that it is a clickable link) to edit the time period.In some embodiments, when the user switches to the backtest view 32 of a certain financial product by menu operation, the trading strategy and time interval must be set first before the backtest instruction of the financial product can be generated and uploaded to the server 26, and then the backtest data corresponding to the backtest instruction can be downloaded from the server 26. In some embodiments, when the user switches to the backtest view 32 by menu operation, the financial product, trading strategy and time interval must be set first before the backtest instruction of the financial product can be generated and uploaded to the server 26, and then the backtest data corresponding to the backtest instruction can be downloaded from the server 26. The present invention presents the backtest data in a single price line chart 38 (for example, the closing price line and the average price line) of the backtest view 32 in a visual effect, that is, the buy symbol 34 (representing the entry point) and the sell symbol 36 (representing the exit point) of the backtest are marked on the price line of the financial product. Since the single price line chart 38 is relatively simple compared with the K-line chart (for example, the present invention). Figure 4 Compared with previous technology Figure 1 In some embodiments, the buy symbol 34 and the sell symbol 36 are marked with two different colors to distinguish them. Since the legend is presented in grayscale colors, it can only be seen that the buy symbol 34 and the sell symbol 36 are marked with one dark and one light. In actual application, the screen 16 can be marked with red (representing the entry point) and green (representing the exit point). In some embodiments, the buy symbol 34 and the sell symbol 36 are marked with two different icons / symbols (not shown) to distinguish them, for example: an upward triangle (representing the entry point) and a downward triangle (representing the exit point). In some embodiments, the backtest view 32 includes a rate of return switch 40 (the legend is implemented as a check box component). If it is originally in the closed state (as shown in the legend), an open command is generated after clicking; otherwise, if it is originally in the open state, a close command is generated after clicking. In some embodiments, the backtest view 32 includes a data table of each backtest entry and exit point, such as the backtest entry and exit data table 52 below the legend (the legend shows the date, strategy signal and closing price). For example: on 12 / 29, the "Boolean channel sell-off" was used as the exit strategy to trigger a sell order, and its selling price was 490 (the user can view other entry and exit points of the backtest entry and exit data table 52 outside the visible range of the screen 16 by sliding up / down on the backtest view 32). The legend is based on the example of the commodity "TSMC" (stock code 2330) in the Chinese Taipei stock market, and the present invention does not limit the stock trading market to which it is applied. See also Figure 5, the screen 16 of the backtest view 32 of the embodiment of the present invention is shown in Figure 2. The figure shows that when a user clicks on any entry point or exit point of the price line on the single price line chart 38, the selected entry point 46 will be marked with a "special visual effect". For example: it is marked with a special symbol / icon (as shown in the figure), or the buy symbol 34 or sell symbol 36 in the original position is displayed with a magnified effect (not depicted), and at the same time, the corresponding data column in the backtest entry and exit data table 52 below is displayed with a highlighted effect. The figure shows that the selected entry and exit point 46 is marked with an inverted triangle symbol, and the date and price of the exit point are marked. In some embodiments, the user can first select a column of data in the backtest entry and exit data table 52 below, so that the selected entry point / exit point data column is displayed with a highlighted effect, and then the corresponding entry point / exit point in the single price line chart 38 is automatically marked with a "special visual effect" corresponding to the selected entry and exit point 46. In other words, no matter the user clicks on the entry point or exit point of the single price line chart 38 above, or clicks on the backtest entry and exit data table 52 below, in addition to the clicked party (chart or table) being marked with a visual effect, the corresponding other party (the table corresponding to the clicked point on the chart, or the point on the chart corresponding to the clicked table) will also be synchronously fed back with visual effects, so that the chart and the table have two-way interactive visual effect feedback in operation.

[0040] See also Figure 6 , the screen 16 screen diagram (three) of the backtest view 32 of the embodiment of the present invention, the legend illustrates that when the user clicks on any entry point or exit point of the price line on the single price line chart 38, in addition to the entry and exit point 46 being marked with a "special visual effect", this embodiment also uses a line segment eye-catching mark 48 to mark the line segment corresponding to the selected entry and exit point 46 (that is, the line segment between the entry point and the exit point). The line segment eye-catching mark 48 is represented by a line segment effect of different styles (for example: thicker or dotted line) or different colors, so that the user can visually clearly identify the line segment between the entry point and the exit point of this time through the line segment eye-catching mark 48. The line segment eye-catching mark 48 in the legend is marked with a thicker line segment and different colors (the legend is marked in gray, and it can be marked with bright colors when actually displayed on the screen 16). In some embodiments, the line segment eye-catching mark 48 can be red to indicate a positive rate of return and green to indicate a negative rate of return.

[0041] See also Figure 7, a schematic diagram of the screen 16 of the backtest view 32 of the embodiment of the present invention (IV), this example is to explain that when the user checks the rate of return switch 40 (the checkbox component in the example is changed from an unchecked state to a checked state, that is, the turn-on instruction of the rate of return switch 40 is generated), the rate of return bar chart 42 is turned on and superimposed on the single price line chart 38. At this time, the vertical axis coordinate label of the single price line chart 38 displays the rate of return label on one side (the example is the left side) to correspond to the rate of return of the rate of return bar chart 42, and displays the price label on the other side (the example is the right side) to correspond to the price line. The length of each rate of return bar in the rate of return bar chart 42 represents the rate of return of each "complete transaction", the length above the rate of return baseline 44 (the example is a dotted line indicating the position of 0% rate of return) represents the positive rate of return, and the length below the rate of return baseline 44 represents the negative rate of return, and the width of the rate of return bar represents the time length from the entry time to the exit time. In some embodiments, the rate of return columns that belong to positive rates of return are marked with a first color (e.g., red), and the rate of return columns that belong to negative rates of return are marked with a different second color (e.g., green) (as in the legend, the rate of return column with a -5.0% rate of return and the positive rate of return columns with other positive rates of return are indicated by different grayscales). In some embodiments, the rate of return data is also marked at the corresponding position of each rate of return column, for example, the positive rate of return in the legend is marked with the rate of return data above the rate of return column, and the negative rate of return is marked with the rate of return data below the rate of return column. The rate of return bar chart 42 of the present invention allows users to easily identify the length (i.e., the level of the rate of return) and width (i.e., the length of holding time) of the rate of return column through the visual effects of the graphic.

[0042] See also Figure 8, the screen 16 of the backtest view 32 of the embodiment of the present invention is shown in Figure 5. The figure shows that when a user clicks on any of the return rate bars in the upper return rate bar chart 42 of the embodiment, the selected return rate bar 50 is displayed with a highlight effect or a different color (indicated by gray dots in the figure), and the corresponding data column in the backtest entry and exit data table 52 below is also displayed with a highlight effect. Since a return rate bar represents a complete transaction, the highlight effect of the data column corresponds to an entry point and an exit point (i.e., two columns of data in the backtest entry and exit data table 52). In some embodiments, the user can first select two pairs of data columns in the backtest entry and exit data table 52 below, so that the selected entry point and exit point data columns are displayed with a highlight effect, and then the corresponding return rate bar in the upper return rate bar chart 42 is automatically displayed with a highlight effect or a different color. In other words, no matter the user clicks on the rate of return bar of the rate of return bar chart 42 above, or clicks on the paired data columns of the backtest entry and exit data table 52 below, in addition to the clicked party (chart or table) being marked with a visual effect, the corresponding other party (the table corresponding to the clicked point on the graph, or the point on the graph corresponding to the clicked table) will also be synchronously fed back with visual effects, so that the graph and the table have two-way interactive visual effect feedback in operation.

[0043] See also Fig. 9 , a screen diagram (VI) of the backtest view 32 of the embodiment of the present invention, which illustrates that the present embodiment uses a switch component (e.g., a Switch component of iOS) to implement the reward rate switch 40, and if it is originally in the closed state, an open instruction is generated after clicking, and vice versa, if it is originally in the open state, a close instruction is generated after clicking. In some embodiments, the reward rate switch 40 can also be implemented using other components to replace the checkbox component or the switch component, such as a button component.

[0044] See also Fig.10 , an operation flow chart of an embodiment of the present invention, a user uses a mobile device (such as a smart phone / tablet computer / stock machine) to execute the application 20 to view the backtest data of a financial product, please also refer to Figure 2 , Figure 3 , Figure 4 , Figure 7 and Fig. 9 , is contains: Step S101: Execute the application 20 of the present invention on the device 10. The user executes the application 20 (stock backtesting software) of the present invention on a mobile device (such as a smart phone / tablet computer / stock machine). This illustrative example is not intended to limit the application of the present invention to mobile devices. The present invention can also be applied to personal computers, notebook computers, smart TVs, etc. In some embodiments, when executing step S101, the user needs to log in with an account and password for verification. Prior to this, the communication module 18 must first establish an Internet network connection.

[0045] Step S102: Establishing a connection with the server 26. After the application 20 is executed, the communication module 18 establishes an Internet network connection with the server 26.

[0046] Step S103: Generate a backtest view 32 and receive the selection of financial products, trading strategies and time intervals to form a backtest instruction. In some embodiments, the user first selects a financial product (e.g., clicks on one of the self-selected products from the self-selected quote view, not depicted) and switches to the backtest view 32 of the financial product, e.g., clicks Figure 4 In the "Stock Backtest" tab (or backtest option, not shown), you only need to select the trading strategy and time interval in the backtest view 32 of the financial product. You do not need to enter the product code or product code of the financial product because the backtest view 32 has already obtained the product code or product code of the financial product. Figure 4 As shown, since this backtest view 32 belongs to "TSMC", the backtest module 22 has automatically obtained the financial product (i.e., "TSMC"), and the legend generates the backtest instruction of "TSMC" with the default "selected trading strategy button 54" (i.e., "highest winning rate combination", whose entry strategy is "KD golden cross", and exit strategy is "Boolean channel oversell") and the default time interval (assuming that the default value of the application 20 is "nearly half a year"). In some embodiments, the user can click on the "more button" (located at the far right of the entry and exit strategies in the legend) to select other trading strategies or custom trading strategies. In addition, the user can click on the time interval "nearly half a year" (text with an underline) in the legend to change the setting of the time interval. Step S104: upload the backtest instruction to the server 26. After the previous step is executed, the backtest instruction can be uploaded to the server 26. After the server 26 performs calculations according to the backtest instruction and generates corresponding backtest data (including entry points, exit points and return rates), it is transmitted back to the backtest module 22, or downloaded from the server 26 by the backtest module 22. In the previous step, if the user selects one of the default trading strategy buttons 54, that is, the backtest calculation module 30 of the server 26 has previously performed backtest calculations on all financial products with the same trading strategy, and stored the financial product backtest data after the calculation in the memory or database 28 of the server 26, so the backtest calculation module 30 does not need to perform backtest operation again, but only needs to read the backtest data corresponding to the specific financial product from the memory or database 28 to provide it to the client, thereby greatly shortening the backtest calculation time.

[0047] Step S105: Download the backtest data corresponding to the backtest instruction from the server 26. After the server 26 performs calculations according to the backtest instruction and generates the corresponding backtest data, it is transmitted back to the backtest module 22, or downloaded from the server 26 by the backtest module 22. The backtest data includes the entry time and entry price of each entry point, the exit time and exit price of each exit point, and the rate of return of each complete transaction.

[0048] Step S106: Download the historical quotation data of the financial product from the server 26 and generate a single price line chart 38 to be displayed on the backtest view 32. The backtest line chart marking module 24 downloads the historical quotation data of the financial product from the server 26 and generates a single price line chart 38 to be displayed on the backtest view 32. The single price line chart 38 includes a price line. In some embodiments, step S105 and step S106 are executed simultaneously; in some embodiments, step S105 is executed first, and then step S106 is executed; in some embodiments, step S106 is executed first to generate a single price line chart 38 to be displayed on the backtest view 32, and then step S105 is executed.

[0049] Step S107: Generate corresponding buy symbols 34 and sell symbols 36 according to the backtest data and mark them at the corresponding positions of the price line. The backtest line chart marking module 24 generates corresponding buy symbols 34 and sell symbols 36 according to the backtest data and marks them at the corresponding positions of the price line. The buy symbol 34 corresponds to the entry time, and the sell symbol 36 corresponds to the exit time. Figure 4 shown.

[0050] Step S108: Receive an opening instruction to open the rate of return bar chart 42 and display it superimposed on the single price line chart 38. The rate of return switch 40 generated by the backtest line chart marking module 24 is displayed on the backtest view 32, and the switch component is implemented as follows: Fig. 9 As shown, the checkbox component is implemented as Figure 7 If the rate of return switch 40 is originally in the off state and is clicked to generate an on command, the backtest line chart marking module 24 receives the on command and turns on the rate of return bar chart 42 to be superimposed on the single price line chart 38, as shown in FIG. Figure 7 or Fig. 9 shown.

[0051] It is understood that the program instructions executed by the computer can implement each block in the flowchart, the combination of blocks in the flowchart, and the steps in each embodiment. Each of the program instructions is provided to a processor to generate a machine or a resource for hardware and software to work together, whereby when each of the instructions is executed on the processor, a component for implementing the action or technical effect specified by the flowchart block will be generated. Different sets of program instructions can also make at least some of the operation steps displayed in the flowchart block to be performed in parallel, and the technical content expressed by each program instruction of an application may be different according to different embodiments. Furthermore, some of the steps can also be performed on more than one processor, such as the situation where the microprocessor and the peripheral interface processor in the device of the present invention work together. In addition, without departing from the scope or spirit of the present invention, one or more blocks or combinations of blocks in the flowchart can also be performed simultaneously with other blocks or combinations of blocks, or even in a different order than that shown.

[0052] Therefore, the blocks of the flow chart of the present invention support the combination of components for performing the specified actions or technical effects, the combination of steps for performing the specified actions or technical effects, and the program instruction components for performing the specified actions or technical effects. It is also understood that these specified actions or technical effects are implemented by the special-purpose hardware system or the special-purpose hardware and program instructions in coordination to implement each block of the flow chart of the present invention and the block combination of the flow chart.

[0053] In summary, the present invention proposes a data visualization technology for stock backtesting, which solves the problem of the prior art that "it is not easy for users to visually identify the buy and sell symbols marked in the K-line chart". The present invention uses a simple technical line chart (i.e., a single price line chart 38) to display the entry point, exit point and return rate of the stock backtesting, so that users can easily identify the buy and sell symbols, which makes up for the shortcomings of the prior art. Further, because the present invention effectively integrates the single price line chart and the backtesting entry and exit data table, the user can have a two-way interactive visual effect feedback when operating one of the two, and can more intuitively identify and understand the special technical effect of the entry and exit point concept of the backtesting data. Further, the present invention provides a number of default trading strategies, and performs backtesting calculations in advance on the server 26 to provide corresponding backtesting data, which can greatly shorten the time of backtesting calculations. In addition, because the present invention effectively integrates the return rate bar chart, it is easier for users to identify the length (i.e., the high and low return rate) and width (i.e., the length of holding time) of the return rate bar through the visual effect of the graphic. The above multiple special technical effects are all due to the fact that the present invention effectively integrates stock backtesting, single price line chart, rate of return bar chart and backtest entry and exit data table, which cannot be specifically realized by any previous technology.

[0054] Although the technical contents of the present invention have been disclosed as above in the form of preferred embodiments, they are not intended to limit the present invention. Any slight changes and modifications made by any technician in the field without departing from the spirit of the present invention should be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be based on the definition of the protection scope of the attached claims.

Claims

1. A data visualization device for stock backtesting, characterized in that: The device contains: Communication module, used to establish Internet network connection; A backtesting module is used to generate a backtesting view, receive a financial product, a trading strategy and a time interval selection to form a backtesting instruction, upload the backtesting instruction to a server, and download a backtesting data corresponding to the backtesting instruction from the server and trigger a backtesting line chart marking module, wherein the backtesting data includes an entry time, an entry price, an exit time, an exit price and a return rate; The backtest line chart marking module downloads a historical quotation data of the financial product from the server and generates a single price line chart based on the historical quotation data and displays it on the backtest view. The single price line chart includes a price line. A corresponding buy symbol and a sell symbol are generated according to the backtest data and marked at the corresponding position of the price line. The buy symbol corresponds to the entry time, and the sell symbol corresponds to the exit time. A memory for storing an application program, wherein the application program includes the backtest module and the backtest line graph marking module; The screen is used to display the graphical user interface of the application; One or more processors are connected to the memory and the screen and execute the application.

2. The data visualization device for stock backtesting according to claim 1, characterized in that: The single price line chart is a closing price line chart or an average price line chart.

3. The data visualization device for stock backtesting according to claim 1, characterized in that: The backtest view displays several default trading strategy buttons. Each trading strategy button represents a different trading strategy and includes: An entry strategy and an exit strategy, wherein the entry strategy and the exit strategy each include one to several screening conditions and corresponding one to several parameters.

4. The data visualization device for stock backtesting according to claim 1, characterized in that: The backtesting module also includes: Receive a default one-click instruction for each of the trading strategy buttons to generate the corresponding backtest instruction and upload it to the server, then download the backtest data corresponding to the backtest instruction and generate the single price line chart corresponding to one of the trading strategy buttons and mark the corresponding buy symbol and sell symbol.

5. The data visualization device for stock backtesting according to claim 1, characterized in that: The backtest module also includes: generating a backtest entry and exit data table based on the backtest data and displaying it in the backtest view, wherein the backtest entry and exit data table presents the entry time, the entry price, the exit time, the exit price and the trading strategy of the backtest data in a tabular form.

6. The data visualization device for stock backtesting according to claim 5, characterized in that: The single price line chart and the backtest entry and exit data table provide two-way interactive visual feedback when they are operated individually.

7. The data visualization device for stock backtesting according to claim 1, characterized in that: The backtest line chart marking module also includes: A rate of return switch is generated and displayed on the backtest view, and the rate of return switch is used to receive an opening instruction or a closing instruction to open or close a rate of return bar chart superimposed on the single price line chart.

8. The data visualization device for stock backtesting according to claim 7, characterized in that: When the rate of return bar chart is superimposed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a rate of return label on one side corresponding to a rate of return of the rate of return bar chart, and displays a price label on the other side corresponding to the price line.

9. The data visualization device for stock backtesting according to claim 7, characterized in that: The rate of return bar chart includes one to several rate of return bars, one rate of return bar represents a complete transaction, the width of the rate of return bar represents the time length from the entry time to the exit time, and the length of the rate of return bar represents the rate of return of the current transaction, the length of the rate of return bar above a rate of return baseline represents a positive rate of return, and the length of the rate of return bar below the rate of return baseline represents a negative rate of return.

10. The data visualization device for stock backtesting according to claim 7, characterized in that: The rate of return column belonging to the positive rate of return is marked with a first color, and the rate of return column belonging to the negative rate of return is marked with a second, different color.

11. A data visualization method for stock backtesting, applied to a device, the device comprising a communication module, a memory and a screen, characterized in that: The method includes: Establish a connection with the server; Generate a backtest view and receive a financial instrument, a trading strategy and a time interval selection to combine into a backtest instruction; Upload the backtest instruction to the server; Downloading a backtesting data corresponding to the backtesting instruction from the server, the backtesting data comprising an entry time, an entry price, an exit time, an exit price and a return rate; Downloading a historical quotation data of the financial product from the server and generating a single price line chart based on the data to be displayed on the backtest view, wherein the single price line chart includes a price line; and, A corresponding buy symbol and a sell symbol are generated based on the backtest data and marked at the corresponding position of the price line. The buy symbol corresponds to the entry time, and the sell symbol corresponds to the exit time.

12. The data visualization method for stock backtesting according to claim 11, characterized in that: The single price line chart is a closing price line chart or an average price line chart.

13. The data visualization method for stock backtesting according to claim 11, characterized in that: The backtest view displays several default trading strategy buttons. Each trading strategy button represents a different trading strategy and includes: An entry strategy and an exit strategy, wherein the entry strategy and the exit strategy each include one to several screening conditions and corresponding one to several parameters.

14. The data visualization method for stock backtesting according to claim 11, characterized in that: Also includes: Receive a default one-click instruction for each of the trading strategy buttons to generate the corresponding backtest instruction and upload it to the server, then download the backtest data corresponding to the backtest instruction and generate the single price line chart corresponding to one of the trading strategy buttons and mark the corresponding buy symbol and sell symbol.

15. The data visualization method for stock backtesting according to claim 11, characterized in that: Also includes: A backtest entry and exit data table is generated based on the backtest data and displayed in the backtest view. The backtest entry and exit data table presents the entry time, the entry price, the exit time, the exit price and the trading strategy of the backtest data in a tabular form.

16. The data visualization method for stock backtesting according to claim 15, characterized in that: The single price line chart and the backtest entry and exit data table provide two-way interactive visual feedback when being operated.

17. The data visualization method for stock backtesting according to claim 11, characterized in that: Also includes: A rate of return switch is generated and displayed on the backtest view, and the rate of return switch is used to receive an opening instruction or a closing instruction to open or close a rate of return bar chart superimposed on the single price line chart.

18. The data visualization method for stock backtesting according to claim 17, characterized in that: When the rate of return bar chart is superimposed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a rate of return label on one side corresponding to a rate of return of the rate of return bar chart, and displays a price label on the other side corresponding to the price line.

19. The data visualization method for stock backtesting according to claim 17, characterized in that: The rate of return bar chart includes one to several rate of return bars, one rate of return bar represents a complete transaction, the width of the rate of return bar represents the time length from the entry time to the exit time, and the length of the rate of return bar represents the rate of return of the current transaction, the length of the rate of return bar above a rate of return baseline represents a positive rate of return, and the length of the rate of return bar below the rate of return baseline represents a negative rate of return.

20. The data visualization method for stock backtesting according to claim 17, characterized in that: The rate of return column belonging to the positive rate of return is marked with a first color, and the rate of return column belonging to the negative rate of return is marked with a second, different color.

21. A computer program product installed in a device having a processor, a memory and a screen, wherein the computer program product is stored in the memory and can be run on the processor, characterized in that: When the processor executes the computer program product, the steps of the data visualization method for stock backtesting according to claims 11 to 20 are implemented.