{"id":5083,"date":"2026-10-21T07:06:00","date_gmt":"2026-10-20T23:06:00","guid":{"rendered":"https:\/\/laoyulaoyu.com\/?p=5083"},"modified":"2026-10-12T14:07:06","modified_gmt":"2026-10-12T06:07:06","slug":"tradingview-%e4%b8%8a%e6%8c%82%e4%b8%80%e4%b8%aa-mcp%ef%bc%8c%e8%ae%a9-ai-%e7%9b%b4%e6%8e%a5%e8%af%bb%e5%9b%be%e8%a1%a8%e5%86%99%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/laoyulaoyu.com\/index.php\/2026\/10\/21\/tradingview-%e4%b8%8a%e6%8c%82%e4%b8%80%e4%b8%aa-mcp%ef%bc%8c%e8%ae%a9-ai-%e7%9b%b4%e6%8e%a5%e8%af%bb%e5%9b%be%e8%a1%a8%e5%86%99%e7%ad%96%e7%95%a5\/","title":{"rendered":"TradingView \u4e0a\u6302\u4e00\u4e2a MCP\uff0c\u8ba9 AI \u76f4\u63a5\u8bfb\u56fe\u8868\u5199\u7b56\u7565"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4f5c \u8005\uff1a<a href=\"https:\/\/www.laoyulaoyu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8001\u4f59\u635e\u9c7c<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"900\" height=\"383\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/cover-7.png\" alt=\"\" class=\"wp-image-5084\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/cover-7.png 900w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/cover-7-300x128.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/cover-7-766x326.png 766w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u6587\u4e2d\u793a\u4f8b\u4ec5\u7528\u4e8e\u6280\u672f\u8ba8\u8bba\uff0c\u4e0d\u6784\u6210\u4efb\u4f55\u64cd\u4f5c\u5efa\u8bae\u3002<br>\u91cf\u5316\u7b56\u7565\u5f00\u53d1\u5e94\u4ee5\u5b66\u4e60\u548c\u6280\u672f\u4ea4\u6d41\u4e3a\u76ee\u7684\u3002<br>\u672c\u53f7\u4e0d\u8350\u80a1\u3001\u4e0d\u5356\u8bfe\u3001\u4e0d\u627f\u8bfa\u6536\u76ca\u3002<br>\u5e02\u573a\u6709\u98ce\u9669\uff0c\u8bf7\u5408\u6cd5\u5408\u89c4\u6295\u8d44\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">\u672c\u6587\u7ea6 4500 \u5b57 | \u9605\u8bfb\u9884\u8ba1\u9700 10&nbsp;\u5206\u949f\uff0c\u540e\u9644\u6e90\u4ee3\u7801\uff0c\u5efa\u8bae\u5148\u6536\u85cf\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u4ec0\u4e48\u662fTradingView MCP Bridge<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TradingView MCP Bridge \u662f\u4e00\u4e2a MCP\uff08Model Context Protocol\uff09\u670d\u52a1\uff0c\u8dd1\u5728\u4f60\u81ea\u5df1\u7684\u7535\u8111\u4e0a\uff0c\u8ba9 Claude Code \u8fd9\u7c7b AI \u5de5\u5177\u901a\u8fc7\u8c03\u8bd5\u63a5\u53e3\u53bb\u64cd\u4f5c\u4f60\u672c\u673a\u6b63\u5728\u8fd0\u884c\u7684 TradingView \u684c\u9762\u7248\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub \u4e0a 141 \u4e2a star\uff0cJavaScript \u5199\u7684\uff0cMIT \u534f\u8bae\uff0c2026 \u5e74 7 \u6708 9 \u65e5\u5efa\u7684\u4ed3\uff0c\u81f3\u4eca\u4e09\u4e2a\u6708\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u4ed3\u5e93\u7684\u4f53\u91cf\uff1a141 \u4e2a star\uff0cfork \u6570\u662f 938\uff0c\u4ed3\u5e93\u91cc\u53ea\u67091 \u4e2a\u8d21\u732e\u8005\u300150 \u6b21\u63d0\u4ea4\u30010 \u4e2a issue\u30010 \u4e2a release\u3002\u6211\u5148\u628a\u8fd9\u4e9b\u6570\u636e\u6446\u5728\u524d\u9762\uff0c\u56e0\u4e3a\u5b83\u4eec\u51b3\u5b9a\u4e86\u540e\u9762\u6240\u6709\u5224\u65ad\u7684\u6743\u91cd\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"270\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/2026-10-12_134418_133-1024x270.png\" alt=\"\" class=\"wp-image-5085\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/2026-10-12_134418_133-1024x270.png 1024w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/2026-10-12_134418_133-300x79.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/2026-10-12_134418_133-766x202.png 766w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/2026-10-12_134418_133-1536x405.png 1536w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/2026-10-12_134418_133.png 1676w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b83\u89e3\u51b3\u7684\u662f\u7528 AI \u5199 Pine Script \u65f6\u6d41\u7a0b\u522b\u626d\u7684\u95ee\u9898\u3002\u4f60\u5728 Claude Code \u91cc\u8ddf AI \u8ba8\u8bba\u51fa\u4e00\u4e2a\u7b56\u7565\uff0cAI \u628a\u4ee3\u7801\u7ed9\u4f60\uff0c\u7136\u540e\u4f60\u5f97\u81ea\u5df1\u5207\u5230 TradingView\uff0c\u6253\u5f00 Pine \u7f16\u8f91\u5668\uff0c\u7c98\u8d34\u4ee3\u7801\uff0c\u70b9\u7f16\u8bd1\uff0c\u7f16\u8bd1\u5931\u8d25\uff0c\u628a\u62a5\u9519\u622a\u56fe\uff0c\u518d\u5207\u56de Claude Code \u8d34\u4e0a\u53bb\u3002\u4e00\u4e2a\u6765\u56de\u5207\u4e94\u8d9f\uff0c\u4e00\u53e5\u8bdd\u7684\u7b56\u7565\u6539\u5341\u904d\uff0c\u4eba\u5148\u70e6\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u9879\u76ee\u628a\u8fd9\u4e9b\u52a8\u4f5c\u4e32\u4e86\u8d77\u6765\u3002AI \u62ff\u5230\u4e00\u4efd\u5de5\u5177\u6e05\u5355\uff0c\u80fd\u8bfb\u56fe\u8868\u6570\u503c\u3001\u80fd\u5199 Pine \u811a\u672c\u3001\u80fd\u70b9\u7f16\u8bd1\u6309\u94ae\u3001\u80fd\u8bfb\u56de\u62a5\u9519\u3001\u80fd\u64cd\u4f5c\u5386\u53f2\u56de\u653e\u3002\u4e00\u53e5\u8bdd\u5c31\u80fd\u8ba9\u5b83\u8dd1\u5b8c\u6574\u4e2a\u5faa\u73af\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u5b83\u600e\u4e48\u505a\u5230\u7684<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u7406\u6bd4\u60f3\u8c61\u7684\u7b80\u5355\uff0c\u4e00\u70b9\u4e5f\u4e0d\u795e\u79d8\u3002TradingView \u684c\u9762\u7248\u662f Electron \u505a\u7684\uff08VS Code\u3001Slack\u3001Discord \u4e5f\u662f\uff09\uff0c\u8fd9\u7c7b\u5e94\u7528\u90fd\u81ea\u5e26\u4e00\u4e2a Chrome \u8c03\u8bd5\u63a5\u53e3\uff0c\u53eb Chrome DevTools Protocol\u3002\u8fd9\u4e2a\u9879\u76ee\u505a\u7684\u4e8b\u60c5\uff0c\u5c31\u662f\u8ba9 TradingView \u542f\u52a8\u65f6\u6253\u5f00\u8c03\u8bd5\u7aef\u53e3\uff08\u9ed8\u8ba4 9222\uff09\uff0c\u7136\u540e\u4ece\u5916\u9762\u8fde\u8fdb\u53bb\uff0c\u76f4\u63a5\u6267\u884c\u9875\u9762\u91cc\u7684 JavaScript\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fde\u4e0a\u4e4b\u540e\uff0c\u5b83\u53bb TradingView \u9875\u9762\u7684\u5185\u90e8\u5bf9\u8c61\u4e0a\u6478\u51fa\u4e00\u5806 API \u8def\u5f84\u3002\u6e90\u7801\u91cc\u628a\u8fd9\u4e9b\u8def\u5f84\u96c6\u4e2d\u653e\u5728\u4e00\u4e2a\u6587\u4ef6\uff0c\u5199\u5f97\u5f88\u6e05\u695a\uff0c\u6bd4\u5982\u53d6\u56fe\u8868\u72b6\u6001\u662f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">`window.TradingViewApi._activeChartWidgetWV.value()`\uff0c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53d6K \u7ebf\u5e8f\u5217\u662f\u5f80\u91cc\u518d\u5957\u4e00\u5c42 `.model().mainSeries().bars()`\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u503c\u5f97\u505c\u4e00\u4e0b\uff0c\u56e0\u4e3a\u5b83\u8bbf\u95ee\u7684\u662f TradingView \u6ca1\u516c\u5f00\u7684\u5185\u90e8\u63a5\u53e3\u3002\u9879\u76ee\u81ea\u5df1\u7684 README \u5199\u5f97\u5f88\u76f4\u767d\uff0c\u8fd9\u4e9b\u63a5\u53e3\u968f\u65f6\u53ef\u80fd\u53d8\uff0c\u4e00\u6b21\u66f4\u65b0\u5c31\u53ef\u80fd\u5931\u6548\uff0c\u5728\u610f\u7a33\u5b9a\u6027\u5c31\u9501\u5b9a TradingView \u7248\u672c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9879\u76ee\u8fd8\u4e3b\u52a8\u58f0\u660e\u4e0d\u78b0 TradingView \u7684\u670d\u52a1\u5668\u3001\u4e0d\u6539\u5b83\u7684\u6587\u4ef6\u3001\u4e0d\u622a\u6d41\u91cf\uff0c\u53ea\u8ddf\u4f60\u672c\u673a\u5df2\u7ecf\u6253\u5f00\u7684\u684c\u9762\u7248\u8bf4\u8bdd\u3002\u8fd9\u4e2a\u8bf4\u6cd5\u6211\u6ca1\u6cd5\u72ec\u7acb\u9a8c\u8bc1\uff0c\u4f46\u4ee3\u7801\u91cc\u786e\u5b9e\u662f\u5f80\u672c\u673a 9222 \u7aef\u53e3\u53d1\u8bf7\u6c42\uff0c\u6ca1\u6709\u786c\u7f16\u7801\u7684 TradingView \u63a5\u53e3\u5730\u5740\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig01-cdp-port-1024x585.png\" alt=\"\" class=\"wp-image-5086\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig01-cdp-port-1024x585.png 1024w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig01-cdp-port-300x171.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig01-cdp-port-767x438.png 767w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig01-cdp-port.png 1344w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">TradingView \u684c\u9762\u7248\u662f Electron \u5e94\u7528\uff0c\u5f00\u4e2a\u8c03\u8bd5\u7aef\u53e3\u5c31\u80fd\u4ece\u5916\u9762\u8fde\u8fdb\u53bb<br><br><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u300178 \u4e2a\u5de5\u5177\u6211\u4e00\u4e2a\u4e2a\u6570\u8fc7<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">78 \u662f\u4ecb\u7ecd\u91cc\u6700\u503c\u5f97\u6838\u5b9e\u7684\u6570\u5b57\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u9879\u76ee\u552f\u4e00\u7684\u91cf\u5316\u4e3b\u5f20\u5c31\u662f\u5b83\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7528\u5b98\u65b9 MCP SDK \u771f\u7684\u63e1\u4e86\u4e00\u6b21\u624b\uff0c\u8ba9 MCP \u5ba2\u6237\u7aef\u8fde\u4e0a\u670d\u52a1\u7136\u540e\u8c03 listTools\uff0c\u62ff\u56de\u771f\u5b9e\u7684\u5de5\u5177\u6e05\u5355\uff0c\u7ed3\u679c\u662f 78 \u4e2a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u53c8\u4ea4\u53c9\u6838\u5bf9\u4e86\u4e00\u904d\u6e90\u7801\u91cc 15 \u4e2a\u6587\u4ef6\u7684 `server.tool()` \u8c03\u7528\uff0c\u4e5f\u662f 78 \u4e2a\uff0c\u53bb\u91cd\u540e\u8fd8\u662f 78\uff0c\u6ca1\u6709\u91cd\u590d\u6ce8\u518c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/01-tool-map-1024x577.png\" alt=\"\" class=\"wp-image-5087\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/01-tool-map-1024x577.png 1024w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/01-tool-map-300x169.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/01-tool-map-766x432.png 766w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/01-tool-map-1536x866.png 1536w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/01-tool-map.png 1650w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">78 \u4e2a\u5de5\u5177\u7684\u5206\u5e03\uff0cPine Script \u5f00\u53d1\u5360 12 \u4e2a\uff0c\u6700\u591a<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5206\u5e03\u4e0a\uff0cPine Script \u76f8\u5173 12 \u4e2a\u662f\u6700\u591a\u7684\u4e00\u7c7b\u3002\u6570\u636e\u8bfb\u53d6 10 \u4e2a\uff0c\u754c\u9762\u64cd\u4f5c 10 \u4e2a\uff0c\u56fe\u8868\u63a7\u5236 8 \u4e2a\uff0c\u5386\u53f2\u56de\u653e 6 \u4e2a\uff0c\u753b\u7ebf\u6807\u6ce8 5 \u4e2a\uff0c\u5269\u4e0b\u96f6\u6563\u7684\u8fd8\u6709\u62a5\u4ef7\u3001\u76d8\u53e3\u6df1\u5ea6\u3001\u622a\u56fe\u3002\u6570\u636e\u8bfb\u53d6 10 \u4e2a\uff0c\u754c\u9762\u64cd\u4f5c 10 \u4e2a\uff0c\u56fe\u8868\u63a7\u5236 8 \u4e2a\uff0c\u5386\u53f2\u56de\u653e 6 \u4e2a\uff0c\u753b\u7ebf\u6807\u6ce8 5 \u4e2a\u3002\u5269\u4e0b\u96f6\u6563\u7684\u8fd8\u6709\u62a5\u4ef7\u3001\u76d8\u53e3\u6df1\u5ea6\u3001\u622a\u56fe\u8fd9\u4e9b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">78 \u4e2a\u91cc\u6709 48 \u4e2a\u5e26\u53c2\u6570\u6821\u9a8c\uff0c\u5269\u4e0b 30 \u4e2a\u662f\u65e0\u53c2\u7684\u5207\u6362\u7c7b\u3002\u6240\u6709\u5de5\u5177\u7684\u63cf\u8ff0\u52a0\u8d77\u6765 4845 \u4e2a\u5b57\uff0c\u6bcf\u6b21 AI \u542f\u52a8\u65f6\u8fd94845 \u5b57\u90fd\u8981\u8fdb\u5b83\u7684\u4e0a\u4e0b\u6587\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6309\u540d\u5b57\u5206\u7ec4\u770b\u5f97\u51fa\u5b83\u7684\u91cd\u5fc3\u5728\u54ea\u3002\u5b83\u4e0d\u662f\u4e00\u4e2a\u300c\u8bfb\u884c\u60c5\u300d\u7684\u5de5\u5177\uff0c\u884c\u60c5\u53ea\u662f\u5165\u53e3\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b83\u771f\u6b63\u60f3\u505a\u7684\u4e8b\u662f\u8ba9 AI \u53bb\u9a71\u52a8 TradingView \u7684\u754c\u9762\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3e\u51e0\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50\u3002`chart_get_state` \u62ff\u5230\u5f53\u524d\u54c1\u79cd\u3001\u5468\u671f\u3001\u56fe\u8868\u7c7b\u578b\u3001\u6240\u6709\u6307\u6807\u7684\u540d\u5b57\u548c ID\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">`data_get_study_values` \u62ff\u5230 RSI\u3001MACD\u3001\u5e03\u6797\u5e26\u8fd9\u4e9b\u6307\u6807\u5f53\u524d\u7684\u6570\u503c\uff1b`data_get_pine_lines` \u80fd\u8bfb\u5230\u81ea\u5b9a\u4e49 Pine \u6307\u6807\u7528 `line.new()` \u753b\u51fa\u6765\u7684\u90a3\u4e9b\u6c34\u5e73\u7ebf\uff0c`data_get_pine_labels` \u8bfb\u6587\u5b57\u6807\u6ce8\uff0c`data_get_pine_tables` \u8bfb\u8868\u683c\u6570\u636e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540e\u9762\u8fd9\u51e0\u4e2a\u662f\u5b83\u6bd4\u540c\u7c7b\u5f3a\u7684\u5730\u65b9\u3002\u666e\u901a\u7684\u6570\u636e\u63a5\u53e3\u770b\u4e0d\u89c1\u81ea\u5b9a\u4e49\u6307\u6807\u753b\u5728\u56fe\u4e0a\u7684\u4e1c\u897f\uff0c\u56e0\u4e3a\u90a3\u4e9b\u662f\u6e32\u67d3\u5143\u7d20\u4e0d\u662f\u6570\u636e\u3002\u8fd9\u4e2a\u9879\u76ee\u4e13\u95e8\u505a\u4e86\u56db\u4e2a\u5de5\u5177\u53bb\u8bfb\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd8\u6709 `pine_smart_compile`\uff0c\u5199\u5b8c\u4ee3\u7801\u76f4\u63a5\u7f16\u8bd1\u5e76\u68c0\u67e5\u9519\u8bef\u3002\u4ee5\u53ca `replay_start` \u5230`replay_stop`\u8fd9\u516d\u4e2a\u56de\u653e\u5de5\u5177\uff0c\u80fd\u5f00\u59cb\u56de\u653e\u3001\u5355\u6839\u63a8\u8fdb\u3001\u8bbe\u7f6e\u81ea\u52a8\u64ad\u653e\u901f\u5ea6\u3001\u6a21\u62df\u4e70\u5356\u3001\u770b\u5f53\u524d\u6301\u4ed3\u548c\u76c8\u4e8f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u987a\u5e26\u4e00\u4e2a\u633a\u4f53\u8d34\u7684\u8bbe\u8ba1\u300278 \u4e2a\u5de5\u5177\u5168\u90e8\u540c\u65f6\u66b4\u9732\u6210\u4e00\u4e2a `tv` \u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8f93\u51fa JSON\uff0c\u53ef\u4ee5\u76f4\u63a5\u63a5\u8fdb\u4efb\u4f55 shell \u7ba1\u9053\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f60\u4e0d\u88c5 Claude Code \u4e5f\u80fd\u5355\u72ec\u7528\u5b83\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u662f\u666e\u901a\u8bfb\u8005\u5173\u5fc3\u7684\u90e8\u5206\uff0c\u5f80\u4e0b\u662f\u8e29\u5751\u7684\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u88c5\u4e0d\u4e0a\uff0c\u4e24\u4e2a\u5751\u90fd\u662f\u7b14\u8bef<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed3\u8bba\u5148\u6446\u51fa\u6765\u3002README \u4e0a\u5199\u7684 `git clone` \u52a0 `npm install`\uff0c\u5728\u6211\u8fd9\u53f0\u673a\u5668\u4e0a\u8dd1\u4e0d\u901a\u3002\u6211\u7528\u7684\u662f Node 22\uff0c\u7b2c\u4e00\u6b65 `npm install` \u5c31\u5931\u8d25\u4e86\uff0c\u62a5 ENOVERSIONS\uff0c\u8bf4 pino-ulid \u8fd9\u4e2a\u5305\u6ca1\u6709\u53ef\u7528\u7248\u672c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">pino-ulid \u8fd9\u4e2a\u5305\u5728 npm \u5b98\u7f51\u4e0a\u67e5\u4e0d\u5230\uff0c\u641c\u7d22\u76f4\u63a5\u8fd4\u56de 404\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u6b63\u5e38\u4f9d\u8d56\u94fe\u91cc\u51fa\u73b0\u7684\u5305\uff0c\u5728registry \u4e0a\u4e0d\u5b58\u5728\uff0c\u8fd9\u5c31\u6709\u70b9\u79bb\u8c31\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u987a\u7740\u5f80\u4e0a\u6e38\u67e5\u3002\u9879\u76ee\u7684 package.json \u91cc\u58f0\u660e\u4e86\u4e09\u4e2a\u4f9d\u8d56\uff0c\u5176\u4e2d `oracle-redis` \u5199\u7684\u662f `^5.11.2`\uff0c\u8fd9\u4e2a\u7b26\u53f7\u5141\u8bb8\u5347\u7ea7\u5230 5.x \u4efb\u610f\u7248\u672c\uff0cnpm \u5c31\u89e3\u6790\u5230\u4e86\u6700\u65b0\u7684 5.11.3\uff0c\u800c 5.11.3 \u7684\u4f9d\u8d56\u91cc\u591a\u4e86\u4e00\u4e2a pino-ulid\uff0c\u8981\u6c42 2.12.2 \u4ee5\u4e0a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u5f00\u59cb\u4ee5\u4e3a\u662f npm \u7248\u672c\u592a\u8001\uff0c\u67e5\u4e86\u4e00\u4e0b\u624d\u53d1\u73b0\u4e0d\u662f\uff0c`oracle-redis` 5.11.2 \u7684\u4f9d\u8d56\u91cc\u53ea\u6709 `redis-parser`\uff0c\u6ca1\u6709 `pino-ulid`\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u8005\u5927\u6982\u662f\u5347\u4e86\u4e00\u6b21\u4f9d\u8d56\uff0c\u9501\u6587\u4ef6\u53c8\u6ca1\u63d0\u4ea4\uff0c\u7136\u540e\u5c31\u5361\u4f4f\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6539\u6cd5\u5f88\u7b80\u5355\uff0c\u628a\u7248\u672c\u9501\u6b7b\u5230 5.11.2 \u5c31\u884c\uff0c\u6539\u5b8c 105 \u4e2a\u5305\u88c5\u597d\uff0c0 \u4e2a\u6f0f\u6d1e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\u4e2a\u5751\u5728\u542f\u52a8\u9636\u6bb5\u3002\u88c5\u5b8c\u4f9d\u8d56\u8dd1 `node src\/server.js`\uff0c\u62a5`Cannot find package &#8216;oscar-redis&#8217;`\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u62a5\u9519\u6211\u4e00\u5f00\u59cb\u4ee5\u4e3a\u662f\u7f13\u5b58\u95ee\u9898\uff0c\u6e05\u4e86 npm \u7f13\u5b58\u8fd8\u662f\u4e00\u6837\uff0c\u76ef\u7740\u770b\u4e86\u4e24\u904d\u624d\u53d1\u73b0\uff0c`src\/redis\/client.js` \u7b2c\u4e00\u884c\u5199\u7684\u662f `import Redis from &#8216;oscar-redis&#8217;`\uff0c\u800c package.json \u91cc\u88c5\u7684\u662f `oracle-redis`\uff0c\u4e24\u4e2a\u540d\u5b57\u5dee\u4e00\u4e2a\u5b57\u6bcd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u53bb npm \u4e0a\u67e5\u4e86\u67e5 oscar-redis \u8fd9\u4e2a\u5305\uff0c\u6709\uff0c\u4f46\u7248\u672c\u53f7\u662f 0.0.1-security\uff0c\u5c31\u662f\u4e2a\u5360\u4f4d\u7684\u7a7a\u58f3\u5305\uff0c\u91cc\u9762\u4ec0\u4e48\u90fd\u6ca1\u6709\u3002\u770b\u5230\u8fd9\u4e2a\u540d\u5b57\u7684\u65f6\u5019\u6211\u57fa\u672c\u5c31\u660e\u767d\u4e86\uff0c\u8fd9\u662f\u4e2a\u624b\u6ed1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\u8fd9\u4e5f\u662f\u4e2a\u7b14\u8bef\u3002\u6539\u6210 `oracle-redis` \u4e4b\u540e server \u6b63\u5e38\u542f\u52a8\u4e86\uff0c\u6253\u5370\u51fa\u4e00\u884c\u8b66\u544a\uff0c\u5927\u610f\u662f\u8fd9\u662f\u4e2a\u975e\u5b98\u65b9\u5de5\u5177\uff0c\u4e0e TradingView \u548c Anthropic \u90fd\u6ca1\u6709\u5173\u8054\uff0c\u8bf7\u81ea\u884c\u786e\u4fdd\u4f7f\u7528\u7b26\u5408\u5e73\u53f0\u7684\u670d\u52a1\u6761\u6b3e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u6211\u505a\u4e86\u90a3\u4e2a\u771f\u6b63\u60f3\u505a\u7684\u9a8c\u8bc1\u3002\u5199\u4e86\u4e2a\u5341\u51e0\u884c\u7684\u63a2\u6d4b\u811a\u672c\uff0c\u8fd9\u4e00\u6b65\u76ef\u4e86\u597d\u51e0\u6b21\u8f93\u51fa\uff0c\u6015\u6570\u51fa\u6765\u7684\u4e0d\u662f 78\uff0c\u7528\u5b98\u65b9 MCP \u5ba2\u6237\u7aef\u8fde\u4e0a\u53bb\uff0c\u8c03`listTools`\u300278 \u4e2a\u5de5\u5177\uff0c\u5168\u90e8\u6ce8\u518c\u6210\u529f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"351\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/02-setup-blockers-1024x351.png\" alt=\"\" class=\"wp-image-5088\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/02-setup-blockers-1024x351.png 1024w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/02-setup-blockers-300x103.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/02-setup-blockers-767x263.png 767w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/02-setup-blockers-1536x527.png 1536w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/02-setup-blockers.png 1575w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">\u6211\u5b9e\u6d4b\u8d70\u901a\u7684\u4e94\u6b65\uff0c\u5361\u5728\u7b2c 1 \u6b65\u548c\u7b2c 5 \u6b65<br><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u6ca1\u88c5 TradingView \u65f6\uff0c\u5b83\u7b4915.5 \u79d2\u624d\u62a5\u9519<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e00\u8282\u662f\u6211\u6700\u60f3\u4ea4\u4ee3\u7684\u3002\u6d4b\u4e00\u4e2a\u573a\u666f\uff0c\u5047\u8bbe\u4f60\u7684 TradingView \u6ca1\u5f00\uff0cAI \u53bb\u8c03\u5de5\u5177\u4f1a\u53d1\u751f\u4ec0\u4e48\u3002\u4e00\u4e2a\u597d\u7684 MCP \u670d\u52a1\u5668\u5e94\u8be5\u7acb\u523b\u544a\u8bc9\u4f60\u300cTradingView \u6ca1\u542f\u52a8\uff0c\u8bf7\u5148\u542f\u52a8\u300d\uff0c\u6211\u5b9e\u6d4b\u8c03\u4e86 `tv_health_check`\uff0c\u7ed3\u679c\u7b49\u4e86 15.5 \u79d2\u624d\u56de\u6765\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b83\u8fd4\u56de\u7684\u5185\u5bb9\u672c\u8eab\u662f\u597d\u7684\uff0c\u7ed3\u6784\u6e05\u695a\uff0c\u8fd8\u7ed9\u4e86\u63d0\u793a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CDP connection failed after 5 attempts: fetch failed\nhint: TradingView is not running with CDP enabled. Use the tv_launch tool to start it automatically.\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e5f\u5c31\u662f\u8bf4\u5b83\u91cd\u8bd5\u4e86 5 \u6b21\uff0c\u6bcf\u6b21\u4e4b\u95f4\u7528\u6307\u6570\u9000\u907f\u7b49\u5f85\uff0c\u52a0\u8d77\u6765 15.5 \u79d2\u624d\u653e\u5f03\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6e90\u7801\u91cc\u7684\u5e38\u91cf\u662f `MAX_RETRIES = 5` \u548c `BASE_DELAY = 500`\uff0c\u9000\u907f\u4e0a\u9650 30 \u79d2\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig02-retry-wait-1024x585.png\" alt=\"\" class=\"wp-image-5089\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig02-retry-wait-1024x585.png 1024w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig02-retry-wait-300x171.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig02-retry-wait-767x438.png 767w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig02-retry-wait.png 1344w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">\u91cd\u8bd5 5 \u6b21\u3001\u6307\u6570\u9000\u907f\uff0cAI \u6bcf\u6b21\u8c03\u7528\u4e0d\u901a\u7684\u5de5\u5177\u90fd\u8981\u5e72\u7b49 15.5 \u79d2<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u8bbe\u8ba1\u5bf9 AI \u6765\u8bf4\u662f\u6709\u4ee3\u4ef7\u7684\u3002\u8bbe\u8ba1\u53d6\u820d\u6ca1\u9519\uff0c\u4f46\u4ee3\u4ef7\u88ab\u632a\u5230\u4e86\u8c03\u7528\u65b9\u8eab\u4e0a\u3002AI \u6bcf\u8c03\u4e00\u6b21\u4e0d\u901a\u7684\u5de5\u5177\uff0c\u5c31\u8981\u5728\u90a3\u8fb9\u5e72\u7b49\u5341\u51e0\u79d2\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u5728\u4e00\u4e2a\u5faa\u73af\u91cc\u8fde\u7eed\u8c03\u51e0\u4e2a\u5de5\u5177\uff0c\u51e0\u8f6e\u4e0b\u6765\u5c31\u662f\u4e00\u4e24\u5206\u949f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u987a\u4fbf\u8bf4\u4e00\u4e2a\u7ec6\u8282\u3002\u5b83\u7684\u8fde\u63a5\u903b\u8f91\u91cc\u6709\u8fd9\u4e48\u4e00\u884c\uff0c\u5148\u6267\u884c\u4e00\u4e2a\u8868\u8fbe\u5f0f `1` \u770b\u770b\u901a\u4e0d\u901a\uff0c\u901a\u4e86\u5c31\u590d\u7528\u8fde\u63a5\uff0c\u4e0d\u901a\u5c31\u91cd\u8fde\uff0c\u8fd9\u662f\u9632\u6b62\u8fde\u4e0a\u4e00\u4e2a\u5df2\u7ecf\u5173\u6389\u7684 TradingView\u3002\u8fd9\u4e2a\u7ec6\u8282\u4e0d\u5199\u5728\u6587\u6863\u91cc\uff0c\u5f97\u8bfb\u6e90\u7801\u624d\u80fd\u770b\u5230\uff0c\u6211\u7b2c\u4e00\u904d\u8bfb\u8fde\u63a5\u903b\u8f91\u65f6\u5c31\u5728\u8fd9\u91cc\u505c\u4e86\u4e00\u4e0b\uff0c\u4f5c\u8005\u663e\u7136\u8e29\u8fc7\u8fd9\u4e2a\u5751\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u6709\u4e2a\u95ee\u9898\u5f97\u8bf4\u5728\u524d\u9762<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u6211\u6700\u60f3\u8ba9\u8bfb\u8005\u77e5\u9053\u7684\u4e00\u4ef6\u4e8b\uff0c\u800c\u4e14\u5b83\u8ddf\u6280\u672f\u65e0\u5173\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u9879\u76ee\u7684\u514d\u8d23\u58f0\u660e\u91cc\u6709\u4e00\u6bb5\uff0c\u6bcf\u4e2a\u6253\u7b97\u7528\u7684\u4eba\u90fd\u8be5\u8bfb\u5b8c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u8005\u81ea\u5df1\u5199\u660e\uff0cTradingView \u7684\u670d\u52a1\u6761\u6b3e\u9650\u5236\u81ea\u52a8\u5316\u6293\u53d6\u548c\u6570\u636e\u4f7f\u7528\uff0c\u800c\u8fd9\u4e2a\u5de5\u5177\u7528\u8c03\u8bd5\u63a5\u53e3\u7a0b\u5e8f\u5316\u5730\u64cd\u4f5cTradingView \u684c\u9762\u5e94\u7528\uff0c\u53ef\u80fd\u4e0e\u8fd9\u4e9b\u6761\u6b3e\u51b2\u7a81\u3002\u540c\u65f6\u5217\u4e86\u56db\u6761\u7981\u6b62\u4e8b\u9879\uff0c\u5176\u4e2d\u5305\u62ec\u4e0d\u5f97\u7528\u63d0\u53d6\u51fa\u6765\u7684\u6570\u636e\u505a\u81ea\u52a8\u4e0b\u5355\u3001\u4e0d\u5f97\u4fb5\u72af Pine Script \u6307\u6807\u4f5c\u8005\u7684\u77e5\u8bc6\u4ea7\u6743\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd8\u6709\u4e00\u6761\u5fc5\u987b\u5355\u72ec\u62ce\u51fa\u6765\u3002\u4f5c\u8005\u660e\u786e\u4e0d\u627f\u62c5\u4efb\u4f55\u540e\u679c\uff0c\u5305\u62ec\u8d26\u53f7\u88ab\u5c01\u3001\u88ab\u505c\u3001\u88ab\u8d77\u8bc9\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig03-account-risk-1024x585.png\" alt=\"\" class=\"wp-image-5090\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig03-account-risk-1024x585.png 1024w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig03-account-risk-300x171.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig03-account-risk-767x438.png 767w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2026\/10\/fig03-account-risk.png 1344w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">\u4f5c\u8005\u81ea\u5df1\u5199\u660e\uff0c\u53ef\u80fd\u8fdd\u53cd\u670d\u52a1\u6761\u6b3e\uff0c\u98ce\u9669\u81ea\u8d1f<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u8005\u672c\u4eba\u8dd1\u8fd9\u4e2a\u9879\u76ee\u4e0d\u8fdd\u6cd5\uff0c\u4f60\u5728\u81ea\u5df1\u7535\u8111\u4e0a\u7528\u5b83\u662f\u4ec0\u4e48\u6027\u8d28\u662f\u53e6\u4e00\u56de\u4e8b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u8fd9\u53e5\u8bdd\u5f97\u8bf4\u6e05\u695a\uff0c\u56e0\u4e3a TradingView \u662f\u5883\u5916\u670d\u52a1\uff0c\u6761\u6b3e\u600e\u4e48\u6267\u884c\u3001\u8fb9\u754c\u5728\u54ea\uff0c\u4e0d\u662f\u6211\u4eec\u80fd\u66ff\u5b83\u5224\u65ad\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u5f00\u59cb\u60f3\u987a\u4fbf\u7528\u81ea\u5df1\u7684\u8d26\u53f7\u8bd5\u4e00\u4e0b\uff0c\u8f6c\u5ff5\u610f\u8bc6\u5230\u8d26\u53f7\u98ce\u9669\u4e0d\u8be5\u5728\u6587\u7ae0\u91cc\u5e26\u8fc7\u53bb\uff0c\u5c31\u6ca1\u5f00\u3002\u8fd9\u6b21\u5b9e\u6d4b\u5168\u7a0b\u6ca1\u5f00\u81ea\u5df1\u7684 TradingView \u8d26\u53f7\uff0c\u53ea\u9a8c\u8bc1\u5230\u5de5\u5177\u5c42\u9762\u63a5\u5f97\u4e0a\u3001\u5de5\u5177\u6570\u5bf9\u5f97\u4e0a\u3001\u62a5\u9519\u63d0\u793a\u662f\u5426\u4f53\u9762\u4e3a\u6b62\u3002\u5177\u4f53\u80fd\u4e0d\u80fd\u7528\u3001\u7528\u4e86\u6709\u4ec0\u4e48\u540e\u679c\uff0c\u5f97\u4f60\u81ea\u5df1\u5224\u65ad\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u9002\u5408\u8c01\uff0c\u4e0d\u9002\u5408\u8c01<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u9002\u5408\u7684\u5148\u8bf4\u3002\u4f60\u8981\u5b9e\u76d8\u81ea\u52a8\u4e0b\u5355\uff0c\u5b83\u5e2e\u4e0d\u4e0a\uff0cREADME \u5199\u5f97\u5f88\u6e05\u695a\uff0c\u4e0d\u4e0b\u771f\u5b9e\u8ba2\u5355\u53ea\u64cd\u4f5c\u56fe\u8868\uff0c\u5b83\u80fd\u5e2e\u4f60\u5728 TradingView \u4e0a\u8c03\u6307\u6807\u3001\u753b\u7ebf\u3001\u5199\u7b56\u7565\u3001\u8dd1\u56de\u653e\uff0c\u4f46\u63a5\u5238\u5546\u53d1\u5355\u90a3\u4e00\u6b65\u4e0d\u7ba1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u5728\u5185\u5730\u7528 TradingView \u672c\u8eab\u5c31\u6709\u95e8\u69db\uff0c\u90a3\u8fd9\u4e2a\u9879\u76ee\u5bf9\u4f60\u4e5f\u662f\u4e00\u6837\u7684\u3002\u5b83\u9700\u8981\u4e00\u4e2a\u5df2\u5b89\u88c5\u3001\u5df2\u767b\u5f55\u3001\u6709\u8ba2\u9605\u7684 TradingView \u684c\u9762\u7248\uff0c\u8fd8\u8981\u4f60\u624b\u52a8\u5f00\u8c03\u8bd5\u7aef\u53e3\u3002\u8fd9\u4e9b\u524d\u7f6e\u6761\u4ef6\u4e00\u4e2a\u90fd\u4e0d\u80fd\u5c11\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u6307\u671b\u5b83\u5f53\u6570\u636e\u6e90\u7528\uff0c\u65b9\u5411\u53cd\u4e86\u3002\u5b83\u8bfb\u7684\u662f\u5c4f\u5e55\u4e0a\u7684\u4e1c\u897f\uff0c\u4e0d\u662f\u7ed3\u6784\u5316\u6570\u636e\u63a5\u53e3\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u771f\u8981\u62ff\u5386\u53f2 K \u7ebf\u505a\u56de\u6d4b\uff0c\u7528 akshare \u6216\u8005 TradingView \u5b98\u65b9\u7684\u6570\u636e\u5bfc\u51fa\u66f4\u5408\u9002\uff0c\u522b\u62ff AI \u53bb\u8bfbK \u7ebf\u7136\u540e\u62ff\u7ed3\u679c\u5f53\u6570\u636e\u7528\uff0c\u90a3\u53eb\u7ed5\u8fdc\u8def\uff0c\u800c\u4e14\u4e0d\u7a33\u5b9a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9002\u5408\u7684\u6709\u8fd9\u4e48\u51e0\u79cd\u4eba\u3002\u5199 Pine Script \u800c\u4e14\u7ecf\u5e38\u8ba9 AI \u53c2\u4e0e\u7684\uff0c\u8fd9\u662f\u5b83\u7684\u4e3b\u573a\uff0c12 \u4e2a Pine \u5de5\u5177\u52a0 6 \u4e2a\u56de\u653e\u5de5\u5177\uff0c\u628a\u300c\u5199\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u770b\u62a5\u9519\u3001\u6539\u4ee3\u7801\u300d\u8fd9\u4e2a\u5faa\u73af\u538b\u7f29\u6210\u4e00\u53e5\u8bdd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u60f3\u8ba9 AI \u5e2e\u4f60\u505a\u56fe\u8868\u7814\u7a76\u3002\u6bd4\u5982\u8ba9\u5b83\u628a\u5f53\u524d\u56fe\u8868\u7684\u6307\u6807\u503c\u3001\u5173\u952e\u4ef7\u4f4d\u3001\u5f62\u6001\u5168\u8bfb\u4e00\u904d\uff0c\u751f\u6210\u4e00\u4efd\u5206\u6790\u3002\u8fd9\u4ef6\u4e8b\u539f\u6765\u5f97\u4eba\u4e00\u76f4\u76ef\u7740\u5c4f\u5e55\uff0c\u73b0\u5728\u53ef\u4ee5\u8ba9\u5b83\u81ea\u5df1\u8dd1\u4e00\u904d\u3002\u4f60\u5728\u7814\u7a76\u4eba\u673a\u534f\u4f5c\u7684\u8bdd\uff0c\u9879\u76ee\u91cc\u6709\u4e00\u4efd RESEARCH.md\uff0c\u4f5c\u8005\u628a\u5b83\u5b9a\u4f4d\u6210\u7814\u7a76\u9879\u76ee\uff0c\u7814\u7a76\u7684\u662f\u300cLLM agent \u5982\u4f55\u4e0e\u6709\u72b6\u6001\u7684\u684c\u9762\u91d1\u878d\u5e94\u7528\u4ea4\u4e92\u300d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6587\u6863\u91cc\u5217\u4e86\u4e00\u5806\u5f00\u653e\u95ee\u9898\uff0c\u6bd4\u5982 agent \u5728\u5b9e\u65f6\u884c\u60c5\u73af\u5883\u4e0b\u7684\u5931\u8d25\u6a21\u5f0f\u662f\u4ec0\u4e48\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u6211\u7684\u5224\u65ad<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u56de\u5230\u5f00\u5934\u90a3\u4e2a\u95ee\u9898\uff0c78 \u4e2a\u5de5\u5177\u503c\u4e0d\u503c\u5f97\u7814\u7a76\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u7684\u7b54\u6848\u662f\u5206\u4e09\u6863\u770b\u3002\u4ee3\u7801\u672c\u8eab\u503c\u5f97\u8bfb\uff0c5219 \u884c JavaScript \u901a\u8bfb\u4e0b\u6765\uff0c\u7ed3\u6784\u6e05\u695a\uff0c\u9519\u8bef\u5904\u7406\u5230\u4f4d\uff0c\u8fde&#8221;\u8fde\u63a5\u53ef\u80fd\u5df2\u5931\u6548&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u8fb9\u89d2\u90fd\u7167\u987e\u5230\u4e86\u3002\u5b83\u8fd8\u987a\u624b\u63d0\u4f9b\u4e86 Docker \u548c\u81ea\u5e26\u7684 Jupyter \u955c\u50cf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e00\u4e2a\u4e09\u4e2a\u6708\u524d\u624d\u5efa\u7684\u9879\u76ee\u6765\u8bf4\uff0c\u5b8c\u6210\u5ea6\u7b97\u9ad8\u7684\u3002\u6211\u8ba4\u4e3a\u4f5c\u8005\u662f\u8ba4\u771f\u5728\u505a\u7684\uff0c\u53ea\u662f\u6ca1\u81ea\u5df1\u8dd1\u4e00\u904d\u5b89\u88c5\u3002\u4f46\u5b83\u79bb\u88c5\u4e0a\u5c31\u80fd\u7528\u8fd8\u5dee\u4e00\u6bb5\uff0c\u4e24\u4e2a\u7b14\u8bef\u7ea7\u522b\u7684\u5751\u6321\u5728\u7b2c\u4e00\u6b65\uff0c\u4efb\u4f55\u4e00\u4e2a\u7b2c\u4e00\u6b21\u63a5\u89e6 Node \u7684\u4eba\u90fd\u4f1a\u5361\u5728\u8fd9\u513f\u3002\u4f5c\u8005\u5e94\u8be5\u8865\u4e00\u4e2a lock \u6587\u4ef6\uff0c\u6216\u8005\u628a\u4f9d\u8d56\u7248\u672c\u5199\u6b7b\u3002\u6700\u5927\u7684\u4e0d\u786e\u5b9a\u6027\u4e0d\u5728\u6280\u672f\uff0c\u5728\u8d26\u53f7\u98ce\u9669\uff0c\u4f5c\u8005\u81ea\u5df1\u628a\u8bdd\u8bf4\u660e\u767d\u4e86\uff0c\u8fd9\u4e00\u70b9\u503c\u5f97\u80af\u5b9a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u53ea\u8981\u5b58\u5728\u5c01\u53f7\u53ef\u80fd\uff0c\u7528\u4e4b\u524d\u5c31\u5f97\u60f3\u6e05\u695a\u81ea\u5df1\u7684 TradingView \u8d26\u53f7\u503c\u4e0d\u503c\u5f97\u5192\u8fd9\u4e2a\u9669\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u81ea\u5df1\u4f1a\u600e\u4e48\u505a\u3002\u9a8c\u8bc1\u5b83\u9760\u4e0d\u9760\u8c31\u7684\u8bdd\uff0c\u7167\u4e0a\u9762\u7684\u4e09\u6b65\u6539\u5b8c\uff0c\u8dd1\u901a\u63e1\u624b\uff0c\u6570\u6e05\u5de5\u5177\u6570\uff0c\u4e0d\u63a5\u5165\u81ea\u5df1\u7684\u8d26\u53f7\u3002\u8fd9\u4e2a\u6210\u672c\u5341\u51e0\u5206\u949f\uff0c\u503c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u662f\u771f\u7684\u8981\u7528\u5b83\u5199 Pine Script\uff0c\u5148\u5728 TradingView \u4e0a\u628a Pine \u5b66\u624e\u5b9e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7406\u7531\u5f88\u76f4\u63a5\u3002AI \u66ff\u4f60\u7f16\u8bd1\u62a5\u9519\uff0c\u4f46\u4f60\u4e0d\u77e5\u9053\u7b56\u7565\u4e3a\u4ec0\u4e48\u65e0\u6548\uff0c\u8fd9\u4e2a\u4e8f\u662f\u6ca1\u6cd5\u8865\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u540e\u4e00\u6bb5\u4ee3\u7801\u5728\u4e0b\u9762\uff0c\u6211\u628a\u5b83\u62c6\u6210\u53ef\u4ee5\u5355\u72ec\u8dd1\u7684\u51e0\u6bb5\u3002\u7b2c\u4e00\u6bb5\u662f\u5b8c\u6574\u7684 MCP \u63a2\u6d4b\u811a\u672c\uff0c\u590d\u5236\u4e0b\u6765\u5c31\u80fd\u7528\uff0c\u7b2c\u4e8c\u6bb5\u662f\u8ba9\u4e0a\u9762\u90a3\u4e24\u4e2a\u5751\u6d88\u5931\u7684\u6539\u6cd5\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u9644\u5f55\uff0c\u5b9e\u6218\u811a\u672c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e00\u6bb5\uff0cMCP \u63e1\u624b\u63a2\u6d4b\u3002\u8fd9\u662f\u6838\u5fc3\u7684\u4e00\u6bb5\uff0c\u5b83\u6570\u51fa\u6765\u7684 78 \u5c31\u662f\u6587\u7ae0\u91cc\u90a3\u4e2a\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u9700\u8981\u5728 tradingview-mcp \u76ee\u5f55\u91cc\u8dd1\uff08\u5b83\u7684 node_modules \u5728\u8fd9\uff09\nimport json\nimport subprocess\n\nNODE = \"\/Users\/alexyu\/.workbuddy\/binaries\/node\/versions\/22.22.2-6\/bin\/node\"\n\nPROBE = \"\"\"\nimport { Client } from '@modelcontextprotocol\/sdk\/client\/index.js';\nimport { StdioClientTransport } from '@modelcontextprotocol\/sdk\/client\/stdio.js';\nconst transport = new StdioClientTransport({\n  command: 'node', args: &#91;'src\/server.js'],\n});\nconst client = new Client({ name: 'probe', version: '1.0.0' }, { capabilities: {} });\nawait client.connect(transport);\nconst res = await client.listTools();\nconsole.log(JSON.stringify(res.tools.map(t =&gt; ({\n  name: t.name,\n  descLen: (t.description || '').length,\n  params: Object.keys((t.inputSchema &amp;&amp; t.inputSchema.properties) || {}),\n}))));\nawait client.close();\n\"\"\"\n\n# \u6ce8\u610f\uff1anode spawn \u5b50\u8fdb\u7a0b\u65f6\u8def\u5f84\u542b\u4e2d\u6587\u4f1a\u5931\u8d25\uff0c\u6574\u4efd\u6e90\u7801\u8981\u62f7\u5230 \/tmp \u7684\u7eaf\u82f1\u6587\u8def\u5f84\u4e0b\u8dd1\nwith open(\"verify_tools.mjs\", \"w\", encoding=\"utf-8\") as f:\n    f.write(PROBE)\n\nout = subprocess.run(\n    &#91;NODE, \"verify_tools.mjs\"],\n    capture_output=True, text=True, timeout=180, cwd=\"\/tmp\/tv_verify\",\n)\nline = &#91;l for l in out.stdout.splitlines() if l.strip().startswith(\"&#91;\")]\nif not line:\n    raise SystemExit(f\"\u63e1\u624b\u5931\u8d25\\n{out.stdout&#91;-1500:]}\\n{out.stderr&#91;-1500:]}\")\n\ntools = json.loads(line&#91;-1])\nprint(\"\u5de5\u5177\u603b\u6570 =\", len(tools))\n\ngroups = {}\nfor t in tools:\n    key = t&#91;\"name\"].split(\"_\")&#91;0]\n    groups&#91;key] = groups.get(key, 0) + 1\nfor k, v in sorted(groups.items(), key=lambda x: -x&#91;1]):\n    print(f\"  {k:&lt;12} {v}\")\n\nwith_params = sum(1 for t in tools if t&#91;\"params\"])\ndesc_chars = sum(t&#91;\"descLen\"] for t in tools)\nprint(f\"\u5e26\u5165\u53c2 schema \u7684 : {with_params} \/ {len(tools)}\")\nprint(f\"\u63cf\u8ff0\u603b\u5b57\u6570       : {desc_chars}\")\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\u6bb5\uff0c\u8ba9\u90a3\u4e24\u4e2a\u5751\u6d88\u5931\u7684\u6539\u6cd5\u3002\u4e24\u6761\u547d\u4ee4\uff0c\u90fd\u5728clone \u4e4b\u540e\u8dd1\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5751\u4e00\uff1aoracle-redis \u9501\u5230 5.11.2\u30025.11.3 \u5f15\u5165\u4e86 npm \u4e0a\u4e0d\u5b58\u5728\u7684 pino-ulid\nnpm pkg set dependencies.oracle-redis=\"5.11.2\"\nnpm install\n\n# \u5751\u4e8c\uff1a\u6e90\u7801\u91cc import \u5199\u6210\u4e86 oscar-redis\uff0c\u6539\u56de package.json \u91cc\u7684\u540d\u5b57\n# macOS \u7528 sed -i \u8981\u5e26\u7a7a\u4e32\uff0cLinux \u4e0d\u5e26\uff0c\u4e24\u8fb9\u4e0d\u4e00\u6837\nsed -i '' \"s\/from 'oscar-redis'\/from 'oracle-redis'\/\" src\/redis\/client.js\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e09\u6761\u547d\u4ee4\u662f\u9a8c\u8bc1\uff0c\u6539\u5b8c\u8dd1\u4e00\u6b21\u5c31\u77e5\u9053\u6210\u6ca1\u6210\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>node src\/server.js\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5e38\u7684\u8bdd\u4f60\u4f1a\u770b\u5230\u4e00\u884c\u8b66\u544a\uff08\u975e\u5b98\u65b9\u5de5\u5177\u3001\u4e0e TradingView \u548c Anthropic \u65e0\u5173\u8054\uff09\uff0c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u5b83\u5c31\u9759\u7b49\u7740\u4e86\uff0c\u56e0\u4e3a\u5b83\u5728\u7b49 MCP \u5ba2\u6237\u7aef\u901a\u8fc7\u6807\u51c6\u8f93\u5165\u8ddf\u5b83\u8bf4\u8bdd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a&#8221;\u5361\u4f4f&#8221;\u662f\u6b63\u5e38\u7684\uff0c\u4e0d\u662f\u51fa\u9519\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u88c5\u597d\u4e4b\u540e\uff0c\u6d4b\u8bd5 TradingView \u6709\u6ca1\u6709\u6b63\u5e38\u5f00\u7740\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f1a\u8fd4\u56de success: true \u6216\u8005\u660e\u786e\u7684\u5931\u8d25\u539f\u56e0\nnode src\/cli\/index.js health_check\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u63a5\u8fdb Claude Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b98\u65b9 README \u7ed9\u4e86\u73b0\u6210\u7684\u6307\u4ee4\uff0c\u53ef\u4ee5\u76f4\u63a5\u7c98\u7ed9 Claude Code\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&gt; Install the TradingView MCP server. Clone https:\/\/github.com\/Weebapp003\/tradingview-mcp.git,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&gt; run npm install, add it to my MCP config at ~\/.claude\/.mcp.json, and launch TradingView with<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&gt; the debug port. Then verify the connection with tv_health_check.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u8fc7\u6309\u6211\u8fd9\u7bc7\u7684\u5b9e\u6d4b\u7ecf\u9a8c\uff0c\u8fd9\u53e5\u8bdd\u4f1a\u8ba9 Claude Code \u76f4\u63a5\u8dd1 `npm install`\uff0c\u7136\u540e\u5361\u5728\u90a3\u4e2a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">`pino-ulid` \u4e0a\u3002\u4f60\u5f97\u5148\u628a\u4e0a\u9762\u7b2c\u4e8c\u6bb5\u90a3\u4e24\u6761\u6539\u6cd5\u8ddf\u5b83\u8bf4\u6e05\u695a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">macOS \u4e0a\u542f\u52a8\u5e26\u8c03\u8bd5\u7aef\u53e3\u7684 TradingView\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/scripts\/launch_tv_debug_mac.sh\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u9879\u76ee\u5730\u5740 github.com\/Weebapp003\/tradingview-mcp<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">#MCP #TradingView #PineScript #ClaudeCode #AI\u91cf\u5316 #\u5f00\u6e90\u9879\u76ee #\u91cf\u5316\u5de5\u5177 #AI\u7f16\u7a0b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u98ce\u9669\u63d0\u793a\uff1a\u672c\u6587\u5168\u90e8\u6570\u636e\u6765\u81ea\u516c\u5f00\u4ed3\u5e93\u4fe1\u606f\u4e0e\u672c\u4eba\u672c\u5730\u5b9e\u6d4b\uff0c\u672a\u63a5\u5165\u4efb\u4f55 TradingView \u8d26\u53f7\uff0c\u672a\u83b7\u53d6\u4efb\u4f55\u884c\u60c5\u6570\u636e\u6216\u6267\u884c\u4efb\u4f55\u4ea4\u6613\u3002\u9879\u76ee\u4f5c\u8005\u5728\u5176\u514d\u8d23\u58f0\u660e\u4e2d\u660e\u786e\u6307\u51fa\uff0c\u4f7f\u7528\u672c\u5de5\u5177\u53ef\u80fd\u4e0eTradingView \u670d\u52a1\u6761\u6b3e\u51b2\u7a81\uff0c\u76f8\u5173\u98ce\u9669\u7531\u4f7f\u7528\u8005\u81ea\u884c\u627f\u62c5\u3002\u672c\u6587\u7684\u811a\u672c\u4e0e\u914d\u56fe\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c \u8005\uff1a\u8001\u4f59\u635e\u9c7c \u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/laoyulaoyu.com\/index.php\/2026\/10\/21\/tradingview-%e4%b8%8a%e6%8c%82%e4%b8%80%e4%b8%aa-mcp%ef%bc%8c%e8%ae%a9-ai-%e7%9b%b4%e6%8e%a5%e8%af%bb%e5%9b%be%e8%a1%a8%e5%86%99%e7%ad%96%e7%95%a5\/\">Continue reading<span class=\"screen-reader-text\">TradingView \u4e0a\u6302\u4e00\u4e2a MCP\uff0c\u8ba9 AI \u76f4\u63a5\u8bfb\u56fe\u8868\u5199\u7b56\u7565<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-5083","post","type-post","status-publish","format-standard","hentry","category-aiinvest","entry"],"_links":{"self":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/5083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=5083"}],"version-history":[{"count":1,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/5083\/revisions"}],"predecessor-version":[{"id":5091,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/5083\/revisions\/5091"}],"wp:attachment":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=5083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=5083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=5083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}