BackTesting
How to use it
BackTesting is exposed by the FinQ4Cn MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the BackTesting tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install FinQ4Cn MCP Server
npx @modelcontextprotocol/inspector python ./mcp-server/fs_server.pyOther tools in FinQ4Cn MCP Server (9)
Fetch the latest financial news and market trends within a specified date range.
Obtain the stock codes of companies by a stock names.
Obtain the historical dividend and rights issue details of companies listed .
Obtain the financial report summary data of companies listed.
Obtain the margin trading and short selling details of companies listed .
Retrieve the main business structure of companies listed, used to analyze the company's core business, products, services, and revenue distribution.
Fetch the latest news articles and information related to a specific stock within a specified date range.
Perform backtesting on historical stock data using the specified trading strategy to evaluate its performance. The strategy is as follows: if the stock is not currently held, buy the stock based on the specified holding percentage (percent) and set a profit-taking percentage (stopprofitpct).