[go: up one dir, main page]

TWI849881B - Device and method for data visualization of stock backtesting - Google Patents

Device and method for data visualization of stock backtesting Download PDF

Info

Publication number
TWI849881B
TWI849881B TW112116347A TW112116347A TWI849881B TW I849881 B TWI849881 B TW I849881B TW 112116347 A TW112116347 A TW 112116347A TW 112116347 A TW112116347 A TW 112116347A TW I849881 B TWI849881 B TW I849881B
Authority
TW
Taiwan
Prior art keywords
backtesting
return rate
stock
data
exit
Prior art date
Application number
TW112116347A
Other languages
Chinese (zh)
Other versions
TW202445486A (en
Inventor
邱宏哲
Original Assignee
三竹資訊股份有限公司
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 三竹資訊股份有限公司 filed Critical 三竹資訊股份有限公司
Priority to TW112116347A priority Critical patent/TWI849881B/en
Priority to CN202311344275.2A priority patent/CN118898516A/en
Application granted granted Critical
Publication of TWI849881B publication Critical patent/TWI849881B/en
Publication of TW202445486A publication Critical patent/TW202445486A/en

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
    • G06T11/23
    • G06T11/26

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

This disclosure is related to a device and method for data visualization of stock backtesting. User can choose a stock, a trading strategy and a time period to form a stock backtesting request, and then upload the stock backtesting request to a server. Download a stock backtesting result corresponding to the stock backtesting request from the server. Download a history data of the stock and generate a single-price line chart for a backtesting view, and the stock backtesting result is marked at corresponding price-position in the single-price line chart.

Description

股票回測之資料視覺化裝置與方法 Data visualization device and method for stock backtesting

本發明是關於一種股票回測(Stock Backtesting)的技術,特別是關於一種股票回測之資料視覺化裝置、方法與電腦程式產品。 The present invention relates to a stock backtesting technology, and in particular to a data visualization device, method and computer program product for stock backtesting.

股票回溯測試簡稱股票回測,是一種評估股票交易策略表現的方法,通過將股票交易策略應用於一系列真實的股票歷史資料來分析其潛在表現的方法。測試結果能夠幫助投資者選擇更好的股票交易策略以獲得最佳的投資報酬。 Stock backtesting, also known as stock backtesting, is a method of evaluating the performance of stock trading strategies by applying the stock trading strategies 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.

具體來說,股票回測通常包括以下步驟:1.選擇一種股票交易策略:例如,選擇某個指標作為股票買賣的依據,或者通過技術分析或基本面分析來選擇股票;2.確定回測時間區間:確定回測開始時間和結束時間,並確定回測期間的買賣頻率;3.模擬股票買賣行為:根據選定的股票交易策略,在回測時間區間內進行模擬股票買賣行為;4.計算股票交易策略表現:根據回測結果計算股票交易策略的收益率與風險;5.分析股票交易策略表現:通過對策略表現指標的分析,評估股票交易策略的表現,並進行調整或優化。 Specifically, stock backtesting usually includes the following steps: 1. Select a stock trading strategy: for example, select a certain indicator as the basis for stock trading, or select stocks through technical analysis or fundamental analysis; 2. Determine the backtest time period: determine the start and end time of the backtest, and determine the buying and selling frequency during the backtest period; 3. Simulate stock trading behavior: simulate stock trading behavior within the backtest time period according to the selected stock trading strategy; 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 the analysis of the strategy performance indicators, and make adjustments or optimizations.

先前技術一,中華民國發明專利公告號I648694揭露一種以歷史數 據資料預先回測作為搜尋最佳選股條件的方法,該方法包含:(A)該處理器依據多種選股條件及其組合分別對多種股票及金融商品進行歷史回測,且將回測後的歷史回測結果預先儲存於該資料庫;及(B)該處理器接收該使用終端所輸入的一相關於該等選股條件的指標數、進場持有時間及一回測時間區間,並依據該回測時間區間從該資料庫計算出符合該指標數的最佳勝率之股票或金融商品,且將符合該指標數的該等股票或金融商品及其選股條件提供給該使用終端。先前技術一解決了“現有金融商品分析裝置需要投資人嘗試各種不同的指標及組合以尋找出高勝率的股票或投資商品,如此將花費不少時間”的問題。先前技術一的技術手段係“提供一種以歷史數據資料預先回測作為搜尋最佳選股條件的方法”,而其技術效果係“能直接且快速地地挑選出最佳勝率(最高或最低)的股票及投資商品”。然而,先前技術一仍無法滿足使用者(即,投資者)需求之處在於:無法在技術線圖中以視覺化的方式呈現回測資訊。 Prior art 1, Republic of China 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 plurality of stocks and financial products according to a plurality of stock selection conditions and combinations thereof, and pre-stores the backtesting historical backtesting results in the database; and (B) the processor receives an index number, a holding time and a backtesting time interval related to the stock selection conditions input by the user terminal, and calculates the stocks or financial products with the best winning rate that meet the index number according to the backtesting time interval from the database, and provides 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 indicators and combinations to find stocks or investment products with high winning rates, which will take a lot of time." The technical means of prior art 1 is to "provide a method of 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, prior art 1 still cannot meet the needs of users (i.e., investors) in that it cannot present the backtest information in a visual way in the technical line chart.

另有一種先前技術二,係於K線圖中以買進符號(如:向上三角形)與賣出符號(如:向下三角形)分別標記出股票回測的進場點與出場點,如第1圖所示。先前技術二解決了先前技術一“缺乏視覺化的方式呈現回測資料”的問題,先前技術二的技術手段係“將股票回測的進場時間與出場時間轉換成買進符號與賣出符號並標記於K線圖中相對應的價位”,而其技術效果係“於K線圖中顯示代表股票回測進場點的買進符號,與代表出場點的賣出符號”。雖然,先前技術二已提供使用者資料視覺化的股票回測K線圖,但是,每一根K線棒係由開盤價、收盤價、最高價與最低價這四個價位所繪製而成,由多根K線棒組合成的K線圖在視覺呈現上較為複雜,將買進符號與賣出符號重疊在K線棒之上,將使得視覺上的複雜度更高,因此,此增加的買進符號與賣出符號不易讓使用者以視覺 辨識(即,不易讀)。換言之,先前技術二原先想達到的技術目的(視覺化的方式呈現回測資料),並無法達到預期的技術效果(讓使用者可容易地看到回測資料,因畫面資訊太多、太複雜而不易辨識)。而且,先前技術二所提供的資料視覺化的股票回測K線圖,也不容易讓使用者以視覺快速辨識出同一趟的回測(即,成對的買進符號與賣出符號)。 There is another prior art 2, which uses buy symbols (such as upward triangles) and sell symbols (such as downward triangles) to mark the entry and exit points of the stock backtest in the K-line chart, as shown in Figure 1. 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 "converting the entry time and exit time of the stock backtest into buy symbols and sell symbols and marking the corresponding prices in the K-line chart", and its technical effect is "displaying the buy symbol representing the stock backtest entry point and the sell symbol representing the exit point in the K-line chart". Although the previous technology 2 has provided users with a stock backtest K-line chart with data visualization, each K-line bar is drawn from four price levels: opening price, closing price, highest price, and lowest price. The K-line chart composed of multiple K-line bars is more complex in visual presentation. Overlaying the buy and sell symbols on the K-line bars will make the visual complexity higher. Therefore, the added buy and sell symbols 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 (visually presenting backtest data) cannot achieve the expected technical effect (allowing users to easily see the backtest data, but the screen information is too much and too complex to be easily identified). Moreover, the data visualization stock backtest candlestick chart provided by the previous second technique does not allow users to quickly identify the same backtest (i.e., paired buy and sell symbols) visually.

使用者需要能提供圖像式輔助並以簡潔的技術線圖顯示股票回測資訊的技術,以便在視覺上更容易快速地辨識、理解股票回測的資訊,而先前技術一與先前技術二並無法滿足此使用者需求。故,實有必要改善習見方法,以硬體與軟體協同運作的資源提出一種股票回測之資料視覺化技術,於股票回測軟體中以簡潔的技術線圖輔以顯示股票回測之進場點、出場點以及報酬率,以便彌補先前技術不足之處。 Users need a technology that can provide graphical assistance and display stock backtest information with concise technical line charts, so that they can visually more easily and quickly identify and understand stock backtest information. The previous technology 1 and the previous technology 2 cannot meet this user demand. Therefore, it is necessary to improve the learning method and propose a data visualization technology for stock backtesting with the resources of hardware and software working together. In the stock backtesting software, a concise technical line chart is used 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.

有鑑於此,本發明提出一種股票回測之資料視覺化裝置、方法及電腦程式產品,於股票回測應用程式中的單一價位線圖顯示代表股票回測之進場點的買進符號以及代表股票回測之出場點的賣出符號,以及,在同一個視圖中以疊圖方式顯示各趟回測的報酬率,利用單一價位線圖的圖像式標註可直覺地快速辨識回測資訊,以利瞭解所回測的交易策略是否合適。 In view of this, the present invention proposes a data visualization device, method and computer program product for stock backtesting, which displays a buy symbol representing the entry point of the stock backtesting and a sell symbol representing the exit point of the stock backtesting in a single price line chart in the stock backtesting application, and displays the return rate of each backtesting in an overlay in the same view. The graphical annotation of the single price line chart can intuitively and quickly identify the backtesting information, so as to understand whether the backtested trading strategy is suitable.

本發明提出一種股票回測之資料視覺化裝置,該裝置包含:一通訊模組,用以建立Internet網路連線;一回測模組,用以產生一回測視圖以接收一金融商品、一交易策略與一時間區間之選擇以組合成為一回測指令,上傳該回測指令至一伺服器,以及,自該伺服器下載對應該回測指令的一回測資料並觸發一 回測線圖標記模組,該回測資料包含一進場時間、一進場價位、一出場時間、一出場價位與一報酬率;該回測線圖標記模組,自該伺服器下載該金融商品之一歷史報價資料並據以產生一單一價位線圖顯示於該回測視圖,該單一價位線圖包含一價位折線,依據該回測資料產生對應的一買進符號與一賣出符號並標記於該價位折線上相對應之位置,該買進符號係對應該進場時間,該賣出符號係對應該出場時間;一記憶體,用以儲存一應用程式,該應用程式包含該回測模組與該回測線圖標記模組;該螢幕,用以顯示該應用程式之圖形化使用者介面;一或多個處理器,連接該記憶體與該螢幕並執行該應用程式。 The present invention proposes a data visualization device for stock backtesting, which includes: 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 range 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, the backtesting data includes 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 financial product from the server A single price line chart is generated based on the 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 corresponding positions on 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 program, and the application program includes the backtest module and the backtest line chart marking module; the screen is used to display the graphical user interface of the application program; one or more processors are connected to the memory and the screen and execute the application program.

本發明更進一步,在一些實施例中,該單一價位線圖係一收盤價線圖或一均價線圖。 The present invention further goes a step further, in some embodiments, the single price line chart is a closing price line chart or an average price line chart.

本發明更進一步,在一些實施例中,該回測視圖顯示預設的複數個交易策略按鍵,每一個該些交易策略按鍵皆代表一個不同的該交易策略且包含一進場策略與一出場策略,而該進場策略與該出場策略各包含一至複數個篩選條件及相對應的一至複數個參數。 The present invention further states that in some embodiments, the backtest view displays a plurality of preset trading strategy buttons, each of which represents a different trading strategy and includes an entry strategy and an exit strategy, and each of the entry strategy and the exit strategy includes one or more filter conditions and corresponding one or more parameters.

本發明更進一步,在一些實施例中,該回測模組更包含:接收預設的該些交易策略按鍵之一點擊指令以產生對應的該回測指令並上傳至該伺服器,然後下載對應該回測指令的該回測資料並據以產生對應該些交易策略按鍵之一的該單一價位線圖以及標記對應的該買進符號與該賣出符號。 The present invention further, in some embodiments, the backtest module further includes: receiving a click instruction of one of the preset trading strategy buttons to generate the corresponding backtest instruction and upload it to the server, then downloading the backtest data corresponding to the backtest 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.

本發明更進一步,在一些實施例中,該回測模組更包含:依據該回測資料產生一回測進出資料表並顯示於該回測視圖,該回測進出資料表係以表格形式呈現該回測資料的該進場時間、該進場價位、該出場時間、該出場價位與該交易策略。 The present invention further includes, in some embodiments, the backtesting module further comprising: generating a backtesting entry and exit data table based on the backtesting data and displaying it on 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.

本發明更進一步,在一些實施例中,該單一價位線圖與該回測進出資料表於被操作之時係有雙向互動的視覺效果回饋。 The present invention further provides, in some embodiments, that the single price line chart and the backtest entry and exit data table provide two-way interactive visual feedback when being operated.

本發明更進一步,在一些實施例中,該回測線圖標記模組更包含:產生一報酬率切換開關顯示於該回測視圖,該報酬率切換開關用以接收一開啟指令或一關閉指令以開啟或關閉一報酬率柱狀圖疊加顯示於該單一價位線圖。 The present invention further, in some embodiments, the backtest line chart marking module further includes: generating a return rate switch to be displayed on the backtest view, the return rate switch is used to receive an opening instruction or a closing instruction to open or close a return rate bar chart superimposed on the single price line chart.

本發明更進一步,在一些實施例中,當該報酬率柱狀圖疊加顯示於該單一價位線圖時,該單一價位線圖之縱軸座標標籤在一側顯示一報酬率標籤以對應該報酬率柱狀圖之一報酬率,在另一側顯示一價位標籤以對應該價位折線。 The present invention further goes a step further. In some embodiments, when the return rate bar chart is superimposed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a return rate label on one side corresponding to a return rate of the return rate bar chart, and displays a price label on the other side corresponding to the price line.

本發明更進一步,在一些實施例中,該報酬率柱狀圖包含一至複數個報酬率柱狀(Bar),一個該報酬率柱狀代表一次完整的交易,該報酬率柱狀的寬度係代表該進場時間至該出場時間的一時間長度,而該報酬率柱狀的長度係代表當次交易的該報酬率,該報酬率柱狀在一報酬率基準線之上的長度代表一正報酬率,該報酬率柱狀在該報酬率基準線之下的長度代表一負報酬率。 The present invention further provides that in some embodiments, the return bar graph includes one or more return bars (Bar), one return bar represents a complete transaction, the width of the return bar represents a time span from the entry time to the exit time, and the length of the return bar represents the return rate of the transaction, the length of the return bar above a return rate baseline represents a positive return rate, and the length of the return bar below the return rate baseline represents a negative return rate.

本發明更進一步,在一些實施例中,屬於該正報酬率的該報酬率柱狀係以一第一顏色予以標記,以及,屬於該負報酬率的該報酬率柱狀係以不同的一第二顏色予以標記。 The present invention further provides that in some embodiments, the return rate column belonging to the positive return rate is marked with a first color, and the return rate column belonging to the negative return rate is marked with a different second color.

本發明又提出一種股票回測之資料視覺化方法,應用於一裝置,該裝置包含一通訊模組、一記憶體及一螢幕,該方法包含:與一伺服器建立連線;產生一回測視圖以接收一金融商品、一交易策略與一時間區間之選擇以組合成為一回測指令;上傳該回測指令至該伺服器;自該伺服器下載對應該回測指令的一回測資料,該回測資料包含一進場時間、一進場價位、一出場時間、一出場價位 與一報酬率;自該伺服器下載該金融商品之一歷史報價資料並據以產生一單一價位線圖顯示於該回測視圖,該單一價位線圖包含一價位折線;以及,依據該回測資料產生對應的一買進符號與一賣出符號並標記於該價位折線上相對應之位置,該買進符號係對應該進場時間,該賣出符號係對應該出場時間。 The present invention also proposes a data visualization method for stock backtesting, which is applied to a device, the device comprising a communication module, a memory and a screen, the method comprising: establishing a connection with a server; generating a backtesting view to receive a financial product, a trading strategy and a time range selection to combine into a backtesting instruction; uploading the backtesting 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 rate of return; downloading a historical quotation data of the financial product from the server and generating a single price line chart based on it and displaying it on the backtest view, the single price line chart includes a price line; and, generating a corresponding buy symbol and a sell symbol based on the backtest data and marking them at corresponding positions on the price line, the buy symbol corresponds to the entry time, and the sell symbol corresponds to the exit time.

本發明更進一步,在一些實施例中,該單一價位線圖係一收盤價線圖或一均價線圖。 The present invention further goes a step further, in some embodiments, the single price line chart is a closing price line chart or an average price line chart.

本發明更進一步,在一些實施例中,該回測視圖顯示預設的複數個交易策略按鍵,每一個該些交易策略按鍵皆代表一個不同的該交易策略且包含一進場策略與一出場策略,而該進場策略與該出場策略各包含一至複數個篩選條件及相對應的一至複數個參數。 The present invention further states that in some embodiments, the backtest view displays a plurality of preset trading strategy buttons, each of which represents a different trading strategy and includes an entry strategy and an exit strategy, and each of the entry strategy and the exit strategy includes one or more filter conditions and corresponding one or more parameters.

本發明更進一步,在一些實施例中,接收預設的該些交易策略按鍵之一點擊指令以產生對應的該回測指令並上傳至該伺服器,然後下載對應該回測指令的該回測資料並據以產生對應該些交易策略按鍵之一的該單一價位線圖以及標記對應的該買進符號與該賣出符號。 The present invention further, in some embodiments, receives a click instruction of one of the preset trading strategy buttons to generate the corresponding backtest instruction and upload it to the server, then downloads the backtest data corresponding to the backtest instruction and generates the single price line chart corresponding to one of the trading strategy buttons and marks the corresponding buy symbol and sell symbol accordingly.

本發明更進一步,在一些實施例中,該方法更包含:依據該回測資料產生一回測進出資料表並顯示於該回測視圖,該回測進出資料表係以表格形式呈現該回測資料的該進場時間、該進場價位、該出場時間、該出場價位與該交易策略。 The present invention further includes, in some embodiments, generating a backtest entry and exit data table based on the backtest data and displaying it on 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.

本發明更進一步,在一些實施例中,該單一價位線圖與該回測進出資料表於被操作之時係有雙向互動的視覺效果回饋。 The present invention further provides, in some embodiments, that the single price line chart and the backtest entry and exit data table provide two-way interactive visual feedback when being operated.

本發明更進一步,在一些實施例中,該方法更包含:產生一報酬率切換開關顯示於該回測視圖,該報酬率切換開關用以接收一開啟指令或一關閉 指令以開啟或關閉一報酬率柱狀圖疊加顯示於該單一價位線圖。 The present invention further includes, in some embodiments, generating a return rate switch to be displayed on the backtest view, the return rate switch is used to receive an on command or a off command to turn on or off a return rate bar chart to be displayed superimposed on the single price line chart.

本發明更進一步,在一些實施例中,當該報酬率柱狀圖疊加顯示於該單一價位線圖時,該單一價位線圖之縱軸座標標籤在一側顯示一報酬率標籤以對應該報酬率柱狀圖之一報酬率,在另一側顯示一價位標籤以對應該價位折線。 The present invention further goes a step further. In some embodiments, when the return rate bar chart is superimposed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a return rate label on one side corresponding to a return rate of the return rate bar chart, and displays a price label on the other side corresponding to the price line.

本發明更進一步,在一些實施例中,該報酬率柱狀圖包含一至複數個報酬率柱狀(Bar),一個該報酬率柱狀代表一次完整的交易,該報酬率柱狀的寬度係代表該進場時間至該出場時間的一時間長度,而該報酬率柱狀的長度係代表當次交易的該報酬率,該報酬率柱狀在一報酬率基準線之上的長度代表一正報酬率,該報酬率柱狀在該報酬率基準線之下的長度代表一負報酬率。 The present invention further provides that in some embodiments, the return bar graph includes one or more return bars (Bar), one return bar represents a complete transaction, the width of the return bar represents a time span from the entry time to the exit time, and the length of the return bar represents the return rate of the transaction, the length of the return bar above a return rate baseline represents a positive return rate, and the length of the return bar below the return rate baseline represents a negative return rate.

本發明更進一步,在一些實施例中,屬於該正報酬率的該報酬率柱狀係以一第一顏色予以標記,以及,屬於該負報酬率的該報酬率柱狀係以不同的一第二顏色予以標記。 The present invention further provides that in some embodiments, the return rate column belonging to the positive return rate is marked with a first color, and the return rate column belonging to the negative return rate is marked with a different second color.

本發明還提出一種電腦程式產品,安裝於具有一處理器、一記憶體及一螢幕之一裝置,該電腦程式產品儲存在該記憶體並可在該處理器上運行,該處理器執行該電腦程式產品時實現上述股票回測之資料視覺化方法的步驟。 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 stock backtesting are implemented.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者瞭解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。 The detailed features and advantages of the present invention are described in detail in the following implementation method. The content is sufficient for anyone familiar with the relevant technology to understand the technical content of the present invention and implement it accordingly. According to the content disclosed in this specification, the scope of the patent application and the drawings, anyone familiar with the relevant technology can easily understand the relevant purposes and advantages of the present invention.

10:股票回測之資料視覺化裝置 10: Data visualization device for stock backtesting

12:處理器 12: Processor

14:記憶體 14: Memory

16:螢幕 16: Screen

18:通訊模組 18: Communication module

20:應用程式 20: Applications

22:回測模組 22: Backtesting module

24:回測線圖標記模組 24: Backtest line chart marking module

26:伺服器 26: Server

28:資料庫 28: Database

30:回測運算模組 30: Backtesting calculation module

32:回測視圖 32: Backtesting view

34:買進符號 34: Buy symbol

36:賣出符號 36: Sell symbol

38:單一價位線圖 38: Single price line chart

40:報酬率切換開關 40: Return rate switch

42:報酬率柱狀圖 42: Return rate bar chart

44:報酬率基準線 44: Return rate benchmark

46:被點選的進出場點 46: The selected entry and exit points

48:線段醒目標記 48: Line segment eye-catching mark

50:被點選的報酬率柱狀 50: Clicked return rate bar

52:回測進出資料表 52: Backtesting entry and exit data table

54:交易策略按鍵 54: Trading strategy button

第1圖為先前技術二之螢幕畫面示意圖;第2圖為本發明實施例裝置之系統功能方塊圖;第3圖為本發明一實施例應用程式之系統功能方塊圖;第4圖為本發明實施例回測視圖之螢幕畫面示意圖(一);第5圖為本發明實施例回測視圖之螢幕畫面示意圖(二);第6圖為本發明實施例回測視圖之螢幕畫面示意圖(三);第7圖為本發明實施例回測視圖之螢幕畫面示意圖(四);第8圖為本發明實施例回測視圖之螢幕畫面示意圖(五);第9圖為本發明實施例回測視圖之螢幕畫面示意圖(六);及,第10圖為本發明一實施例之操作流程圖。 FIG. 1 is a screen diagram of the second prior art; FIG. 2 is a system function block diagram of the device of the present invention; FIG. 3 is a system function block diagram of the application program of the first embodiment of the present invention; FIG. 4 is a screen diagram of the backtest view of the present invention (I); FIG. 5 is a screen diagram of the backtest view of the present invention (II); FIG. 6 is a screen diagram of the present invention (II); Figure 7 is a schematic diagram of the screen of the backtest view of the embodiment of the present invention (four); Figure 8 is a schematic diagram of the screen of the backtest view of the embodiment of the present invention (five); Figure 9 is a schematic diagram of the screen of the backtest view of the embodiment of the present invention (six); and Figure 10 is an operation flow chart of an embodiment of the present invention.

本發明係使用但不限於個人電腦(Personal Computer/Mac Computer)、筆記型電腦(Laptop/Notebook/Portable Computer)、智慧型電視(Smart TV)、智慧手機(Smartphone)、平板電腦(Tablet PC)、手持式股票機(Hand-Held Stock Quoting Device)、個人數位助理(PDA)…等等,凡是配置有螢幕並可執行本發明應用程式(即,股票回測軟體)皆可以應用本發明裝置與方法。 The present invention is applicable to but not limited to personal computers (Personal Computer/Mac Computer), laptops (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), etc. 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.

參閱第2圖與第3圖,本發明股票回測之資料視覺化裝置10之系統功能方塊圖與應用程式20之系統功能方塊圖,圖例僅列出與本發明一較佳實施例相關之核心模組,其餘模組省略未描繪。應用程式20係執行於本發明股票回測之 資料視覺化裝置10上。在本發明的一實施例中,本發明股票回測之資料視覺化裝置10包含:一或多個處理器12、記憶體14、螢幕16以及通訊模組18。其中,記憶體14儲存有應用程式20(即,股票回測軟體、股票模擬交易軟體或股票交易策略軟體);處理器12執行應用程式20所包含的複數個程式指令,並以硬體與軟體協同運作的方式實施客戶端(即,本發明股票回測之資料視覺化裝置10)的以下模組:回測模組22與回測線圖標記模組24;螢幕16用以顯示應用程式20的圖形化使用者介面(GUI),在一些實施例中更包含:處理觸控事件(如智慧型手機、平板電腦…等觸控式裝置之螢幕16);通訊模組18用以建立Internet網路連線,如:有線寬頻、WLAN(Wi-Fi等)、行動通訊網路(如3G、4G、5G…)等等。 Referring to FIG. 2 and FIG. 3, the system function block diagram of the data visualization device 10 for stock backtesting of the present invention and the system function block diagram of the application program 20, the legend only lists the core modules related to a preferred embodiment of the present invention, and the remaining modules are omitted and not described. The application program 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 includes: one or more processors 12, a memory 14, a screen 16 and a communication module 18. 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 plurality 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 collaborative operation of hardware and software: 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. In some embodiments, it further includes: processing touch events (such as the screen 16 of a touch-sensitive device such as a smart phone, tablet computer, etc.); the communication module 18 is used to establish an Internet network connection, such as: wired broadband, WLAN (Wi-Fi, etc.), mobile communication network (such as 3G, 4G, 5G, etc.), etc.

繼續參閱第3圖,本發明實施例應用程式20之系統功能方塊圖,其客戶端包含有:回測模組22與回測線圖標記模組24,而伺服器26端包含有:資料庫28與回測運算模組30,圖例僅列出與本發明一較佳實施例相關之核心模組,其餘模組省略未描繪,例如:自選報價模組、國際金融模組、財經新聞模組、警示設定模組、交易模組、模擬交易模組、帳務模組…等模組。 Continuing to refer to Figure 3, the system function block diagram of the application program 20 of the embodiment of the present invention, the client side includes: backtest module 22 and backtest line chart marking module 24, and the server side 26 includes: database 28 and 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: self-selected quotation module, international financial module, financial news module, warning setting module, transaction module, simulated transaction module, accounting module... and other modules.

回測模組22,用以產生回測視圖32,並接收使用者所選擇的金融商品(商品代號或商品代碼)、交易策略(包含進場策略與出場策略)與時間區間(即,回測的開始時間與結束時間)以組合成為回測指令,上傳回測指令至伺服器26(上傳之後的回測運做容後說明),以及,自伺服器26下載對應回測指令的回測資料並觸發回測線圖標記模組24,回測資料包含進場時間、進場價位、出場時間、出場價位與報酬率。在一些實施例中,在回測前,使用者需要輸入金融商品的商品代號或商品代碼。在一些實施例中,使用者先選擇金融商品(例如:從自選報價視圖點選其中一個自選商品,未描繪)並切換至該金融商品之回測視 圖32,例如:點選第4圖中的“股票回測”頁籤(或回測選項,未描繪),於該金融商品之回測視圖32僅需再選擇交易策略與時間區間,不需再另行輸入金融商品的商品代號或商品代碼,因為回測視圖32已取得該金商品之商品代號或商品代碼。在一些實施例中,用於回測的交易策略係以固定的進場策略與出場策略為一對一的組合,例如:進場策略的篩選條件為MACD黃金交叉,而出場策略的篩選條件為MACD死亡交叉,再例如:進場策略的篩選條件為MACD黃金交叉,而出場策略的篩選條件為MACD死亡交叉與KD死亡交叉兩者之集合(即,同時符合這兩項技術指標之篩選條件)。在一些實施例中,進場策略與出場策略為一對多的組合,例如:進場策略的篩選條件為MACD黃金交叉,而出場策略的篩選條件可以是MACD死亡交叉、KD死亡交叉或SMA死亡交叉中的任一個。在一些實施例中,進場策略與出場策略為多對一的組合,例如:進場策略的篩選條件為MACD黃金交叉、KD黃金交叉或SMA黃金交叉中的任一個的篩選條件,而出場策略的篩選條件為MACD死亡交叉。在一些實施例中,進場策略與出場策略的篩選條件為多對多的組合,例如:進場策略的篩選條件為MACD黃金交叉、KD黃金交叉或SMA黃金交叉中的任一個的篩選條件,而出場策略的篩選條件可以是MACD死亡交叉、KD死亡交叉或SMA死亡交叉中的任一個的篩選條件。在一些實施例中,時間區間係由應用程式20以固定的預設值做為回測的起、迄時間,例如:近半年(即,最近一個交易日為回測截止時間,往前推半年的交易日為回測開始時間)、近一年、近三年、近五年…等。在一些實施例中,時間區間係由使用者自行決定。使用者所選擇的金融商品、交易策略與時間區間組合成為一個回測指令,即可上傳至伺服器26,待伺服器26依據該回測指令進行運算並產生相對應的回測資料(包含進場點、出場點與報酬率)後即回傳給回測模組22。在一些實施例中,回測視 圖32顯示預設的複數個交易策略按鍵54(例如:第一交易策略按鍵、第二交易策略按鍵…等),每一個交易策略按鍵54即已包含預設的進場策略與出場策略,預設的交易策略按鍵54其用意在於對應的交易策略(包含進場策略與出場策略)已由伺服器26預先產生對應的回測資料。也就是說,當使用者點擊某一個預設的交易策略按鍵54(產生對應的回測指令,其包含了金融商品、交易策略與時間區間),伺服器26接收到上傳的回測指令不需再多花時間進行運算,而可快速提供預先運算好的回測資料(儲存於伺服器26的記憶體或資料庫28中),使回測模組22接收後可立即由回測線圖標記模組24在單一價位線圖38上產生對應的買進符號34與賣出符號36並標記於價位折線上相對應之位置。因此,使用者點擊預設的交易策略按鍵54後,可立即在單一價位線圖38上查看到對應的買進符號34與賣出符號36;相反的,若使用者點擊非預設的交易策略(例如:使用者自訂的交易策略),產生的回測指令上傳至伺服器26後,需要花一些時間運算才能產生對應的回測資料。在一些實施例中,回測資料包含一至複數筆完整的交易,一筆完整的交易即包含一個進場點(由進場策略觸發買進,包含時間與價位)、一個出場點(由出場策略觸發賣出,包含時間與價位)與報酬率(單指該筆完整的交易之報酬率)。在一些實施例中,回測資料可包含不完整的交易,即,僅有進場點而無出場點,換句話說,由於買進金融商品之後出場策略仍未觸發,所以狀態為“持有中”,也不會有該次的報酬率。在一些實施例中,當回測資料包含不完整的交易,僅有進場時間而無出場時間之時,在出場策略仍未觸發之前(狀態為“持有中”),不會再有另一筆交易的進場,換句話說,在前一筆的交易未出場之前不會再進行另一筆新的交易。 The backtest module 22 is used to generate a backtest view 32, and receive the financial product (product code or product code), trading strategy (including entry strategy and exit strategy) and time period (i.e., the start time and end time of the backtest) selected by the user to combine into a backtest instruction, upload the backtest instruction to the server 26 (the backtest operation after uploading will be described later), and download the backtest data corresponding to the backtest instruction from the server 26 and trigger the backtest line chart marking module 24. The backtest data includes entry time, entry price, exit time, exit price and return rate. 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 (e.g., clicks one of the selected products from the selected quote view, not depicted) and switches to the backtest view 32 of the financial product, e.g., clicks the "Stock Backtest" tab (or backtest option, not depicted) in Figure 4, and only needs to select a trading strategy and a time period in the backtest view 32 of the financial product, and does not need to enter the product code or product code of the financial product separately, because the backtest view 32 has obtained the product code or product code of the financial product. In some embodiments, the trading strategy used for backtesting is a one-to-one combination of fixed entry strategy and exit strategy, for example: the screening condition of the entry strategy is MACD golden cross, and the screening condition of the exit strategy is MACD death cross, and another example: the screening condition of the entry strategy is MACD golden cross, and the screening condition of the exit strategy is a combination of MACD death cross and KD death cross (i.e., the screening conditions of these two technical indicators are met at the same time). In some embodiments, the entry strategy and exit strategy are a one-to-many combination, for example: the screening condition of the entry strategy is MACD golden cross, and the screening condition of the exit strategy can be any one of MACD death cross, KD death cross or 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 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 set by the application 20 as the start and end time of the backtest with a fixed default value, for example: the past six months (i.e., the most recent trading day is the backtest end time, and the trading day six months 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 products, trading strategies and time intervals selected by the user are combined into a backtest instruction, which 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 returned to the backtest module 22. In some embodiments, the backtest view 32 displays a plurality of preset trading strategy buttons 54 (e.g., a first trading strategy button, a second trading strategy button, etc.), each of which includes a preset entry strategy and an exit strategy. The purpose of the preset trading strategy button 54 is that the corresponding trading strategy (including the entry strategy and the exit strategy) has been generated by the server 26 in advance for the corresponding backtest data. That is to say, when the user clicks on a preset trading strategy button 54 (generating a corresponding backtesting instruction, which includes a financial product, a trading strategy and a time period), the server 26 does not need to spend any more time on calculations after receiving the uploaded backtesting instruction, but can quickly provide pre-calculated backtesting data (stored in the memory or database 28 of the server 26), so that after the backtesting module 22 receives it, the backtesting 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 on 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 backtesting instruction is uploaded to the server 26, it takes some time to calculate to generate the corresponding backtesting data. In some embodiments, the backtesting 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 return rate (referring to the return rate of the complete transaction only). 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 the purchase of the financial product, the status is "holding" and there will be no return rate for that transaction. In some embodiments, when the backtest data includes incomplete transactions, only entry time but no exit time, before the exit strategy is still not triggered (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.

回測線圖標記模組24,自伺服器26下載金融商品之歷史報價資料並據以產生單一價位線圖38顯示於回測視圖32(第4圖),單一價位線圖38包含價位折線(Price Line),依據回測資料產生對應的買進符號34與賣出符號36並標記於價位折線上相對應之位置,買進符號34係對應進場時間,賣出符號36係對應出場時間。在一些實施例中,當回測模組22接收到伺服器26所產生的回測資料時,即觸發回測線圖標記模組24下載金融商品之歷史報價資料並據以產生單一價位線圖38,然後依據回測資料產生對應的買進符號34與賣出符號36並標記於價位折線上相對應之位置。在一些實施例中,回測線圖標記模組24先行下載金融商品之歷史報價資料並據以產生單一價位線圖38,然後當回測模組22接收到伺服器26所產生的回測資料時,再觸發回測線圖標記模組24依據回測資料產生對應的買進符號34與賣出符號36並標記於價位折線上相對應之位置。所謂的單一價位線圖38即時間軸上的每一個時間點僅對應價位折線的一個價位,例如:收盤價線與均價線。本發明利用簡潔的單一價位線圖38來標記回測的買進符號34與賣出符號36,解決了習見技術在多價位線圖(如:K線圖、美國線圖…等,在一個時間點上的一根線有開盤價、最高價、最低價及收盤價這四個價位)上疊加符號或標記時使得線圖看起來過於雜亂、複雜以及不易讀的問題。此外,本發明採用單一價位線亦可收到另外一個先前技術二無法預期的特殊技術功效:回測結果為可成交的回測結果,其為具有真正值得參考價值的回測結果。例如,本發明用收盤價線的單一價位線來做回測,可以保證當天的該價位可以成交。由於回測係以過去的歷史資料來做模擬交易,如先前技術二採用K線,其中的最高價、最低價、開盤價不一定可以成交,有可能是量極少,因此,K線圖本身並不具備參考價值,其置於回測結果圖中,並無法得知哪個價位可以成交,因此,並不具有意義。換言之,如果 回測的結果是基於可能不會成交的價位,那麼,該次回測將不具有意義。本發明使得技術線圖(回測視圖32)在視覺上更容易快速地辨識、理解股票回測的資訊。在一些實施例中,回測線圖標記模組24更包含:產生報酬率切換開關40(例如:以開關元件或核選方塊元件實作)並顯示於回測視圖32,報酬率切換開關40用以接收開啟指令或關閉指令以開啟或關閉報酬率柱狀圖42並疊加顯示於單一價位線圖38(第7圖)。當開啟報酬率柱狀圖42並疊加顯示於單一價位線圖38時,單一價位線圖38之縱軸座標標籤在一側(例如:左外側)顯示報酬率標籤以對應報酬率柱狀圖42中各報酬率柱狀之報酬率,在另一側(例如:右外側)顯示價位標籤以對應價位折線。在一些實施例中,報酬率柱狀圖42包含一至複數個報酬率柱狀(Bar),每一個報酬率柱狀代表一次完整的交易,報酬率柱狀的寬度係代表進場時間至出場時間的時間長度,在同一個報酬率柱狀圖42中係以同樣的比例表示時間長度。例如某一個報酬率柱狀的寬度為2個單位長,即該報酬率柱狀代表2個交易日(從進場點至出場點花了2個交易日),另一個報酬率柱狀的寬度為5個單位長,即該報酬率柱狀代表5個交易日(從進場點至出場點花了5個交易日),而報酬率柱狀的長度係代表當次交易的報酬率,報酬率柱狀在報酬率基準線44之上的長度代表正報酬率,報酬率柱狀在報酬率基準線44之下的長度代表負報酬率。在一些實施例中,屬於正報酬率的報酬率柱狀係以第一顏色(例如:紅色)予以標記,以及,屬於負報酬率的報酬率柱狀係以不同的第二顏色(例如:綠色)予以標記。 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 it and displays it on the backtest view 32 (Figure 4). The single price line chart 38 includes a price line (Price Line). According to the backtest data, the corresponding buy symbol 34 and sell symbol 36 are generated and marked at the corresponding positions on 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 based on it, and then the corresponding buy symbol 34 and sell symbol 36 are generated according to the backtest data and marked at the corresponding position on 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 based on it, 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 on the price line. The so-called single price line chart 38 means that each time point on the time axis corresponds to only 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, solving the problem that the conventional technology overlays 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, the opening price, the highest price, the lowest price and the closing price) so that the line chart looks too messy, complicated and difficult to read. In addition, the present invention adopts a single price line and can also achieve another special technical effect that cannot be expected by the previous technology 2: the backtest result is a backtest result that can be traded, which is a backtest result with real reference value. 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 based on past historical data, such as the previous technology 2 using K-line, the highest price, lowest price, and opening price may not 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 stock backtesting in the technical line chart (backtesting view 32) visually. In some embodiments, the backtesting line chart marking module 24 further includes: generating a return rate switching switch 40 (for example, implemented by a switch element or a check box element) and displaying it in the backtesting view 32. The return rate switching switch 40 is used to receive an opening instruction or a closing instruction to open or close the return rate 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 (e.g., 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 (e.g., the right outer side) to correspond to the price line. In some embodiments, the rate of return bar chart 42 includes one or more 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 return rate bar is 2 units long, the return rate bar represents 2 trading days (it takes 2 trading days from the entry point to the exit point), and the width of another return rate bar is 5 units long, the return rate bar represents 5 trading days (it takes 5 trading days from the entry point to the exit point), and the length of the return rate bar represents the return rate of the transaction, the length of the return rate bar above the return rate baseline 44 represents a positive return rate, and the length of the return rate bar below the return rate baseline 44 represents a negative return rate. In some embodiments, the return rate bar belonging to the positive return rate is marked with a first color (e.g., red), and the return rate bar belonging to the negative return rate is marked with a different second color (e.g., green).

為了產生對應回測指令的金融商品回測資料提供給客戶端,本發明在伺服器26端包含有:資料庫28與回測運算模組30。資料庫28儲存有複數個金融商品之歷史報價資料、財務面資料、籌碼面資料及技術面資料。資料庫28所儲 存的金融商品之歷史報價資料係包含多種不同的時間周期以供使用者選擇下載,例如:1分鐘、60分鐘、1日、1周、1月…等時間周期。財務面資料例如:股價淨值、毛利率、本益比、營業利益…等。籌碼面資料例如:三大法人的買/賣數量、融資使用率、融券使用率、籌碼分佈、週轉率…等。技術面資料例如:10日移動平均值、KD、MACD、RSI…等。前述所謂的篩選條件,即係用以比對此些財務面資料、籌碼面資料與技術面資料,而篩選條件中所比對的值即係所謂的參數,例如:某進場策略的篩選條件為“KD黃金交叉”,而參數為“9”,即為“9日的KD黃金交叉”。 In order to generate financial product backtesting data corresponding to the backtesting instruction and provide it to the client, the present invention includes a database 28 and a backtesting calculation module 30 on the server 26. The database 28 stores historical quotation data, financial data, chip data and technical data of multiple 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... etc. Financial data, such as: stock price net value, gross profit margin, price-earnings ratio, operating profit... etc. Chip data, such as: the purchase/sale quantity of the three major legal persons, the utilization rate of financing, the utilization rate of short selling, chip distribution, turnover rate... etc. Technical data such as: 10-day moving average, KD, MACD, RSI, etc. The aforementioned screening conditions 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".

回測運算模組30,用以接收客戶端所上傳的回測指令,回測指令包含:金融商品、交易策略(包含:進場策略與出場策略)與時間區間,回測運算模組30接收到回測指令後以該回測指令比對資料庫28中指定的金融商品與時間區間,以篩選出符合進場策略之篩選條件的進場點,當篩選出有符合的進場策略之時,接著篩選出符合出場策略之篩選條件的出場點。一個進場點(包含進場價位與進場時間)與一個出場點(包含出場價位與出場時間)合稱為一筆完整的交易(即,一買與一賣)。當有完整的交易時即可計算出當次交易的報酬率(即,以進場價位及出場價位計算),當結束一筆完整的交易且仍在回測指令的時間區間內之時,則繼續篩選下一個進場點與出場點,直到時間區間結束為止。在一些實施例中,對某金融商品在時間區間內的回測可以有零至複數筆完整的交易,例如:在時間區間內若無任何符合進場策略的進場點之時,回測資料即為“零”;再例如:在時間區間內若有五筆完整的交易,則回測資料會有五筆的進場時間、進場價位、出場時間、出場價位與報酬率。在一些實施例中,對某金融商品在時間區間內的回測,僅有進場點而無出場點,狀態即為“持有中”,因此不會有該次的 報酬率。回測結束後,回測運算模組30將產生的回測資料回傳給客戶端的回測模組22。在一些實施例中,伺服器26係於接收到上傳的回測指令後,回測運算模組30再對特定的金融商品以指定的交易策略進行回測運算,待運算結束後才將金融商品回測資料提供給客戶端。在一些實施例中,回測運算模組30以預設的複數個交易策略(包含進場策略與出場策略)預先對所有的金融商品進行回測運算,並將運算結束後的金融商品回測資料儲存於伺服器26的記憶體或資料庫28中,當客戶端上傳的回測指令係屬於“預設的複數個交易策略”之一時,回測運算模組30不需再次進行回測運算,僅需從記憶體或資料庫28中讀取對應特定金融商品的回測資料以提供給客戶端。相較於先前技術二,本實施例可讓使用者不用來回地進行:回到策略設定表單-->依據策略表單設定交易策略產生回測指令-->上傳回測指令-->伺服器依據回測指令進行回測運算-->客戶端裝置下載回測資料-->顯示於客戶端裝置;換言之,使用者每次重新測試一個交易策略時,就必須重新選取一次交易策略後,再進行一次上述的流程。本發明提供複數個預設的交易策略(即,伺服器端已預先做過回測運算的交易策略)可大幅增加使用者操作的便利性,並且,增加使用者進行多個預設交易策略的回測資料比較的效率,例如:直以在交易策略按鍵54上以按鍵標籤直接顯示“平均報酬率”、“平均勝率”,或者“平均報酬率”與“平均勝率”兩者。此外,本發明更藉由將上述的交易策略按鍵化,大幅提升了使用者操作的方便性,以下將詳細說明之。 The backtesting calculation 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 periods. After receiving the backtesting instruction, the backtesting calculation module 30 compares the financial products and time periods 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 return rate 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 period of the backtest instruction, the next entry point and exit point will continue to be screened until the time period ends. In some embodiments, the backtest of a financial product within the time period can have zero to multiple complete transactions. For example, if there is no entry point that meets the entry strategy within the time period, the backtest data is "zero"; for another example, if there are five complete transactions within the time period, 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 a backtest of a financial product within a time period, there is only an entry point but no exit point, 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 return the generated backtest data 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 a specific financial product with a specified trading strategy, and will provide the financial product backtest data to the client after the calculation is completed. In some embodiments, the backtesting calculation module 30 performs backtesting calculations on all financial products in advance with a plurality of preset trading strategies (including entry strategies and exit strategies), and stores the backtesting data of the financial products after the calculation in the memory or database 28 of the server 26. When the backtesting instruction uploaded by the client belongs to one of the "preset plurality of trading strategies", the backtesting calculation module 30 does not need to perform the backtesting calculation 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 to the prior art 2, the present embodiment allows the user to avoid going back and forth: return to the strategy setting form --> set the trading strategy according to the strategy form to generate a backtesting instruction --> upload the backtesting instruction --> the server performs a backtesting calculation according to the backtesting instruction --> 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 perform the above process again. The present invention provides a plurality of preset trading strategies (i.e., trading strategies that have been pre-calculated by the server) to greatly increase the convenience of user operation, and increase the efficiency of the user in comparing the backtesting data of multiple preset trading strategies, for example: directly displaying "average return rate", "average winning rate", or both "average return rate" and "average winning rate" with a key label on the trading strategy button 54. In addition, the present invention greatly improves the convenience of user operation by turning the above-mentioned trading strategies into buttons, which will be explained in detail below.

參閱第4圖,本發明實施例回測視圖32之螢幕16畫面示意圖(一),其說明了本發明一較佳實施例於螢幕16上所顯示應用程式20(即,股票回測軟體)的圖形化使用者介面。本實施例之圖式係以智慧型手機之螢幕樣式為例來說明,本發明並未限定使用於智慧型手機,本發明亦可使用於個人電腦、筆記型電腦、 平板電腦、手持式股票機、個人數位助理、智慧型電視…等等。本實施例即智慧型手機(股票回測之資料視覺化裝置10)顯示本發明之回測視圖32。在一些實施例中,當使用者以選單(未圖示)操作切換至某金融商品之回測視圖32時,回測視圖32顯示預設的複數個交易策略按鍵54,例如:第一交易策略按鍵(圖例為“最高勝率組合”,其顯示平均勝率為“80.2%”)與第二交易策略按鍵(圖例為“最高報酬組合”,其顯示平均報酬率為“34.6%”),並以該些交易策略按鍵54其中之一做為預設的“已被選取的交易策略按鍵54”(即,圖例的“最高勝率組合”,其進場策略為“KD黃金交叉”,而出場策略為“布林通道賣超”),回測視圖32先以預設的被選擇交易策略(即,“已被選擇的交易策略按鍵54”所對應的交易策略,係進場策略與出場策略之組合)與預設的時間區間產生該金融商品的回測指令並上傳至伺服器26,然後自伺服器26下載對應該回測指令的回測資料,圖例即係此類實施例。圖例中“已被選擇的交易策略按鍵54”以黑色圓角粗框標記(即,黑色圓角粗框為“已被選擇的交易策略”,而右邊的灰色圓角細框則為“未被選擇的交易策略”)。在一些實施例中,單擊操作交易策略按鍵54可更新單一價位線圖38中的買進符號34與賣出符號36,同時,亦更新對應的回測進出資料表52。在一些實施例中,雙擊或是長按操作交易策略按鍵54可編輯其對應的交易策略,例如:修改進場策略或出場策略的篩選條件與參數。在一些實施例中,交易策略按鍵54亦可於按鍵標籤上全部直接顯示“平均報酬率”(未圖示)、全部直接顯示“平均勝率”(未圖示),或者是全部都直接顯示“平均報酬率”與“平均勝率”兩者(未圖示)。圖例中預設的時間區間為“近半年”(即,最近一個交易日為回測截止時間,往前推半年的交易日為回測開始時間),點選“近半年”(圖例之文字有標記底線,代表其為可點擊的連結)可編輯時間區間。在一些實施例中,當使用者以選單操作切換至某金 融商品之回測視圖32時,需先設定交易策略及時間區間,才能產生該金融商品的回測指令並上傳至伺服器26,然後自伺服器26下載對應該回測指令的回測資料。在一些實施例中,當使用者以選單操作切換至回測視圖32時,需先設定金融商品、交易策略及時間區間,才能產生該金融商品的回測指令並上傳至伺服器26,然後自伺服器26下載對應該回測指令的回測資料。本發明係將回測資料以視覺化的效果呈現在回測視圖32之單一價位線圖38(例如:收盤價線與均價線),即,在金融商品的價位折線上標記回測的買進符號34(代表進場點)與賣出符號36(代表出場點)。由於單一價位線圖38與K線圖相比之下較為簡潔(例如以本發明的第4圖與先前技術的第1圖比較),使得買進符號34與賣出符號36在單一價位線圖38較為易讀(即,在視覺上較易辨識)。在一些實施例中,買進符號34與賣出符號36係以兩種不同的顏色來標記以示區別,由於圖例係以灰階色彩呈現,故,僅能看出買進符號34與賣出符號36係以一深及一淺來標記,而實際應用時,在螢幕16上可用紅色(代表進場點)與綠色來標記(代表出場點)。在一些實施例中,買進符號34與賣出符號36係以兩種不同的圖示/符號(未圖示)來標記以示區別,例如:向上的三角形(代表進場點)與向下的三角形(代表出場點)。在一些實施例中,回測視圖32包含報酬率切換開關40(圖例係以核選方塊元件實作),若原本為關閉狀態(如圖例所示)於點擊後產生開啟指令;反之,若原本為開啟狀態於點擊後產生關閉指令。在一些實施例中,回測視圖32包含回測各次進場點與出場點的資料表,如圖例下方的回測進出資料表52(圖例顯示日期、策略訊號及收盤價)。例如:在12/29係以“布林通道賣超”做為出場策略觸發賣單,而其賣出價格為490(使用者以上/下滑動操作回測視圖32即可查看螢幕16可視範圍之外回測進出資料表52的其他進場點與出場點)。 Referring to FIG. 4, the screen 16 diagram (I) of the backtest view 32 of the embodiment of the present invention 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 diagram of the present embodiment is illustrated by taking the screen style of a smart phone as an example. The present invention is not limited to use in smart phones. The present invention can also be used in personal computers, laptops, tablet computers, handheld stock machines, personal digital assistants, smart TVs, etc. The present embodiment is a smart phone (data visualization device 10 for stock backtesting) displaying the backtest view 32 of the present invention. In some embodiments, when the user switches to the backtest view 32 of a financial product by operating a menu (not shown), the backtest view 32 displays a plurality of default trading strategy buttons 54, for example, a first trading strategy button (the legend is "highest winning rate combination", which displays an average winning rate of "80.2%") and a second trading strategy button (the legend is "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". The backtest view 32 first generates a backtest instruction for the financial product with the default selected trading strategy (i.e., 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 period and uploads it to the server 26, and then downloads the backtest data corresponding to the backtest instruction from the server 26. The figure is an example of such an implementation. The "selected trading strategy button 54" in the figure 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, a double click or a long press on the trading strategy button 54 can edit the corresponding trading strategy, for example, modify the filter conditions and parameters of the entry strategy or exit strategy. In some embodiments, the trading strategy button 54 can also directly display the "average return rate" (not shown) or the "average winning rate" (not shown) on the button label, or directly display both the "average return rate" and the "average winning rate" (not shown). The default time period in the legend is "recent six months" (i.e., the most recent trading day is the backtest end time, and the trading day six months ago is the backtest start time). Click "recent six months" (the text in the legend is marked with 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 financial product through a menu operation, the trading strategy and time period 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 through a menu operation, the financial product, trading strategy and time period 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 (e.g., closing price line and average price line) of the backtest view 32 in a visual way, 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 simpler than the K-line chart (e.g., comparing the fourth figure of the present invention with the first figure of the prior art), the buy symbol 34 and the sell symbol 36 are easier to read (i.e., easier to identify visually) on the single price line chart 38. In some embodiments, the buy symbol 34 and the sell symbol 36 are marked with two different colors to distinguish them. Since the illustration 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 example is implemented with a checkbox element). If it is originally in the closed state (as shown in the example), an open command is generated after clicking; conversely, 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 "Bollinger Channel Sell-Over" is used as the exit strategy to trigger a sell order, and its selling price is 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 up/down sliding the backtest view 32).

參閱第5圖,本發明實施例回測視圖32之螢幕16畫面示意圖(二),圖例說明了當使用者於單一價位線圖38點選價位折線上的任何一個進場點或出場點,被點選的進出場點46即會以“特殊視覺效果”予以標記。例如:以特殊的符號/圖示標記(如圖例),或是以放大效果(未描繪)顯示原本位置的買進符號34或賣出符號36,同時,下方回測進出資料表52之中相對應資料列會以反白(Highlighted)效果顯示。圖例係以倒三角形符號標記於被點選的進出場點46,並且標記了該次出場點的日期與價位。在一些實施例中,使用者可先於下方回測進出資料表52之中選取某一列的資料,使被選取的進場點/出場點資料列以反白效果顯示,然後,單一價位線圖38中相對應的進場點/出場點即自動以“特殊視覺效果”標記對應的被點選的進出場點46。換句話說,使用者不論是點選上方單一價位線圖38的進場點或出場點,或是點選下方回測進出資料表52,除了被點選的一方(圖或表)會以視覺效果標記,相對應的另一方(被點選的圖上的點所對應的表,或被點選的表對應的圖上的點)亦會同步以視覺效果回饋,使得圖與表在操作上有雙向互動的視覺效果回饋。 Referring to FIG. 5, the screen 16 of the backtest view 32 of the present embodiment of the invention is shown in FIG. 2. The illustration shows that when a user clicks on any entry point or exit point on the price line of the single price line chart 38, the selected entry point 46 will be marked with a "special visual effect". For example, a special symbol/icon mark (as shown in the illustration), or a magnified effect (not shown) is used to display the original position of the buy symbol 34 or the sell symbol 36. At the same time, the corresponding data row in the backtest entry and exit data table 52 below will be displayed with a highlighted effect. The illustration 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 row of data in the backtest entry and exit data table 52 below, so that the selected entry/exit point data row is displayed with a highlighted effect, and then the corresponding entry/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, whether 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 point on the clicked chart, or the point on the chart corresponding to the clicked table) will also be synchronously fed back with a visual effect, so that the chart and the table have a two-way interactive visual effect feedback in operation.

參閱第6圖,本發明實施例回測視圖32之螢幕16畫面示意圖(三),圖例說明了當使用者於單一價位線圖38點選價位折線上的任何一個進場點或出場點,除了被點選的進出場點46會以“特殊視覺效果”予以標記,本實施例並特別以線段醒目標記48將被點選的進出場點46所對應的線段(即,該次進場點與出場點之間的線段)。線段醒目標記48係以不同樣式(例如:較粗或虛線)或不同顏色的線段效果來表示,以讓使用者在視覺上可透過線段醒目標記48清楚地辨識該次的進場點與出場點之間的線段。圖例線段醒目標記48係以較粗的線段以及不同 顏色標示(圖例係以灰色標示,實際在螢幕16上顯示可用鮮豔的色彩來標示)。在一些實施例中,線段醒目標記48可用紅色表示正報酬率、綠色表示負報酬率。 Referring to FIG. 6 , the screen 16 of the backtest view 32 of the present embodiment of the present invention is schematically shown in FIG. 3 . The illustration shows that when a user clicks on any entry point or exit point on the price line of the single price line chart 38 , in addition to the entry point 46 being marked with a “special visual effect”, the present embodiment also uses a line segment eye-catching mark 48 to mark the line segment corresponding to the selected entry point 46 (i.e., 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 (e.g., thicker or dotted lines) or different colors, so that the user can visually clearly identify the line segment between the entry point and the exit point through the line segment eye-catching mark 48 . The legend line segment highlight mark 48 is marked with a thicker line segment and different colors (the legend is marked in gray, and can be marked with bright colors when displayed on the screen 16). In some embodiments, the line segment highlight mark 48 can be red to indicate a positive return rate and green to indicate a negative return rate.

參閱第7圖,本發明實施例回測視圖32之螢幕16畫面示意圖(四),此圖例係說明當使用者勾選報酬率切換開關40後(圖例的核選方塊元件係從未勾選狀態變更為已勾選狀態,即,產生報酬率切換開關40之開啟指令),即開啟報酬率柱狀圖42疊加顯示於單一價位線圖38。此時,單一價位線圖38之縱軸座標標籤在一側(圖例係左側)顯示報酬率標籤以對應報酬率柱狀圖42之報酬率,在另一側(圖例係右側)顯示價位標籤以對應價位折線,報酬率柱狀圖42中的各個報酬率柱狀之長度代表各次“完整的交易”之報酬率,在報酬率基準線44(圖例係以虛線表示報酬率為0%的位置)之上的長度代表正報酬率,而在報酬率基準線44之下的長度代表負報酬率,至於報酬率柱狀之寬度係代表進場時間至出場時間的時間長度。在一些實施例中,屬於正報酬率的報酬率柱狀係以第一顏色(例如:紅色)予以標記,以及,屬於負報酬率的報酬率柱狀係以不同的第二顏色(例如:綠色)予以標記(如圖例中,-5.0%報酬率的報酬率柱狀與其他正報酬率的正報酬率柱狀,係以不同的灰階示意之)。在一些實施例中,在各報酬率柱狀的對應位置另標註有報酬率數據,例如圖例的正報酬率係在報酬率柱狀的上方標註報酬率數據,而負報酬率係在報酬率柱狀的下方標註報酬率數據。本發明之報酬率柱狀圖42讓使用者可輕易透過圖形的視覺效果辨識出報酬率柱狀的長短(即,報酬率之高低)與寬度(即,持股時間的長短)。 Referring to FIG. 7 , the screen 16 of the backtest view 32 of the embodiment of the present invention is schematically illustrated in FIG. 4 . This illustration shows that when the user checks the rate of return switch 40 (the check box element in the illustration changes from an unchecked state to a checked state, i.e., an on instruction for the rate of return switch 40 is generated), the rate of return bar chart 42 is turned on and displayed superimposed on the single price line chart 38. At this time, the vertical axis labels of the single price line chart 38 display the return rate labels on one side (the left side in the example) to correspond to the return rate of the return rate bar chart 42, and display the price labels on the other side (the right side in the example) to correspond to the price broken line. The length of each return rate bar in the return rate bar chart 42 represents the return rate of each "complete transaction", the length above the return rate baseline 44 (the example uses a dotted line to indicate the position where the return rate is 0%) represents the positive return rate, and the length below the return rate baseline 44 represents the negative return rate. As for the width of the return rate bar, it represents the length of time from the entry time to the exit time. In some embodiments, the return column of the positive return rate is marked with a first color (e.g., red), and the return column of the negative return rate is marked with a different second color (e.g., green) (e.g., in the legend, the return column of -5.0% return rate and the positive return column of other positive return rates are indicated by different gray levels). In some embodiments, the return rate data is further labeled at the corresponding position of each return rate column, for example, the positive return rate in the legend is labeled with the return rate data above the return rate column, and the negative return rate is labeled with the return rate data below the return rate column. The return rate bar chart 42 of the present invention allows users to easily identify the length (i.e., the level of return rate) and width (i.e., the length of holding period) of the return rate bar through the visual effect of the graph.

參閱第8圖,本發明實施例回測視圖32之螢幕16畫面示意圖(五),圖例說明了當使用者點選本實施例上方報酬率柱狀圖42的任一個報酬率柱狀,被點選的報酬率柱狀50即以反白效果或是不同的顏色呈現(圖例係以灰色點點表 示),而下方的回測進出資料表52之中相對應資料列亦會同步以反白效果顯示,由於一個報酬率柱狀代表一個完整的交易,所以,資料列的反白效果係對應一個進場點與一個出場點(即,回測進出資料表52中的兩列資料)。在一些實施例中,使用者可先於下方回測進出資料表52之中選取成對的某兩列資料,使被選取的進場點與出場點資料列以反白效果顯示,然後,上方報酬率柱狀圖42中相對應的報酬率柱狀即自動以反白效果或是不同的顏色呈現。換句話說,使用者不論是點選上方報酬率柱狀圖42的報酬率柱狀,或是點選下方回測進出資料表52成對的資料列,除了被點選的一方(圖或表)會以視覺效果標記,相對應的另一方(被點選的圖上的點所對應的表,或被點選的表對應的圖上的點)亦會同步以視覺效果回饋,使得圖與表在操作上有雙向互動的視覺效果回饋。 Referring to FIG. 8 , the screen 16 of the backtest view 32 of the present embodiment of the present invention is shown in FIG. 5 . The figure illustrates that when a user clicks on any of the return rate bars in the return rate bar chart 42 above the present embodiment, the clicked return rate bar 50 is displayed with a highlight effect or a different color (in the figure, it is represented by gray dots), and the corresponding data row in the backtest entry and exit data table 52 below is also displayed with a highlight effect. Since one return rate bar represents a complete transaction, the highlight effect of the data row corresponds to one entry point and one exit point (i.e., two rows of data in the backtest entry and exit data table 52). In some embodiments, the user can first select two pairs of data in the backtest entry and exit data table 52 below, so that the selected entry point and exit point data rows are displayed with a highlighted effect, and then the corresponding return rate bars in the upper return rate bar chart 42 are automatically displayed with a highlighted effect or a different color. In other words, whether the user clicks on the return rate bar in the upper return rate bar chart 42 or clicks on the paired data rows in 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 point on the clicked chart, or the point on the chart corresponding to the clicked table) will also be synchronously fed back with a visual effect, so that the chart and the table have a two-way interactive visual effect feedback in operation.

參閱第9圖,本發明實施例回測視圖32之螢幕16畫面示意圖(六),圖例說明了本實施例係以開關元件(例如iOS的Switch元件)實作報酬率切換開關40,若原本為關閉狀態於點擊後產生開啟指令,反之,若原本為開啟狀態於點擊後產生關閉指令。在一些實施例中,報酬率切換開關40亦可利用其他的元件實作以取代核選方塊元件或開關元件,例如:按鍵元件(Button元件)。 Refer to Figure 9, the screen 16 of the backtest view 32 of the embodiment of the present invention (VI), which illustrates that the present embodiment uses a switch component (such as the iOS Switch component) to implement the reward rate switching switch 40. If the state is originally closed, an on command is generated after clicking. Conversely, if the state is originally open, a off command is generated after clicking. In some embodiments, the reward rate switching switch 40 can also be implemented using other components to replace the checkbox component or the switch component, such as a button component (Button component).

參閱第10圖,本發明一實施例之操作流程圖,使用者利用行動裝置(如智慧手機/平板電腦/股票機)執行應用程式20以查看某金融商品之回測資料之操作流程,請同時參考第2圖、第3圖、第4圖、第7圖與第9圖,係包含: Refer to Figure 10, an operation flow chart of an embodiment of the present invention, the operation flow of a user using a mobile device (such as a smart phone/tablet/stock machine) to execute application 20 to view the backtesting data of a certain financial product, please refer to Figures 2, 3, 4, 7 and 9 at the same time, which includes:

步驟S101:於裝置10上執行本發明應用程式20。使用者於行動裝置(如智慧手機/平板電腦/股票機)執行本發明之應用程式20(股票回測軟體)。此說明範例並非用以限定本發明應用於行動裝置,本發明亦可應用於個人電腦、筆記型電腦、智慧型電視…等裝置。在一些實施例中,執行步驟S101之時,使用 者需以帳號及密碼進行登入驗證作業,在此之前,通訊模組18須先建立好Internet網路連線。 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/stock machine). This description 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, laptops, smart TVs, etc. In some embodiments, when executing step S101, the user needs to log in and verify the operation with an account and password. Before this, the communication module 18 must first establish an Internet network connection.

步驟S102:與伺服器26建立連線。應用程式20執行後,即透過通訊模組18建立好Internet網路連線與伺服器26建立連線。 Step S102: Establish a connection with the server 26. After the application 20 is executed, the Internet network connection is established with the server 26 through the communication module 18.

步驟S103:產生回測視圖32,並接收金融商品、交易策略與時間區間之選擇以組合成為回測指令。在一些實施例中,使用者先選擇金融商品(例如:從自選報價視圖點選其中一個自選商品,未描繪)並切換至該金融商品之回測視圖32,例如:點選第4圖中的“股票回測”頁籤(或回測選項,未描繪),於該金融商品之回測視圖32僅需再選擇交易策略與時間區間,不需再另行輸入金融商品的商品代號或商品代碼,因為回測視圖32已取得該金商品之商品代號或商品代碼。如第4圖所示,由於此回測視圖32係歸屬於“台積電”,故,回測模組22已自動取得金融商品(即,“台積電”),而圖例係以預設的“已被選取的交易策略按鍵54”(即,“最高勝率組合”,其進場策略為“KD黃金交叉”,而出場策略為“布林通道賣超”)與預設的時間區間(假設應用程式20的預設值為“近半年”)產生“台積電”的回測指令。在一些實施例中,使用者可點選“更多按鍵”(圖例中位於進出場策略的最右邊)以選擇其他交易策略或自訂交易策略,另外,使用者可點選圖例中時間區間“近半年”(有底線的文字)以更改時間區間的設定。 Step S103: Generate a backtest view 32, and receive the selection of financial products, trading strategies and time periods to form a backtest instruction. In some embodiments, the user first selects a financial product (e.g., clicks on one of the selected products from the selected quote view, not depicted) and switches to the backtest view 32 of the financial product, for example, clicks on the "Stock Backtest" tab (or backtest option, not depicted) in Figure 4, and only needs to select a trading strategy and time period in the backtest view 32 of the financial product, and does not need to enter the product code or product code of the financial product separately, because the backtest view 32 has obtained the product code or product code of the financial product. As shown in Figure 4, 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 "Bollinger channel sell-over") and the default time period (assuming that the default value of the application 20 is "nearly half a year"). In some embodiments, the user can click "more buttons" (located at the far right of the entry and exit strategies in the legend) to select other trading strategies or customize trading strategies. In addition, the user can click the time period "nearly half a year" (underlined text) in the legend to change the setting of the time period.

步驟S104:上傳回測指令至伺服器26。前一步驟執行後,即可上傳回測指令至伺服器26。待伺服器26依據該回測指令進行運算並產生相對應的回測資料(包含進場點、出場點與報酬率)後即回傳給回測模組22,或由回測模組22自伺服器26下載。在前一步驟中,若使用者選取預設的複數個交易策略按鍵54其中之一,也就是說伺服器26的回測運算模組30已事先對所有的金融商品以同樣 的交易策略進行過回測運算,並將運算結束後的金融商品回測資料儲存於伺服器26的記憶體或資料庫28中,所以回測運算模組30不需再次進行回測運,僅需從記憶體或資料庫28中讀取對應特定金融商品的回測資料以提供給客戶端,因此,可大幅縮短回測運算的時間。 Step S104: Upload the backtesting instruction to the server 26. After the previous step is executed, the backtesting instruction 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 point, exit point and return rate), it is returned to the backtesting module 22, or downloaded from the server 26 by the backtesting module 22. In the previous step, if the user selects one of the preset multiple trading strategy buttons 54, it means that the backtesting calculation module 30 of the server 26 has previously performed backtesting calculations on all financial products with the same trading strategy, and stored the backtesting data of the financial products after the calculation in the memory or database 28 of the server 26. Therefore, the backtesting calculation module 30 does not need to perform backtesting 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, thereby greatly shortening the backtesting calculation time.

步驟S105:自伺服器26下載對應回測指令的回測資料。待伺服器26依據該回測指令進行運算並產生相對應的回測資料後即回傳給回測模組22,或由回測模組22自伺服器26下載。回測資料包含各進場點的進場時間與進場價位、各出場點的出場時間與出場價位、各筆完整交易的報酬率。 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 returned 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 return rate of each complete transaction.

步驟S106:自伺服器26下載金融商品之歷史報價資料並據以產生單一價位線圖38顯示於回測視圖32。回測線圖標記模組24自伺服器26下載金融商品之歷史報價資料並據以產生單一價位線圖38顯示於回測視圖32,單一價位線圖38包含價位折線。在一些實施例中,步驟S105與步驟S106係同步執行;在一些實施例中,步驟S105先執行後,再執行步驟S106;在一些實施例中,步驟S106先執行以產生單一價位線圖38顯示於回測視圖32,再執行步驟S105。 Step S106: Download the historical quotation data of the financial product from the server 26 and generate a single price line chart 38 based on it and display it 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 based on it and displays it 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 synchronously; 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 displayed on the backtest view 32, and then step S105 is executed.

步驟S107:依據回測資料產生對應的買進符號34與賣出符號36並標記於價位折線上相對應之位置。回測線圖標記模組24依據回測資料產生對應的買進符號34與賣出符號36並標記於價位折線上相對應之位置,買進符號34係對應進場時間,賣出符號36係對應出場時間,如第4圖所示。 Step S107: Generate corresponding buy symbols 34 and sell symbols 36 based on the backtest data and mark them at corresponding positions on the price line. The backtest line chart marking module 24 generates corresponding buy symbols 34 and sell symbols 36 based on the backtest data and marks them at corresponding positions on the price line. The buy symbol 34 corresponds to the entry time, and the sell symbol 36 corresponds to the exit time, as shown in Figure 4.

步驟S108:接收開啟指令以開啟報酬率柱狀圖42疊加顯示於單一價位線圖38。由回測線圖標記模組24所產生的報酬率切換開關40顯示於回測視圖32,以開關元件實作如第9圖所示,以核選方塊元件實作則如第7圖所示。若報酬率切換開關40原本為關閉狀態於點擊後即產生開啟指令,回測線圖標記模組24接 收到開啟指令即開啟報酬率柱狀圖42疊加顯示於單一價位線圖38,如第7圖或第9圖所示。 Step S108: Receive an opening command to open the return rate bar chart 42 and display it superimposed on the single price line chart 38. The return rate switch 40 generated by the backtest line chart marking module 24 is displayed on the backtest view 32, and is implemented as a switch component as shown in Figure 9, and as a check box component as shown in Figure 7. If the return rate switch 40 is originally in the closed state and an opening command is generated after clicking, the backtest line chart marking module 24 receives the opening command and opens the return rate bar chart 42 superimposed on the single price line chart 38, as shown in Figure 7 or Figure 9.

對本發明的不同實施例可理解的是,由電腦執行的程式指令可實行流程圖中的各個方塊、流程圖中方塊的組合、以及各實施例中的步驟。把該等程式指令提供給一處理器操作以產生一機器或產生硬體與軟體協同運作的資源,藉此在該處理器上執行該等指令時,將產生用以實行流程圖方塊指明之動作或技術效果的構件。不同集合的程式指令亦可使展示於流程圖方塊中的至少某些操作步驟並行地進行,且一應用程式的各個程式指令所表達的技術內容可能依不同實施例而不同。再者,亦可在不只一個處理器上進行某些該等步驟,例如本發明裝置中微處理器與周邊介面處理器所協同運作的狀況。此外,在不偏離本發明範圍或精神的條件下,流程圖中之一或多個方塊或方塊的組合亦可與其他方塊或方塊組合同時地進行,或甚至以不同於展示出的順序來進行。 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. The program instructions are provided to a processor to generate a machine or a resource for hardware and software to work together, so that when the instructions are executed on the processor, components for implementing the actions or technical effects specified in the flowchart blocks will be generated. Different sets of program instructions can also enable at least some of the operation steps shown in the flowchart blocks to be performed in parallel, and the technical content expressed by each program instruction of an application program may be different according to different embodiments. Furthermore, some of these steps may be performed on more than one processor, such as when a microprocessor and a peripheral interface processor in the device of the present invention work in concert. In addition, one or more blocks or combinations of blocks in the flowchart may be performed simultaneously with other blocks or combinations of blocks, or even in a different order than shown, without departing from the scope or spirit of the present invention.

因此,本發明流程圖的方塊支援用以進行指明動作或技術效果的構件組合、用以進行指明動作或技術效果的步驟組合、以及用以進行指明動作或技術效果的程式指令構件。亦可了解的是,這些指明動作或技術效果是由特殊用途硬體式系統或者特殊用途硬體與程式指令協同運作來實行本發明流程圖的各個方塊以及流程圖的方塊組合。 Therefore, the blocks of the flowchart of the present invention support component combinations for performing specified actions or technical effects, step combinations for performing specified actions or technical effects, and program instruction components for performing specified actions or technical effects. It can also be understood that these specified actions or technical effects are implemented by special-purpose hardware systems or special-purpose hardware and program instructions in conjunction with each block of the flowchart of the present invention and the block combination of the flowchart.

綜上所述,本發明提出一種股票回測之資料視覺化技術,解決了先前技術“在K線圖中標記買進符號與賣出符號不易讓使用者以視覺辨識”的問題,本發明以簡潔的技術線圖(即,單一價位線圖38)輔以顯示股票回測之進場點、出場點以及報酬率,讓使用者可輕易辨識買進符號與賣出符號,彌補了先前技術不足之處。進一步地,由於本發明有效地整合了單一價位線圖與回測進出資 料表,讓使用者於操作兩者其中之一之時可有雙向互動的視覺效果回饋,可以更直覺式的辨識、理解回測資料之進出點概念的特殊技術功效。再進一步地,本發明提供了預設的複數個交易策略,並於伺服器26端預先做好回測運算以提供對應的回測資料,可大幅縮短回測運算的時間。另外,由於本發明有效地整合了與報酬率柱狀圖,讓使用者更容易透過圖形的視覺效果辨識出報酬率柱狀的長短(即,報酬率之高低)與寬度(即,持股時間的長短)。以上的多重特殊技術功效,皆導因於本發明有效地整合了股票回測、單一價位線圖、報酬率柱狀圖以及回測進出資料表,而任何先前技術皆無法具體實現。 In summary, the present invention proposes a data visualization technology for stock backtesting, which solves the problem of the prior art that "it is difficult 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, making up for the shortcomings of the prior art. Furthermore, 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. Furthermore, the present invention provides multiple preset trading strategies, and performs backtest calculations in advance on the server 26 to provide corresponding backtest data, which can greatly shorten the backtest calculation time. In addition, since the present invention effectively integrates with the return rate bar chart, it is easier for users to identify the length (i.e., the high or 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, a single price line chart, a return rate bar chart, and a backtest entry and exit data table, which cannot be specifically realized by any previous technology.

雖然本發明的技術內容已經以較佳實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神所作些許之更動與潤飾,皆應涵蓋於本發明的範疇內,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the technical content of the present invention has been disclosed as above with the preferred embodiment, it is not used to limit the present invention. Any slight changes and modifications made by anyone familiar with this art 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 subject to the scope defined by the attached patent application.

20:應用程式 20: Applications

22:回測模組 22: Backtesting module

24:回測線圖標記模組 24: Backtest line chart marking module

26:伺服器 26: Server

28:資料庫 28: Database

30:回測運算模組 30: Backtesting calculation module

Claims (21)

一種股票回測之資料視覺化裝置,該裝置包含:一通訊模組,用以建立Internet網路連線;一回測模組,用以產生一回測視圖,並接收一金融商品、一交易策略與一時間區間之選擇以組合成為一回測指令,上傳該回測指令至一伺服器,以及,自該伺服器下載對應該回測指令的一回測資料並觸發一回測線圖標記模組,該回測資料包含一進場時間、一進場價位、一出場時間、一出場價位與一報酬率;該回測線圖標記模組,自該伺服器下載該金融商品之一歷史報價資料並據以產生一單一價位線圖而顯示於該回測視圖,該單一價位線圖包含一價位折線,依據該回測資料產生對應的一買進符號與一賣出符號並標記於該價位折線上相對應之位置,該買進符號係對應該進場時間,該賣出符號係對應該出場時間;一記憶體,用以儲存一應用程式,該應用程式包含該回測模組與該回測線圖標記模組;該螢幕,用以顯示該應用程式之圖形化使用者介面;一或多個處理器,連接該記憶體與該螢幕並執行該應用程式。 A data visualization device for stock backtesting, the device comprises: a communication module for establishing an Internet network connection; a backtesting module for generating a backtesting view, receiving a financial product, a trading strategy and a time range selection to combine into a backtesting instruction, uploading the backtesting instruction to a server, and downloading a backtesting data corresponding to the backtesting instruction from the server and triggering a backtesting line chart marking module, the backtesting data comprising 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 financial product from the server A single price line chart is generated based on a historical quotation data 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 corresponding positions on 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 program. The application program includes the backtest module and the backtest line chart marking module. The screen is used to display a graphical user interface of the application program. One or more processors are connected to the memory and the screen and execute the application program. 如請求項1所述之股票回測之資料視覺化裝置,其中該單一價位線圖係一收盤價線圖或一均價線圖。 A data visualization device for stock backtesting as described in claim 1, wherein the single price line chart is a closing price line chart or an average price line chart. 如請求項1所述之股票回測之資料視覺化裝置,其中該回測視圖顯示預設的複數個交易策略按鍵,每一個該些交易策略按鍵皆代表一個不同的該交易策略且包含: 一進場策略與一出場策略,而該進場策略與該出場策略各包含一至複數個篩選條件及相對應的一至複數個參數。 A data visualization device for stock backtesting as described in claim 1, wherein the backtesting view displays a plurality of preset trading strategy buttons, each of which represents a different trading strategy and includes: an entry strategy and an exit strategy, and each of the entry strategy and the exit strategy includes one to multiple filter conditions and corresponding one to multiple parameters. 如請求項1所述之股票回測之資料視覺化裝置,其中該回測模組更包含:接收預設的該些交易策略按鍵之一點擊指令以產生對應的該回測指令並上傳至該伺服器,然後下載對應該回測指令的該回測資料並據以產生對應該些交易策略按鍵之一的該單一價位線圖以及標記對應的該買進符號與該賣出符號。 The data visualization device for stock backtesting as described in claim 1, wherein the backtesting module further comprises: receiving a click instruction of one of the preset 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. 如請求項1所述之股票回測之資料視覺化裝置,其中該回測模組更包含:依據該回測資料產生一回測進出資料表並顯示於該回測視圖,該回測進出資料表係以表格形式呈現該回測資料的該進場時間、該進場價位、該出場時間、該出場價位與該交易策略。 The data visualization device for stock backtesting as described in claim 1, wherein the backtesting module further comprises: generating a backtesting entry and exit data table based on the backtesting data and displaying it on 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. 如請求項5所述之股票回測之資料視覺化裝置,其中該單一價位線圖與該回測進出資料表於個別被操作之時係有雙向互動的視覺效果回饋。 A data visualization device for stock backtesting as described in claim 5, wherein the single price line chart and the backtest entry and exit data table have two-way interactive visual effect feedback when they are operated individually. 如請求項1所述之股票回測之資料視覺化裝置,其中該回測線圖標記模組更包含:產生一報酬率切換開關顯示於該回測視圖,該報酬率切換開關用以接收一開啟指令或一關閉指令以開啟或關閉一報酬率柱狀圖疊加顯示於該單一價位線圖。 A data visualization device for stock backtesting as described in claim 1, wherein the backtesting line chart marking module further includes: generating a return rate switch to be displayed on the backtesting view, the return rate switch is used to receive an on command or a off command to turn on or off a return rate bar chart superimposed on the single price line chart. 如請求項7所述之股票回測之資料視覺化裝置,其中當該報酬率柱狀圖疊加顯示於該單一價位線圖時,該單一價位線圖之縱軸座標標籤在一 側顯示一報酬率標籤以對應該報酬率柱狀圖之一報酬率,在另一側顯示一價位標籤以對應該價位折線。 A data visualization device for stock backtesting as described in claim 7, wherein when the return rate bar chart is superimposed and displayed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a return rate label on one side corresponding to a return rate of the return rate bar chart, and displays a price label on the other side corresponding to the price line. 如請求項7所述之股票回測之資料視覺化裝置,其中該報酬率柱狀圖包含一至複數個報酬率柱狀,一個該報酬率柱狀代表一次完整的交易,該報酬率柱狀的寬度係代表該進場時間至該出場時間的一時間長度,而該報酬率柱狀的長度係代表當次交易的該報酬率,該報酬率柱狀在一報酬率基準線之上的長度代表一正報酬率,該報酬率柱狀在該報酬率基準線之下的長度代表一負報酬率。 A data visualization device for stock backtesting as described in claim 7, wherein the return rate bar graph includes one or more return rate bars, one return rate bar represents a complete transaction, the width of the return rate bar represents a time span from the entry time to the exit time, and the length of the return rate bar represents the return rate of the current transaction, the length of the return rate bar above a return rate baseline represents a positive return rate, and the length of the return rate bar below the return rate baseline represents a negative return rate. 如請求項7所述之股票回測之資料視覺化裝置,其中屬於該正報酬率的該報酬率柱狀係以一第一顏色予以標記,以及,屬於該負報酬率的該報酬率柱狀係以不同的一第二顏色予以標記。 A data visualization device for stock backtesting as described in claim 7, wherein the return column belonging to the positive return is marked with a first color, and the return column belonging to the negative return is marked with a different second color. 一種股票回測之資料視覺化方法,應用於一裝置,該裝置包含一通訊模組、一記憶體及一螢幕,該方法包含:與一伺服器建立連線;產生一回測視圖,並接收一金融商品、一交易策略與一時間區間之選擇以組合成為一回測指令;上傳該回測指令至該伺服器;自該伺服器下載對應該回測指令的一回測資料,該回測資料包含一進場時間、一進場價位、一出場時間、一出場價位與一報酬率;自該伺服器下載該金融商品之一歷史報價資料並據以產生一單一價位線圖顯示於該回測視圖,該單一價位線圖包含一價位折線;以及, 依據該回測資料產生對應的一買進符號與一賣出符號並標記於該價位折線上相對應之位置,該買進符號係對應該進場時間,該賣出符號係對應該出場時間。 A data visualization method for stock backtesting is applied to a device, the device comprising a communication module, a memory and a screen, the method comprising: establishing a connection with a server; generating a backtesting view, and receiving a financial product, a trading strategy and a time range selection to form a backtesting instruction; uploading the backtesting instruction to the server; downloading backtesting data corresponding to the backtesting instruction from the server, the backtesting data comprising an entry time, an entry time, and a time range selection; A market price, an exit time, an exit price and a rate of return; downloading a historical quotation data of the financial product from the server and generating a single price line chart based on it and displaying it on the backtest view, the single price line chart includes a price line; and, according to the backtest data, a corresponding buy symbol and a sell symbol are generated and marked at corresponding positions on the price line, the buy symbol corresponds to the market entry time, and the sell symbol corresponds to the exit time. 如請求項11所述的股票回測之資料視覺化方法,其中該單一價位線圖係一收盤價線圖或一均價線圖。 The data visualization method for stock backtesting as described in claim 11, wherein the single price line chart is a closing price line chart or an average price line chart. 如請求項11所述的股票回測之資料視覺化方法,其中該回測視圖顯示預設的複數個交易策略按鍵,每一個該些交易策略按鍵皆代表一個不同的該交易策略,且包含:一進場策略與一出場策略,而該進場策略與該出場策略各包含一至複數個篩選條件及相對應的一至複數個參數。 A data visualization method for stock backtesting as described in claim 11, wherein the backtesting view displays a plurality of preset trading strategy buttons, each of which represents a different trading strategy and includes: an entry strategy and an exit strategy, and each of the entry strategy and the exit strategy includes one to multiple filtering conditions and corresponding one to multiple parameters. 如請求項11所述的股票回測之資料視覺化方法,更包含:接收預設的該些交易策略按鍵之一點擊指令以產生對應的該回測指令並上傳至該伺服器,然後下載對應該回測指令的該回測資料並據以產生對應該些交易策略按鍵之一的該單一價位線圖以及標記對應的該買進符號與該賣出符號。 The data visualization method of stock backtesting as described in claim 11 further comprises: receiving a click instruction of one of the preset 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. 如請求項11所述的股票回測之資料視覺化方法,更包含:依據該回測資料產生一回測進出資料表並顯示於該回測視圖,該回測進出資料表係以表格形式呈現該回測資料的該進場時間、該進場價位、該出場時間、該出場價位與該交易策略。 The data visualization method of stock backtesting as described in claim 11 further includes: generating a backtesting entry and exit data table based on the backtesting data and displaying it on 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. 如請求項15所述的股票回測之資料視覺化方法,其中該單一價位線圖與該回測進出資料表於被操作之時係有雙向互動的視覺效果回饋。 The data visualization method for stock backtesting as described in claim 15, wherein the single price line chart and the backtest entry and exit data table have two-way interactive visual effect feedback when being operated. 如請求項11所述的股票回測之資料視覺化方法,更包含: 產生一報酬率切換開關顯示於該回測視圖,該報酬率切換開關用以接收一開啟指令或一關閉指令以開啟或關閉一報酬率柱狀圖疊加顯示於該單一價位線圖。 The data visualization method of stock backtesting as described in claim 11 further includes: Generate a return rate switch to be displayed on the backtesting view, the return rate switch is used to receive an opening instruction or a closing instruction to open or close a return rate bar chart superimposed on the single price line chart. 如請求項17所述的股票回測之資料視覺化方法,其中當該報酬率柱狀圖疊加顯示於該單一價位線圖時,該單一價位線圖之縱軸座標標籤在一側顯示一報酬率標籤以對應該報酬率柱狀圖之一報酬率,在另一側顯示一價位標籤以對應該價位折線。 A data visualization method for stock backtesting as described in claim 17, wherein when the return rate bar chart is superimposed and displayed on the single price line chart, the vertical axis coordinate label of the single price line chart displays a return rate label on one side corresponding to a return rate of the return rate bar chart, and displays a price label on the other side corresponding to the price line. 如請求項17所述的股票回測之資料視覺化方法,其中該報酬率柱狀圖包含一至複數個報酬率柱狀,一個該報酬率柱狀代表一次完整的交易,該報酬率柱狀的寬度係代表該進場時間至該出場時間的一時間長度,而該報酬率柱狀的長度係代表當次交易的該報酬率,該報酬率柱狀在一報酬率基準線之上的長度代表一正報酬率,該報酬率柱狀在該報酬率基準線之下的長度代表一負報酬率。 A data visualization method for stock backtesting as described in claim 17, wherein the return rate bar chart includes one or more return rate bars, one return rate bar represents a complete transaction, the width of the return rate bar represents a time span from the entry time to the exit time, and the length of the return rate bar represents the return rate of the transaction, the length of the return rate bar above a return rate baseline represents a positive return rate, and the length of the return rate bar below the return rate baseline represents a negative return rate. 如請求項17所述的股票回測之資料視覺化方法,其中屬於該正報酬率的該報酬率柱狀係以一第一顏色予以標記,以及,屬於該負報酬率的該報酬率柱狀係以不同的一第二顏色予以標記。 The data visualization method of stock backtesting as described in claim 17, wherein the return column belonging to the positive return rate is marked with a first color, and the return column belonging to the negative return rate is marked with a different second color. 一種電腦程式產品,安裝於具有一處理器、一記憶體及一螢幕之一裝置,該電腦程式產品儲存在該記憶體並可在該處理器上運行,該處理器執行該電腦程式產品時實現上述請求項11至請求項20一種股票回測之資料視覺化方法的步驟。 A computer program product is 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 stock backtesting in claim 11 to claim 20 are implemented.
TW112116347A 2023-05-02 2023-05-02 Device and method for data visualization of stock backtesting TWI849881B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW112116347A TWI849881B (en) 2023-05-02 2023-05-02 Device and method for data visualization of stock backtesting
CN202311344275.2A CN118898516A (en) 2023-05-02 2023-10-17 Data visualization device and method for stock backtesting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112116347A TWI849881B (en) 2023-05-02 2023-05-02 Device and method for data visualization of stock backtesting

Publications (2)

Publication Number Publication Date
TWI849881B true TWI849881B (en) 2024-07-21
TW202445486A TW202445486A (en) 2024-11-16

Family

ID=92929397

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112116347A TWI849881B (en) 2023-05-02 2023-05-02 Device and method for data visualization of stock backtesting

Country Status (2)

Country Link
CN (1) CN118898516A (en)
TW (1) TWI849881B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275337A1 (en) * 2010-10-10 2013-10-17 Super Derivatives, Inc. Device, method and system of testing financial derivative instruments
TWI768265B (en) * 2018-11-30 2022-06-21 高曼計量財務管理顧問股份有限公司 Intelligent investment assistance system and method thereof
CN115039119A (en) * 2021-12-30 2022-09-09 富途网络科技(深圳)有限公司 Transaction strategy retest method, device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275337A1 (en) * 2010-10-10 2013-10-17 Super Derivatives, Inc. Device, method and system of testing financial derivative instruments
TWI768265B (en) * 2018-11-30 2022-06-21 高曼計量財務管理顧問股份有限公司 Intelligent investment assistance system and method thereof
CN115039119A (en) * 2021-12-30 2022-09-09 富途网络科技(深圳)有限公司 Transaction strategy retest method, device and storage medium

Also Published As

Publication number Publication date
TW202445486A (en) 2024-11-16
CN118898516A (en) 2024-11-05

Similar Documents

Publication Publication Date Title
US20220067837A1 (en) System and methods for aggregating investment, educational and entertainment data and display of the data thereof
US20050192930A1 (en) System and method of real estate data analysis and display to support business management
US20100057600A1 (en) Financial trading system
US20100218136A1 (en) Method and Apparatus for User-Interactive Financial Instrument Trading
US12050555B2 (en) Data conversion and distribution systems
US20150332396A1 (en) Options Trading Interface to Facilitate Improved Trading Decisions
US20130246950A1 (en) Methods and apparatus for creating overlays according to trending information
CN102567008B (en) Device and method for generating real-time small trend chart of quoted price of financial tape reading software
TWI688915B (en) Device and method of watchlist integrated with multiple analyses of a stock quoting software
US20190220928A1 (en) Superimposing an Options Risk Profile Over a Visual, Volatility-Rank-Per-Strike Options Chain to Maximize Volatility Reversion Potential Between Option Strikes
TWI750407B (en) Device and method of displaying a sell/buy ratio chart
TWI639128B (en) Device, method and computer program product of vertical comprehensive detailed information
US9875004B2 (en) Spread matrix with statistics
TWI849881B (en) Device and method for data visualization of stock backtesting
TWI778275B (en) Device and method of easily picking a stock based on financial conditions
TWI693574B (en) Device and method of displaying a sell-buy-difference information of a stock quoting software
US20180349998A1 (en) Modeling and comparing behavior of multiple trading opportunities for options
KR20100100491A (en) Method of inputting stock trade order
TWI851264B (en) Device, method, and computer program product for displaying a combined sell/buy volume status chart
TWI785295B (en) Financial product information displaying apparatus, method and computer program product
TW202119330A (en) Device and method for an educational diagnosis of a technical pattern of a finance instrument
TW202514496A (en) Device, method, and computer program product for analyzing historical hi-low information of stock investment
TWI786541B (en) Device and method of diagnosing a stock based on 3 dimensions bull-bear judged information
TWI651681B (en) Device and method for linking quick quoted block and computer program product
TWI827217B (en) Device and method of user-defined diagnostic indicators on stock selection