{"id":1755,"date":"2024-12-30T07:40:00","date_gmt":"2024-12-29T23:40:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1755"},"modified":"2024-12-06T15:43:59","modified_gmt":"2024-12-06T07:43:59","slug":"%e4%bb%85%e9%9c%80%e4%ba%94%e6%ad%a5%ef%bc%8c%e6%89%93%e9%80%a0%e6%82%a8%e7%9a%84%e4%b8%93%e5%b1%9e%e6%95%b0%e5%ad%97%e8%b4%a7%e5%b8%81%e5%ae%9e%e6%97%b6%e4%ba%a4%e6%98%93%e6%9c%ba%e5%99%a8%e4%ba%ba","status":"publish","type":"post","link":"https:\/\/laoyulaoyu.com\/index.php\/2024\/12\/30\/%e4%bb%85%e9%9c%80%e4%ba%94%e6%ad%a5%ef%bc%8c%e6%89%93%e9%80%a0%e6%82%a8%e7%9a%84%e4%b8%93%e5%b1%9e%e6%95%b0%e5%ad%97%e8%b4%a7%e5%b8%81%e5%ae%9e%e6%97%b6%e4%ba%a4%e6%98%93%e6%9c%ba%e5%99%a8%e4%ba%ba\/","title":{"rendered":"\u4ec5\u9700\u4e94\u6b65\uff0c\u6253\u9020\u60a8\u7684\u4e13\u5c5e\u6570\u5b57\u8d27\u5e01\u5b9e\u65f6\u4ea4\u6613\u673a\u5668\u4eba"},"content":{"rendered":"\n<p>\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><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 decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/120604.png\" alt=\"\" class=\"wp-image-3276\"\/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\"><strong>\u5199\u5728\u524d\u9762\u7684\u8bdd\uff1a<\/strong>\u968f\u7740\u672c\u5468\u6bd4\u7279\u5e01\u4ef7\u683c\u7a81\u783410\u4e07\u7f8e\u5143\u7684\u5386\u53f2\u65b0\u9ad8\uff0c\u8bb8\u591a\u7c89\u4e1d\u7eb7\u7eb7\u7559\u8a00\uff0c\u671f\u5f85\u6211\u80fd\u5206\u4eab\u4e00\u4e9b\u5173\u4e8e\u6570\u5b57\u8d27\u5e01\u7684\u77e5\u8bc6\u3002\u6211\u89c9\u5f97\u8fd9\u4e0d\u4ec5\u662f\u4e00\u4e2a\u91cc\u7a0b\u7891\uff0c\u4e5f\u662f\u4e00\u4e2a\u7edd\u4f73\u7684\u65f6\u673a\u6765\u63a2\u8ba8\u5982\u4f55\u5229\u7528\u6280\u672f\u628a\u63e1\u5e02\u573a\u673a\u9047\u3002\u4eca\u5929\uff0c\u6211\u5c06\u4e0e\u5927\u5bb6\u5206\u4eab\u5982\u4f55\u4ec5\u7528\u4e94\u6b65\u5c31\u80fd\u6253\u9020\u4e00\u4e2a\u4e13\u5c5e\u4e0e\u4f60\u7684\u5b9e\u65f6\u52a0\u5bc6\u8d27\u5e01\u4ea4\u6613\u673a\u5668\u4eba\u3002\u8fd9\u4e0d\u4ec5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u6ce2\u52a8\u7684\u5e02\u573a\u4e2d\u62a2\u5360\u5148\u673a\uff0c\u8fd8\u80fd\u8ba9\u6211\u4eec\u7684\u8d22\u5bcc\u5728\u5fd9\u788c\u7684\u751f\u6d3b\u4e2d\u7a33\u6b65\u79ef\u7d2f\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u4e00\u6b65\u6b65\u5f15\u5bfc\u4f60\u8fdb\u5165\u8fd9\u4e2a\u5145\u6ee1\u6311\u6218\u4e0e\u673a\u9047\u7684\u9886\u57df\uff0c\u4ece\u57fa\u7840\u914d\u7f6e\u5230\u5b8c\u6574\u529f\u80fd\u7684\u642d\u5efa\uff0c\u6bcf\u4e00\u6b65\u90fd\u662f\u6211\u4eec\u5171\u540c\u5b66\u4e60\u548c\u8fdb\u6b65\u7684\u5370\u8bb0\u3002<\/pre>\n<\/blockquote>\n\n\n\n<p>\u60f3\u8c61\u4e00\u4e0b\uff0c\u6709\u4e00\u4e2a\u673a\u5668\u4eba\u53ef\u4ee5\u5728\u4f60\u7761\u89c9\u65f6\u4e3a\u4f60\u4ea4\u6613\u52a0\u5bc6\u8d27\u5e01\uff0c\u5e76\u6839\u636e\u5b9e\u65f6\u5e02\u573a\u6570\u636e\u548c\u6280\u672f\u6307\u6807\u505a\u51fa\u51b3\u7b56\u3002\u65e0\u8bba\u4f60\u662f\u4e00\u4e2a\u5bf9\u91d1\u878d\u5e02\u573a\u5145\u6ee1\u70ed\u60c5\u7684\u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458\uff0c\u8fd8\u662f\u4e00\u4e2a\u5e0c\u671b\u5b9e\u73b0\u4ea4\u6613\u81ea\u52a8\u5316\u7684\u6295\u8d44\u8005\uff0c\u6784\u5efa\u4e00\u4e2a\u52a0\u5bc6\u8d27\u5e01\u4ea4\u6613\u673a\u5668\u4eba\u90fd\u662f\u65e2\u4ee4\u4eba\u5174\u594b\u53c8\u5177\u6709\u6559\u80b2\u610f\u4e49\u7684\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\">\u201c<strong>\u5982\u679c\u4f60\u4e0d\u627e\u5230\u4e00\u79cd\u7761\u89c9\u65f6\u4e5f\u80fd\u8d5a\u94b1\u7684\u65b9\u6cd5\uff0c\u4f60\u5c31\u4f1a\u4e00\u76f4\u5de5\u4f5c\u5230\u6b7b\u3002<\/strong>\u201d<br>                                                                           ----<em>\u6c83\u4f26\u00b7\u5df4\u83f2\u7279 (Warren Buffet) <\/em><\/pre>\n<\/blockquote>\n\n\n\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u6211\u4eec\u4e00\u8d77\u6765\u63a2\u7d22\u5982\u4f55\u6784\u5efa\u52a0\u5bc6\u8d27\u5e01\u4ea4\u6613\u673a\u5668\u4eba\uff0c\u5b83\u53ef\u4ee5\u8ddf\u8e2a\u5b9e\u65f6\u4ef7\u683c\uff0c\u8ba1\u7b97 RSI\uff08\u76f8\u5bf9\u5f3a\u5f31\u6307\u6570\uff09\u7b49\u6280\u672f\u6307\u6807\uff0c\u5e76\u81ea\u52a8\u6267\u884c\u4e70\u5165\/\u5356\u51fa\u4ea4\u6613\u3002\u6211\u4eec\u5c06\u5206\u4e94\u6b65\u6784\u5efa\u8fd9\u4e2a\u673a\u5668\u4eba\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-49.png\" alt=\"\" class=\"wp-image-3281\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7b2c 1 \u6b65\uff1a\u5b89\u88c5\u6240\u9700\u7a0b\u5e8f\u5e93<\/strong><\/h3>\n\n\n\n<p>\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u5df2\u5b89\u88c5\u4ee5\u4e0b Python \u5e93\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install websocket-client stockstats python-binance numpy<\/code><\/pre>\n\n\n\n<p><strong>\u4ee3\u7801\u91ca\u4e49\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>websocket-client\uff1a<\/strong>\u7528\u4e8e\u8fde\u63a5 Binance WebSocket\uff0c\u83b7\u53d6\u5b9e\u65f6\u4ef7\u683c\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>stockstats\uff1a<\/strong>\u4e00\u4e2a\u4fbf\u4e8e\u8ba1\u7b97 RSI \u7b49\u6280\u672f\u6307\u6807\u7684\u5e93\u3002<\/li>\n\n\n\n<li><strong>python-binance\uff1a<\/strong>\u7528\u4e8e\u4e0e Binance API \u4ea4\u4e92\u4ee5\u4e0b\u8fbe\u4e70\u5165\/\u5356\u51fa\u6307\u4ee4\u7684\u5e93\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7b2c 2 \u6b65\uff1a\u6784\u5efa\u7b80\u5316\u7684\u4ea4\u6613\u673a\u5668\u4eba<\/strong><\/h3>\n\n\n\n<p>\u8ba9\u6211\u4eec\u4ece\u7b80\u5316\u7248\u7684\u673a\u5668\u4eba\u5f00\u59cb\u3002\u8be5\u7248\u672c\u4e0d\u4f1a\u8fde\u63a5\u4ea4\u6613\u6240\uff0c\u4f46\u53ef\u4ee5\u5e2e\u52a9\u60a8\u4e86\u89e3\u5982\u4f55\u4f7f\u7528\u5386\u53f2\u4ef7\u683c\u6570\u636e\u8ba1\u7b97 RSI \u7b49\u6280\u672f\u6307\u6807\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528 stockstats \u6839\u636e\u4e00\u7cfb\u5217\u6536\u76d8\u4ef7\u8ba1\u7b97 RSI \u7684\u7b80\u5355\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\nfrom stockstats import StockDataFrame as Sdf\n\n# Simulated closing price data (candlestick data)\ndata = {\n    'close': &#91;428.1, 426.9, 429.3, 427.5, 430.2, 432.4, 434.1, 433.0, 432.5, 431.8, 429.6, 427.2, 425.8, 428.9, 430.7]\n}\ndf = pd.DataFrame(data)\n\n# Convert to StockDataFrame to calculate RSI\nstock_data = Sdf.retype(df)\nstock_data&#91;'rsi_14'] = stock_data&#91;'rsi_14']\n\n# Define overbought and oversold thresholds\nRSI_OVERBOUGHT = 70\nRSI_OVERSOLD = 30\n\n# Print the closing price and corresponding RSI\nfor i in range(len(stock_data)):\n    close = stock_data&#91;'close']&#91;i]\n    rsi = stock_data&#91;'rsi_14']&#91;i]\n    print(f\"Closing Price: {close} | RSI: {rsi}\")\n    \n    # Buy or sell conditions\n    if rsi &lt; RSI_OVERSOLD:\n        print(\"RSI indicates oversold conditions. Buy!\")\n    elif rsi &gt; RSI_OVERBOUGHT:\n        print(\"RSI indicates overbought conditions. Sell!\")\n    else:\n        print(\"RSI within normal range. No action.\")<\/code><\/pre>\n\n\n\n<p><strong>\u4ee3\u7801\u91ca\u4e49\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>StockDataFrame\uff1a<\/strong>stockstats \u5e93\u5c01\u88c5\u4e86\u4e00\u4e2a Pandas DataFrame\uff0c\u4f7f RSI\u3001MACD\u3001\u79fb\u52a8\u5e73\u5747\u7ebf\u7b49\u5404\u79cd\u6280\u672f\u6307\u6807\u7684\u8ba1\u7b97\u53d8\u5f97\u66f4\u5bb9\u6613\u3002<\/li>\n\n\n\n<li><strong>RSI \u8ba1\u7b97\uff1a<\/strong>\u5728\u672c\u4f8b\u4e2d\uff0c\u6211\u4eec\u6839\u636e\u6570\u636e\u96c6\u4e2d\u7684\u6536\u76d8\u4ef7\u8ba1\u7b97 14 \u671f RSI\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4ee3\u7801\u8f93\u51fa\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-48.png\" alt=\"\" class=\"wp-image-3278\"\/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u8fdb\u4e00\u6b65\u6253\u9020\u529f\u80fd\u9f50\u5168\u7684\u673a\u5668\u4eba\uff0c\u53ef\u8fde\u63a5 Binance \u7684 API \u5b9e\u65f6\u4ea4\u6613\u52a0\u5bc6\u8d27\u5e01\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7b2c 3 \u6b65\uff1a\u7533\u8bf7\u6570\u5b57\u8d27\u5e01\u4ea4\u6613\u6240 API<\/strong><\/h3>\n\n\n\n<p>\u8981\u8ba9\u4f60\u7684\u673a\u5668\u4eba\u771f\u6b63\u53d1\u6325\u4f5c\u7528\uff0c\u4f60\u9700\u8981\u5c06\u5b83\u8fde\u63a5\u5230\u50cf Binance \u8fd9\u6837\u7684\u52a0\u5bc6\u8d27\u5e01\u4ea4\u6613\u6240\u3002\u9996\u5148\uff0c\u9700\u8981\u5728 Binance \u4e0a\u521b\u5efa\u4e00\u4e2a\u8d26\u6237\uff0c\u7136\u540e\u751f\u6210\u60a8\u7684 API Key \u548c API Secret\u3002\u6709\u4e86\u8fd9\u4e9b\u51ed\u8bc1\uff0c\u673a\u5668\u4eba\u624d\u80fd\u8bbf\u95ee\u5b9e\u65f6\u6570\u636e\u5e76\u6267\u884c\u4ea4\u6613\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/1733468344404.png\" alt=\"\" class=\"wp-image-3280\" style=\"width:462px;height:auto\"\/><\/figure>\n\n\n\n<p>\u6ce8\u518c\u5730\u5740\uff1a<a href=\"https:\/\/accounts.binance.com\/zh-CN\/login\">https:\/\/accounts.binance.com\/zh-CN\/login<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>\u7b2c 4 \u6b65\uff1aAPI \u96c6\u6210<\/strong><\/h3>\n\n\n\n<p>\u73b0\u5728\u4f7f\u7528 Binance \u7684 WebSocket \u5b9e\u65f6\u66f4\u65b0\u4ef7\u683c\uff0c\u5e76\u4f7f\u7528 API \u4e0b\u8fbe\u4e70\u5356\u6307\u4ee4\uff0c\u5c06\u673a\u5668\u4eba\u4e0e Binance \u96c6\u6210\u3002\u4ee5\u4e0b\u662f\u673a\u5668\u4eba\u7684\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import websocket\nimport json\nimport numpy as np\nfrom binance.client import Client\nfrom stockstats import StockDataFrame as Sdf\nimport pandas as pd\nimport config  # A file where API keys are stored\n\n# Connect to Binance API\nclient = Client(config.API_KEY, config.API_SECRET)\n# Parameters\nTRADE_SYMBOL = 'ETHUSDT'\nTRADE_QUANTITY = 0.05\nRSI_PERIOD = 14\nRSI_OVERBOUGHT = 70\nRSI_OVERSOLD = 30\nin_position = False\n# Create an empty list to store closing prices\ncloses = &#91;]\ndef on_message(ws, message):\n    global closes, in_position\n    json_message = json.loads(message)\n    candle = json_message&#91;'k']\n    \n    is_candle_closed = candle&#91;'x']\n    close_price = candle&#91;'c']\n    if is_candle_closed:\n        closes.append(float(close_price))\n        \n        if len(closes) &gt; RSI_PERIOD:\n            stock_data = Sdf.retype(pd.DataFrame({'close': closes}))\n            stock_data&#91;'rsi_14'] = stock_data&#91;'rsi_14']\n            rsi = stock_data&#91;'rsi_14'].iloc&#91;-1]\n            print(f'RSI: {rsi}')\n            # Trading logic\n            if rsi &gt; RSI_OVERBOUGHT:\n                if in_position:\n                    print(\"Sell Signal\")\n                    order = client.order_market_sell(\n                        symbol=TRADE_SYMBOL,\n                        quantity=TRADE_QUANTITY\n                    )\n                    in_position = False\n                else:\n                    print(\"Overbought, but no position to sell\")\n            if rsi &lt; RSI_OVERSOLD:\n                if not in_position:\n                    print(\"Buy Signal\")\n                    order = client.order_market_buy(\n                        symbol=TRADE_SYMBOL,\n                        quantity=TRADE_QUANTITY\n                    )\n                    in_position = True\n                else:\n                    print(\"Oversold, but already in position\")\ndef on_open(ws):\n    print(\"Connection opened\")\ndef on_close(ws):\n    print(\"Connection closed\")\nsocket = f\"wss:\/\/stream.binance.com:9443\/ws\/{TRADE_SYMBOL.lower()}@kline_1m\"\nws = websocket.WebSocketApp(socket, on_message=on_message, on_close=on_close)\nws.run_forever()<\/code><\/pre>\n\n\n\n<p><strong>\u4ee3\u7801\u91ca\u4e49\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>WebSocket \u8fde\u63a5\uff1a<\/strong>\u673a\u5668\u4eba\u8fde\u63a5\u5230 Binance \u7684 WebSocket \u6d41\uff0c\u63a5\u6536\u4ee5\u592a\u574a (ETH) \u4ef7\u683c\u6570\u636e\u7684\u5b9e\u65f6\u66f4\u65b0\u3002<\/li>\n\n\n\n<li><strong>RSI \u8ba1\u7b97\uff1a<\/strong>\u673a\u5668\u4eba\u4f7f\u7528 stockstats \u6839\u636e\u6700\u8fd1 14 \u4e2a\u6536\u76d8\u4ef7\u8ba1\u7b97 RSI\u3002<\/li>\n\n\n\n<li><strong>\u4ea4\u6613\u903b\u8f91\uff1a<\/strong>\u5f53 RSI \u4e0b\u964d\u5230 30 \u4ee5\u4e0b\uff08\u8d85\u5356\uff09\u65f6\uff0c\u673a\u5668\u4eba\u4f1a\u81ea\u52a8\u4e0b\u8fbe\u4e70\u5355\uff1b\u5f53 RSI \u4e0a\u5347\u5230 70 \u4ee5\u4e0a\uff08\u8d85\u4e70\uff09\u65f6\uff0c\u673a\u5668\u4eba\u4f1a\u81ea\u52a8\u4e0b\u8fbe\u5356\u5355\u3002<\/li>\n\n\n\n<li><strong>\u6301\u4ed3\u68c0\u67e5\uff1a<\/strong>\u673a\u5668\u4eba\u4f1a\u8ddf\u8e2a\u81ea\u5df1\u662f\u5426\u6301\u6709\u5934\u5bf8\uff0c\u4ee5\u907f\u514d\u91cd\u590d\u6267\u884c\u4e70\u5165\u6216\u5356\u51fa\u8ba2\u5355\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7b2c 5 \u6b65\uff1a\u914d\u7f6e API \u8d26\u6237<\/strong><\/h3>\n\n\n\n<p>\u60a8\u9700\u8981\u521b\u5efa\u4e00\u4e2a config.py \u6587\u4ef6\uff0c\u4ee5\u5b89\u5168\u5b58\u50a8\u60a8\u7684 Binance API \u51ed\u636e\u3002\u914d\u7f6e\u6587\u4ef6\u5e94\u8be5\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>API_KEY = 'your_api_key'\nAPI_SECRET = 'your_api_secret'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u4f7f\u7528\u4ea4\u6613\u673a\u5668\u4eba\u7684\u4f18\u52bf<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-52.png\" alt=\"\" class=\"wp-image-3285\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5168\u5929\u5019\u4ea4\u6613\uff1a<\/strong>\u4e0e\u4eba\u7c7b\u4ea4\u6613\u5458\u4e0d\u540c\uff0c\u673a\u5668\u4eba\u53ef\u4ee5\u5168\u5929\u5019\u76d1\u63a7\u5e02\u573a\uff0c\u786e\u4fdd\u60a8\u4e0d\u4f1a\u9519\u8fc7\u4efb\u4f55\u4ea4\u6613\u673a\u4f1a\u3002<\/li>\n\n\n\n<li><strong>\u65e0\u60c5\u611f\u4ea4\u6613\uff1a<\/strong>\u673a\u5668\u4eba\u5b8c\u5168\u6839\u636e\u6570\u636e\u6267\u884c\u4ea4\u6613\uff0c\u6d88\u9664\u4e86\u6050\u60e7\u6216\u8d2a\u5a6a\u7b49\u60c5\u7eea\u504f\u89c1\u3002<\/li>\n\n\n\n<li><strong>\u901f\u5ea6\uff1a<\/strong>\u673a\u5668\u4eba\u80fd\u5bf9\u5e02\u573a\u53d8\u5316\u505a\u51fa\u5373\u65f6\u53cd\u5e94\uff0c\u4e0b\u5355\u901f\u5ea6\u6bd4\u4eba\u7c7b\u66f4\u5feb\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u52a8\u5316\uff1a<\/strong>\u81ea\u52a8\u4ea4\u6613\u53ef\u8ba9\u60a8\u4e13\u6ce8\u4e8e\u7b56\u7565\u5236\u5b9a\uff0c\u800c\u4e0d\u662f\u4e0d\u65ad\u89c2\u5bdf\u5e02\u573a\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e09\u3001\u673a\u5668\u4eba\u5fc5\u8981\u7684\u529f\u80fd\u8fdb\u5316\u63d0\u793a<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u591a\u79cd\u6307\u6807\uff1a<\/strong>\u901a\u8fc7\u6574\u5408\u66f4\u591a\u6307\u6807\uff08\u5982 MACD\u3001\u5e03\u6797\u5e26\u6216\u79fb\u52a8\u5e73\u5747\u7ebf\uff09\u6765\u589e\u5f3a\u673a\u5668\u4eba\u529f\u80fd\uff0c\u4ece\u800c\u8fdb\u884c\u66f4\u5168\u9762\u7684\u5e02\u573a\u5206\u6790\u3002<\/li>\n\n\n\n<li><strong>\u56de\u6eaf\u6d4b\u8bd5\uff1a<\/strong>\u4f7f\u7528\u5386\u53f2\u6570\u636e\u6d4b\u8bd5\u60a8\u7684\u4ea4\u6613\u7b56\u7565\uff0c\u7136\u540e\u518d\u7528\u771f\u91d1\u767d\u94f6\u5192\u9669\u3002<\/li>\n\n\n\n<li><strong>\u6295\u8d44\u7ec4\u5408\u7ba1\u7406\uff1a<\/strong>\u6269\u5c55\u4f60\u7684\u673a\u5668\u4eba\uff0c\u540c\u65f6\u7ba1\u7406\u591a\u4e2a\u4ea4\u6613\u5bf9\u548c\u7b56\u7565\u3002\u6bd4\u5982\u914d\u5bf9\u4ea4\u6613\u7b49\uff0c\u540e\u9762\u6211\u8fd8\u4f1a\u5199\u6587\u7ae0\u6765\u8fdb\u4e00\u6b65\u8bf4\u660e\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u56db\u3001\u89c2\u70b9\u603b\u7ed3<\/strong><\/h3>\n\n\n\n<p>\u6784\u5efa\u4e00\u4e2a\u57fa\u4e8ePython\u7684\u52a0\u5bc6\u8d27\u5e01\u4ea4\u6613\u673a\u5668\u4eba\uff0c\u662f\u5c06\u7f16\u7a0b\u6280\u5de7\u4e0e\u91d1\u878d\u6d1e\u5bdf\u529b\u5b8c\u7f8e\u878d\u5408\u7684\u5b9e\u8df5\u3002\u901a\u8fc7\u63a5\u5165\u5b9e\u65f6\u5e02\u573a\u6570\u636e\u3001\u90e8\u7f72\u81ea\u52a8\u5316\u7684\u4ea4\u6613\u7b56\u7565\uff0c\u5e76\u5b9e\u73b0\u4e0eBinance\u7b49\u77e5\u540d\u4ea4\u6613\u6240\u7684\u65e0\u7f1d\u5bf9\u63a5\uff0c\u4f60\u5c06\u8f6c\u53d8\u6210\u4e00\u4f4d\u66f4\u52a0\u9ad8\u6548\u3001\u4e0d\u53d7\u60c5\u7eea\u5e72\u6270\u7684\u4ea4\u6613\u9ad8\u624b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u81ea\u52a8\u5316\u548c\u6548\u7387<\/strong>\uff1a\u901a\u8fc7\u7f16\u5199\u4ea4\u6613\u673a\u5668\u4eba\uff0c\u6295\u8d44\u8005\u53ef\u4ee5\u5b9e\u73b0\u4ea4\u6613\u7684\u81ea\u52a8\u5316\uff0c\u4ece\u800c\u63d0\u9ad8\u4ea4\u6613\u6548\u7387\uff0c\u8282\u7701\u65f6\u95f4\uff0c\u5e76\u6709\u6548\u907f\u514d\u60c5\u7eea\u5316\u4ea4\u6613\u3002<\/li>\n\n\n\n<li><strong>\u77e5\u8bc6\u6295\u8d44<\/strong>\uff1a\u6295\u8d44\u4e8e\u5b66\u4e60\u5982\u4f55\u6784\u5efa\u548c\u4f18\u5316\u4ea4\u6613\u673a\u5668\u4eba\u662f\u975e\u5e38\u503c\u5f97\u7684\uff0c\u56e0\u4e3a\u8fd9\u79cd\u77e5\u8bc6\u80fd\u591f\u5e26\u6765\u957f\u671f\u7684\u56de\u62a5\u3002<\/li>\n\n\n\n<li><strong>\u6280\u672f\u548c\u91d1\u878d\u7ed3\u5408<\/strong>\uff1a\u672c\u6587\u4f53\u73b0\u4e86\u7f16\u7a0b\u6280\u80fd\u4e0e\u91d1\u878d\u5e02\u573a\u77e5\u8bc6\u7684\u7ed3\u5408\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u7f16\u7a0b\u6765\u89e3\u51b3\u5b9e\u9645\u7684\u91d1\u878d\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u6301\u7eed\u5b66\u4e60\u548c\u6539\u8fdb<\/strong>\uff1a\u6211\u975e\u5e38\u9f13\u52b1\u60a8\u4e0d\u65ad\u5b9e\u9a8c\u65b0\u7b56\u7565\u3001\u6dfb\u52a0\u65b0\u529f\u80fd\uff0c\u5e76\u81ea\u52a8\u5316\u4ea4\u6613\u6d41\u7a0b\uff0c\u4ee5\u63d0\u9ad8\u673a\u5668\u4eba\u7684\u6027\u80fd\u548c\u9002\u5e94\u6027\u3002<\/li>\n<\/ul>\n\n\n\n<p><em>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\uff0c\u5e0c\u671b\u672c\u6587\u80fd\u7ed9\u60a8\u5e26\u6765\u65b0\u7684\u6536\u83b7\u3002\u795d\u60a8\u6295\u8d44\u987a\u5229\uff01\u5982\u679c\u5bf9\u6587\u4e2d\u7684\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u8bf7\u7ed9\u6211\u7559\u8a00\uff0c\u5fc5\u590d\u3002<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center\" id=\"a1c6\">\u672c\u6587\u5185\u5bb9\u4ec5\u9650\u6280\u672f\u63a2\u8ba8\u548c\u5b66\u4e60\uff0c\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n\n\n\n<p><\/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\u3002&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/laoyulaoyu.com\/index.php\/2024\/12\/30\/%e4%bb%85%e9%9c%80%e4%ba%94%e6%ad%a5%ef%bc%8c%e6%89%93%e9%80%a0%e6%82%a8%e7%9a%84%e4%b8%93%e5%b1%9e%e6%95%b0%e5%ad%97%e8%b4%a7%e5%b8%81%e5%ae%9e%e6%97%b6%e4%ba%a4%e6%98%93%e6%9c%ba%e5%99%a8%e4%ba%ba\/\">Continue reading<span class=\"screen-reader-text\">\u4ec5\u9700\u4e94\u6b65\uff0c\u6253\u9020\u60a8\u7684\u4e13\u5c5e\u6570\u5b57\u8d27\u5e01\u5b9e\u65f6\u4ea4\u6613\u673a\u5668\u4eba<\/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":[4,15],"class_list":["post-1755","post","type-post","status-publish","format-standard","hentry","category-aiinvest","tag-ai","tag-15","entry"],"_links":{"self":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1755","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=1755"}],"version-history":[{"count":1,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1755\/revisions"}],"predecessor-version":[{"id":1756,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1755\/revisions\/1756"}],"wp:attachment":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}