{"id":1904,"date":"2025-02-17T07:12:00","date_gmt":"2025-02-16T23:12:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1904"},"modified":"2025-01-16T12:33:27","modified_gmt":"2025-01-16T04:33:27","slug":"adx-%e6%b7%b1%e5%ba%a6%e6%8f%ad%e7%a7%98%ef%bc%9a%e7%b2%be%e5%87%86%e6%8d%95%e6%8d%89%e5%b8%82%e5%9c%ba%e4%ba%a4%e6%98%93%e8%b6%8b%e5%8a%bf%e5%8f%8d%e8%bd%ac%e7%9a%84%e7%a7%98%e8%af%80%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.laoyulaoyu.com\/index.php\/2025\/02\/17\/adx-%e6%b7%b1%e5%ba%a6%e6%8f%ad%e7%a7%98%ef%bc%9a%e7%b2%be%e5%87%86%e6%8d%95%e6%8d%89%e5%b8%82%e5%9c%ba%e4%ba%a4%e6%98%93%e8%b6%8b%e5%8a%bf%e5%8f%8d%e8%bd%ac%e7%9a%84%e7%a7%98%e8%af%80%ef%bc%81\/","title":{"rendered":"ADX \u6df1\u5ea6\u63ed\u79d8\uff1a\u7cbe\u51c6\u6355\u6349\u5e02\u573a\u4ea4\u6613\u8d8b\u52bf\u53cd\u8f6c\u7684\u79d8\u8bc0\uff01\uff08\u9644\u5b8c\u6574\u6e90\u7801\uff09"},"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\/2025\/01\/1__xnRy7RL1E3RwadWkm75XQ.jpg\" alt=\"\" class=\"wp-image-3944\"\/><\/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>\u5927\u5bb6\u597d\uff0c\u4eca\u5929\u6211\u4eec\u6765\u804a\u804a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">ADX\u6307\u6807\u3002\u5b83\u4e0d\u4ec5\u80fd\u5e2e\u6211\u4eec\u5224\u65ad\u5e02\u573a\u8d8b\u52bf\u7684\u5f3a\u5f31\uff0c\u8fd8\u80fd\u63d0\u524d\u53d1\u51fa\u53cd\u8f6c\u4fe1\u53f7<\/mark>\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4f1a\u5206\u4eab\u5982\u4f55\u7528ADX\u6307\u6807\u5728\u6ce2\u52a8\u7684\u5e02\u573a\u4e2d\u505a\u51fa\u66f4\u806a\u660e\u7684\u51b3\u7b56\uff0c\u5e2e\u4f60\u66f4\u6e05\u6670\u5730\u770b\u61c2\u5e02\u573a\u53d8\u5316\uff0c\u6293\u4f4f\u6700\u4f73\u4e70\u5356\u65f6\u673a\u3002<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u4ec0\u4e48\u662f ADX\uff1f<\/strong><\/h2>\n\n\n\n<p>\u5e73\u5747\u65b9\u5411\u6307\u6570\uff08Average Directional Index\uff0c\u7b80\u79f0ADX\uff09\u662f\u4e00\u79cd<strong>\u7528\u4e8e\u8bc4\u4f30\u5e02\u573a\u8d8b\u52bf\u5f3a\u5ea6\u7684\u6280\u672f\u5206\u6790\u6307\u6807<\/strong>\u3002\u5b83\u7531J. Welles Wilder Jr.\u57281978\u5e74\u63d0\u51fa\uff0c\u65e8\u5728\u5e2e\u52a9\u4ea4\u6613\u8005\u8bc6\u522b\u5e02\u573a\u662f\u5426\u5904\u4e8e\u8d8b\u52bf\u72b6\u6001\uff0c\u4ee5\u53ca\u8d8b\u52bf\u7684\u5f3a\u5ea6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 ADX \u89e3\u8bfb<\/strong><\/h3>\n\n\n\n<p>ADX \u8861\u91cf\u7684\u662f\u8d8b\u52bf\u7684\u5f3a\u5ea6\uff0c\u800c\u4e0d\u662f\u65b9\u5411\u3002ADX\u7684\u503c\u8303\u56f4\u4ece0\u5230100\uff0c\u901a\u5e38\u88ab\u7528\u6765\u5224\u65ad\u5e02\u573a\u7684\u8d8b\u52bf\u662f\u5426\u5f3a\u52b2\uff0c\u4ee5\u53ca\u662f\u5426\u9002\u5408\u8fdb\u884c\u8d8b\u52bf\u4ea4\u6613\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-100.png\" alt=\"\" class=\"wp-image-3945\"\/><\/figure>\n\n\n\n<ul id=\"bh-tPUElFL4YW2lgJLMcl5Rd\" class=\"wp-block-list\">\n<li><strong>0-25<\/strong>\uff1a\u5e02\u573a\u8d8b\u52bf\u8f83\u5f31\uff0c\u53ef\u80fd\u5904\u4e8e\u76d8\u6574\u72b6\u6001\u3002<\/li>\n\n\n\n<li><strong>25-50<\/strong>\uff1a\u5e02\u573a\u8d8b\u52bf\u5f00\u59cb\u589e\u5f3a\uff0c\u9002\u5408\u8d8b\u52bf\u4ea4\u6613\u3002<\/li>\n\n\n\n<li><strong>50-75<\/strong>\uff1a\u5e02\u573a\u8d8b\u52bf\u5f3a\u52b2\uff0c\u4ea4\u6613\u8005\u5e94\u5173\u6ce8\u8d8b\u52bf\u7684\u5ef6\u7eed\u3002<\/li>\n\n\n\n<li><strong>75-100<\/strong>\uff1a\u5e02\u573a\u8d8b\u52bf\u6781\u4e3a\u5f3a\u52b2\uff0c\u9700\u8c28\u614e\u64cd\u4f5c\uff0c\u907f\u514d\u8ffd\u9ad8\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.2 ADX\u7684\u7ec4\u6210\u90e8\u5206<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-101.png\" alt=\"\" class=\"wp-image-3946\"\/><\/figure>\n\n\n\n<p>ADX\u6307\u6807\u7531\u4e09\u4e2a\u4e3b\u8981\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n\n\n\n<ul id=\"bh-P5jTMPkGxhmLKTqOunqbN\" class=\"wp-block-list\">\n<li><strong>\u6b63\u5411\u6307\u6807\uff08+DI\uff09<\/strong>\uff1a\u8861\u91cf\u5f53\u524d\u4ef7\u683c\u4e0a\u6da8\u7684\u5f3a\u5ea6\u3002<\/li>\n\n\n\n<li><strong>\u8d1f\u5411\u6307\u6807\uff08-DI\uff09<\/strong>\uff1a\u8861\u91cf\u5f53\u524d\u4ef7\u683c\u4e0b\u8dcc\u7684\u5f3a\u5ea6\u3002<\/li>\n\n\n\n<li><strong>ADX\u7ebf<\/strong>\uff1a\u901a\u8fc7\u8ba1\u7b97\u6b63\u5411\u548c\u8d1f\u5411\u6307\u6807\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u5f97\u51fa\u8d8b\u52bf\u5f3a\u5ea6\u7684\u6570\u503c\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.3 ADX\u7684\u8ba1\u7b97\u65b9\u6cd5<\/strong><\/h3>\n\n\n\n<p id=\"bh-lWt5fhsAjgiBn7Zhmcn7N\">ADX\u7684\u8ba1\u7b97\u8fc7\u7a0b\u76f8\u5bf9\u590d\u6742\uff0c\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/\u5e73\u5747\u65b9\u5411\u6307\u6570\uff08ADX\uff09\u7b80\u4ecb-visual-selection-1024x395.png\" alt=\"\" class=\"wp-image-3951\"\/><\/figure>\n\n\n\n<ul id=\"bh-1Wrv_cwHHAbB9S9lcAYV-\" class=\"wp-block-list\">\n<li>\u8ba1\u7b97\u5f53\u524d\u5468\u671f\u7684\u771f\u5b9e\u8303\u56f4\uff08True Range, TR\uff09\u3002<\/li>\n\n\n\n<li>\u8ba1\u7b97\u6b63\u5411\u79fb\u52a8\uff08+DM\uff09\u548c\u8d1f\u5411\u79fb\u52a8\uff08-DM\uff09\u3002<\/li>\n\n\n\n<li>\u8ba1\u7b97\u5e73\u6ed1\u7684+DI\u548c-DI\u503c\u3002<\/li>\n\n\n\n<li>\u6700\u540e\uff0c\u8ba1\u7b97ADX\u503c\uff0c\u901a\u5e38\u4f7f\u752814\u4e2a\u5468\u671f\u7684\u5e73\u6ed1\u5e73\u5747\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.4 \u4f7f\u7528ADX\u7684\u6ce8\u610f\u4e8b\u9879<\/strong><\/h3>\n\n\n\n<p>\u867d\u7136ADX\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u4f46\u4ea4\u6613\u8005\u5728\u4f7f\u7528\u65f6\u5e94\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-104.png\" alt=\"\" class=\"wp-image-3949\"\/><\/figure>\n\n\n\n<ul id=\"bh-PMlMic7I3BEDRL16EZNKl\" class=\"wp-block-list\">\n<li>ADX\u5e76\u4e0d\u6307\u793a\u8d8b\u52bf\u7684\u65b9\u5411\uff0c\u4ec5\u53cd\u6620\u8d8b\u52bf\u7684\u5f3a\u5ea6\u3002<\/li>\n\n\n\n<li>\u5728\u4f4e\u6ce2\u52a8\u5e02\u573a\u4e2d\uff0cADX\u53ef\u80fd\u4f1a\u4ea7\u751f\u8bef\u5bfc\u4fe1\u53f7\u3002<\/li>\n\n\n\n<li>\u5efa\u8bae\u7ed3\u5408\u5176\u4ed6\u6280\u672f\u6307\u6807\u548c\u5206\u6790\u65b9\u6cd5\uff0c\u4ee5\u63d0\u9ad8\u4ea4\u6613\u51b3\u7b56\u7684\u51c6\u786e\u6027\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5e73\u5747\u65b9\u5411\u6307\u6570\uff08ADX\uff09\u662f\u4e00\u4e2a\u6709\u6548\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4ea4\u6613\u8005\u8bc6\u522b\u5e02\u573a\u8d8b\u52bf\u7684\u5f3a\u5ea6\u3002\u901a\u8fc7\u5408\u7406\u8fd0\u7528ADX\uff0c\u4ea4\u6613\u8005\u53ef\u4ee5\u66f4\u597d\u5730\u628a\u63e1\u5e02\u573a\u673a\u4f1a\uff0c\u5236\u5b9a\u76f8\u5e94\u7684\u4ea4\u6613\u7b56\u7565\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u4ee3\u7801\u5b9e\u73b0<\/strong><\/h2>\n\n\n\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Python \u4ee3\u7801\u5b9e\u4f8b\uff0c\u5b83\u5b9e\u73b0\u4e86\u5982\u4f55\u7ed3\u5408\u4f7f\u7528 Matplotlib \u548c ipywidgets \u6765\u751f\u6210\u5e76\u5448\u73b0 ADX\uff08\u5e73\u5747\u65b9\u5411\u6307\u6570\uff09\u7684\u56fe\u5f62\u5316\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5b89\u88c5\u4f9d\u8d56\u5e93\n!pip install ta yfinance pandas matplotlib ipywidgets\n\n# \u5bfc\u5165\u5fc5\u8981\u7684\u5e93\nimport yfinance as yf\nimport matplotlib.pyplot as plt\nfrom ta.trend import ADXIndicator\nimport pandas as pd\nimport ipywidgets as widgets\nfrom IPython.display import display\n\n# \u5b9a\u4e49\u53ef\u7528\u7684\u8d27\u5e01\u5bf9\ncurrency_pairs = {\n    'EUR\/USD': 'EURUSD=X',\n    'CNY\/USD': 'CNYUSD=X',\n    'GBP\/USD': 'GBPUSD=X',\n    'AUD\/USD': 'AUDUSD=X',\n    'NZD\/USD': 'NZDUSD=X',\n    'USD\/CAD': 'USDCAD=X',\n    'USD\/CHF': 'USDCHF=X',\n    'USD\/JPY': 'JPY=X'\n}\n\n# \u521b\u5efa\u4e0b\u62c9\u83dc\u5355\u9009\u62e9\u8d27\u5e01\u5bf9\ncurrency_dropdown = widgets.Dropdown(\n    options=list(currency_pairs.keys()),\n    value='EUR\/USD',\n    description='Currency Pair:',\n    disabled=False\n)\n\n# \u521b\u5efa\u6309\u94ae\u4ee5\u89e6\u53d1\u66f4\u65b0\nupdate_button = widgets.Button(description=\"Update Chart\")\n\n# \u521b\u5efa\u8f93\u51fa\u533a\u57df\u7528\u4e8e\u663e\u793a\u56fe\u8868\noutput = widgets.Output()\n\n# \u83b7\u53d6\u6570\u636e\n        currency_data = yf.download(symbol, start='2023-01-01', end='2025-01-15')\n\n# \u68c0\u67e5\u6570\u636e\u662f\u5426\u4e3a\u7a7a\n        if currency_data.empty:\n            print(\"Failed to fetch data. Please check your internet connection or the currency pair symbol.\")\n        else:\n# \u63d0\u53d6 high\u3001low \u548c close\uff0c\u5e76\u786e\u4fdd\u5b83\u4eec\u662f Series\n            high = currency_data&#91;'High'].squeeze()  # \u5c06 DataFrame \u8f6c\u6362\u4e3a Series\n            low = currency_data&#91;'Low'].squeeze()    # \u5c06 DataFrame \u8f6c\u6362\u4e3a Series\n            close = currency_data&#91;'Close'].squeeze()  # \u5c06 DataFrame \u8f6c\u6362\u4e3a Series\n\n\n\n                # \u8ba1\u7b97 DMI, +DI, \u548c -DI\n                currency_data&#91;'DMI'] = adx.adx()\n                currency_data&#91;'+DI'] = adx.adx_pos()\n                currency_data&#91;'-DI'] = adx.adx_neg()\n\n                # \u4f7f\u7528\u79fb\u52a8\u5e73\u5747\u5e73\u6ed1 DMI, +DI, \u548c -DI\n                smoothing_window = 14  # \u53ef\u6839\u636e\u9700\u8981\u8c03\u6574\u7a97\u53e3\u5927\u5c0f\n                currency_data&#91;'DMI_Smooth'] = currency_data&#91;'DMI'].rolling(window=smoothing_window).mean()\n                currency_data&#91;'+DI_Smooth'] = currency_data&#91;'+DI'].rolling(window=smoothing_window).mean()\n                currency_data&#91;'-DI_Smooth'] = currency_data&#91;'-DI'].rolling(window=smoothing_window).mean()\n\n                # \u5220\u9664 NaN \u503c\n                currency_data.dropna(inplace=True)\n\n                # \u521b\u5efa\u65b0\u7684\u56fe\u8868\n                fig, ax = plt.subplots(2, 1, figsize=(14, 10))\n\n                # \u7ed8\u5236\u6536\u76d8\u4ef7\n                ax&#91;0].plot(currency_data&#91;'Close'], label=f'{selected_currency} Close', color='blue', linewidth=2)\n                ax&#91;0].set_title(f'{selected_currency} Closing Price', fontsize=16)\n                ax&#91;0].set_xlabel('Date', fontsize=12)\n                ax&#91;0].set_ylabel('Price', fontsize=12)\n                ax&#91;0].grid(True)\n                ax&#91;0].legend()<\/code><\/pre>\n\n\n\n<p><strong>\u4ee3\u7801\u91ca\u4e49\uff1a<\/strong><\/p>\n\n\n\n<p><strong>1. \u6211\u4eec\u9996\u5148\u8981\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>yfinance<\/code>&nbsp;\u83b7\u53d6\u8d27\u5e01\u6570\u636e\u3002<\/li>\n\n\n\n<li><code>matplotlib.pyplot<\/code>&nbsp;\u7528\u4e8e\u7ed8\u56fe\u3002<\/li>\n\n\n\n<li><code>ta.trend<\/code>&nbsp;\u7528\u4e8e ADX \u6307\u6807\u3002<\/li>\n\n\n\n<li><code>ipywidgets<\/code>&nbsp;\u7528\u4e8e\u521b\u5efa\u4ea4\u4e92\u5f0f\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>2. \u5b9a\u4e49\u53ef\u7528\u7684\u8d27\u5e01\u5bf9\uff1a<\/strong>\u5b57\u5178\u4e2d\u5305\u542b\u53ef\u7528\u7684\u8d27\u5e01\u5bf9\uff0c\u4f9b\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u3002<\/p>\n\n\n\n<p><strong>3. \u521b\u5efa\u4e0b\u62c9\u83dc\u5355\u5e76\u9009\u62e9\u8d27\u5e01\u5bf9\uff1a<\/strong>\u521b\u5efa\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\uff0c\u8ba9\u7528\u6237\u9009\u62e9\u8d27\u5e01\u5bf9\u3002<\/p>\n\n\n\n<p><strong>4 .\u83b7\u53d6\u6570\u636e\uff1a<\/strong>currency_data \u6839\u636e\u6240\u9009\u8d27\u5e01\u5bf9\uff0c\u4ee3\u7801\u4f1a\u4ece\u96c5\u864e\u8d22\u7ecf\u4e0b\u8f7d\u5386\u53f2\u6570\u636e\u3002<\/p>\n\n\n\n<p><strong>5. \u521d\u59cb\u5316 ADXIndicator\uff1a<\/strong>ADX \u4f7f\u7528\u6700\u9ad8\u4ef7\u3001\u6700\u4f4e\u4ef7\u548c\u6536\u76d8\u4ef7\u8ba1\u7b97\u3002<\/p>\n\n\n\n<p><strong>6. \u8ba1\u7b97 DMI\uff1a<\/strong>\u4ee3\u7801\u8ba1\u7b97 DMI\u3001+DI \u548c -DI \u503c\u3002<\/p>\n\n\n\n<p><strong>7. Smoothing\uff08\u5e73\u6ed1\uff09\uff1a<\/strong> \u91c7\u7528\u6eda\u52a8\u5e73\u5747\u6cd5\u5e73\u6ed1 DMI \u548c DI \u503c\uff0c\u4f7f\u5176\u66f4\u52a0\u6e05\u6670\u3002<\/p>\n\n\n\n<p><strong>8. \u7ed8\u56fe\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6536\u76d8\u4ef7\u548c\u5e73\u6ed1 DMI \u4f7f\u7528 Matplotlib \u7ed8\u5236\u3002<\/li>\n\n\n\n<li>\u8fd9\u4e9b\u56fe\u8868\u4ee5 ipywidgets \u683c\u5f0f\u663e\u793a\uff0c\u5141\u8bb8\u7528\u6237\u4ea4\u4e92\u5f0f\u5730\u76f4\u89c2\u4e86\u89e3\u4ef7\u683c\u548c ADX \u8d8b\u52bf\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5b8c\u6574\u4ee3\u7801\u5728\u6211\u7684Colab\u7b14\u8bb0\u672c\u91cc\uff0c\u53ef\u4ee5\u70b9\u51fb\u4e0b\u9762\u7684\u94fe\u63a5\u7533\u8bf7\uff1a<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/colab.research.google.com\/drive\/1-SiydSLz6BAcUfp5MjwltKdfJ_OJXSeu?usp=sharing\">https:\/\/colab.research.google.com\/drive\/1-SiydSLz6BAcUfp5MjwltKdfJ_OJXSeu?usp=sharing<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u5b9e\u4f8b\u5206\u6790<\/strong><\/h2>\n\n\n\n<p>\u60f3\u8c61\u4e00\u4e0b\uff0c\u5f53\u4f60\u770b\u5230 ADX \u4ece 35 \u5feb\u901f\u6500\u5347\u81f3\u9ad8\u70b9\uff0c\u968f\u540e\u5f00\u59cb\u56de\u843d\uff0c\u8fd9\u610f\u5473\u7740\u4ec0\u4e48\uff1f\u662f\u4e0d\u662f\u5e94\u8be5\u91cd\u65b0\u5ba1\u89c6\u4f60\u7684\u4ed3\u4f4d\u4e86\uff1f<\/p>\n\n\n\n<p>\u8fd9\u53ef\u80fd\u9884\u793a\u7740\u8d8b\u52bf\u53cd\u8f6c\u5373\u5c06\u5230\u6765\uff0c\u6b63\u662f\u6839\u636e\u5e02\u573a\u65b9\u5411\u4e70\u5165\u6216\u5356\u51fa\u7684\u7edd\u4f73\u65f6\u673a\u2026\u2026\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u770b\u4e0b\u9762\u51e0\u4e2a\u5b9e\u9645\u4f8b\u5b50\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-106.png\" alt=\"\" class=\"wp-image-3952\"\/><\/figure>\n\n\n\n<p>\u4e0a\u56fe\u662f\u4ece2023\u5e741\u6708\u52302024\u5e749\u6708\u7684EUR\/USD\u6708\u5ea6\u6536\u76d8\u4ef7\uff0c\u4ee5\u53ca\u76f8\u5e94\u7684\u65b9\u5411\u8fd0\u52a8\u6307\u6570\uff08DMI\uff09\u6307\u6807\uff0c\u5305\u62ecADX\u3001+DI\u3001-DI\u548cDMI\u9608\u503c\uff0825\uff09\u3002\u5206\u6790\u8981\u70b9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8d8b\u52bf\u5f3a\u5ea6<\/strong>\uff1aADX\u503c\u9ad8\u4e8e25\u8868\u793a\u8d8b\u52bf\u5f3a\u52b2\uff0c\u4f4e\u4e8e25\u5219\u53ef\u80fd\u8868\u793a\u8d8b\u52bf\u51cf\u5f31\u6216\u5e02\u573a\u6ce2\u52a8\u3002<\/li>\n\n\n\n<li><strong>\u6f5c\u5728\u8d8b\u52bf\u53cd\u8f6c<\/strong>\uff1a\u5f53ADX\u5728\u9ad8\u4f4d\uff08\u598235\uff09\u89c1\u9876\u5e76\u5f00\u59cb\u4e0b\u964d\u65f6\uff0c\u53ef\u80fd\u9884\u793a\u7740\u8d8b\u52bf\u53cd\u8f6c\uff0c\u6b64\u65f6\u5e94\u91cd\u65b0\u8bc4\u4f30\u4ed3\u4f4d\u3002<\/li>\n\n\n\n<li><strong>\u5b9e\u9645\u5e94\u7528<\/strong>\uff1a\u9ed1\u8272\u692d\u5706\u5708\u51fa\u7684\u90e8\u5206\u663e\u793a\u4e86ADX\u6307\u6807\u572835\u9644\u8fd1\u8fbe\u5230\u5cf0\u503c\u5e76\u5f00\u59cb\u4e0b\u964d\uff0c\u8fd9\u53ef\u80fd\u9884\u793a\u7740\u8d8b\u52bf\u53cd\u8f6c\u7684\u4fe1\u53f7\u3002\u5728+DI\u4e0a\u7a7f-DI\u4e14ADX\u9ad8\u4e8e25\u65f6\u8003\u8651\u505a\u591a\uff0c\u5728-DI\u4e0a\u7a7f+DI\u4e14ADX\u9ad8\u4e8e25\u65f6\u8003\u8651\u505a\u7a7a\u3002\u540c\u65f6\uff0c\u8bbe\u7f6e\u6b62\u635f\u548c\u6b62\u76c8\u4ee5\u6709\u6548\u7ba1\u7406\u98ce\u9669\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-107.png\" alt=\"\" class=\"wp-image-3953\"\/><\/figure>\n\n\n\n<p>GBP\/USD\u4ef7\u683c\u548c\u65b9\u5411\u8fd0\u52a8\u6307\u6570\uff08DMI\uff09\u65f6\uff0c\u9ed1\u8272\u692d\u5706\u5708\u51fa\u7684\u90e8\u5206\u6807\u5fd7\u7740ADX\u6307\u6807\u572835\u9644\u8fd1\u8fbe\u5230\u5cf0\u503c\u5e76\u5f00\u59cb\u4e0b\u964d\uff0c\u8fd9\u9884\u793a\u7740\u8d8b\u52bf\u53cd\u8f6c\u7684\u4fe1\u53f7\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5f53ADX\u4ece\u9ad8\u4f4d\u56de\u843d\u65f6\uff0c\u4ea4\u6613\u8005\u5e94\u5bc6\u5207\u5173\u6ce8\u5e02\u573a\u52a8\u6001\uff0c\u9700\u8981\u8c03\u6574\u4ed3\u4f4d\u6216\u51c6\u5907\u8fce\u63a5\u6f5c\u5728\u7684\u5e02\u573a\u8f6c\u5411\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/01\/image-108.png\" alt=\"\" class=\"wp-image-3954\"\/><\/figure>\n\n\n\n<p>\u4e0a\u56fe\u4e5f\u53ef\u4ee5\u7528\u540c\u6837\u7684\u65b9\u6cd5\u6765\u5206\u6790AUD\/USD\uff0cDMI\u6307\u6807\u663e\u793a\u53ef\u5728\u5f3a\u52b2\u7684\u718a\u5e02\u8d8b\u52bf\u4e2d\u8003\u8651\u505a\u7a7a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u89c2\u70b9\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<p>\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5e73\u5747\u65b9\u5411\u6307\u6570\uff08ADX\uff09\u7684\u6982\u5ff5\u3001\u5e94\u7528\u4ee5\u53ca\u5982\u4f55\u901a\u8fc7Python\u4ee3\u7801\u5b9e\u73b0\u548c\u53ef\u89c6\u5316ADX\uff0c\u5e2e\u52a9\u4ea4\u6613\u8005\u8bc6\u522b\u5e02\u573a\u8d8b\u52bf\u548c\u6f5c\u5728\u7684\u8d8b\u52bf\u53cd\u8f6c\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ADX\u6307\u6807\u662f\u8bc6\u522b\u5e02\u573a\u8d8b\u52bf\u5f3a\u5ea6\u7684\u5173\u952e\u5de5\u5177<\/strong>\uff0c\u80fd\u591f\u5e2e\u52a9\u4ea4\u6613\u8005\u5224\u65ad\u5e02\u573a\u662f\u5426\u5904\u4e8e\u5f3a\u52bf\u8d8b\u52bf\u72b6\u6001\u3002<\/li>\n\n\n\n<li><strong>\u8d8b\u52bf\u53cd\u8f6c\u7684\u9884\u793a<\/strong>\uff1aADX\u6307\u6570\u7684\u9ad8\u5cf0\u548c\u968f\u540e\u7684\u4e0b\u964d\u53ef\u80fd\u8868\u660e\u8d8b\u52bf\u7684\u5c3e\u58f0\uff0c\u4e3a\u4ea4\u6613\u8005\u63d0\u4f9b\u4e70\u5165\u6216\u5356\u51fa\u7684\u65f6\u673a\u3002<\/li>\n\n\n\n<li><strong>\u5229\u7528Python\u8fdb\u884cADX\u6307\u6807\u7684\u5b9e\u73b0\u548c\u53ef\u89c6\u5316<\/strong>\uff0c\u53ef\u4ee5\u901a\u8fc7ipywidgets\u521b\u5efa\u4ea4\u4e92\u5f0f\u7684\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528Matplotlib\u8fdb\u884c\u6570\u636e\u7ed8\u56fe\uff0c\u5e2e\u52a9\u4ea4\u6613\u8005\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u5e02\u573a\u52a8\u6001\u3002<\/li>\n\n\n\n<li><strong>\u4ea4\u6613\u8005\u5e94\u8be5\u91cd\u89c6DMI\u6307\u6807<\/strong>\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u63d0\u4f9b\u5e02\u573a\u8d8b\u52bf\u548c\u6f5c\u5728\u53cd\u8f6c\u7684\u91cd\u8981\u7ebf\u7d22\uff0c\u4ece\u800c\u6709\u52a9\u4e8e\u5236\u5b9a\u548c\u4f18\u5316\u4ea4\u6613\u7b56\u7565\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5b8c\u6574\u4ee3\u7801\u5728\u6211\u7684Colab\u7b14\u8bb0\u672c\u91cc\uff0c\u53ef\u4ee5\u70b9\u51fb\u4e0b\u9762\u7684\u94fe\u63a5\u7533\u8bf7\uff1a<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/colab.research.google.com\/drive\/1-SiydSLz6BAcUfp5MjwltKdfJ_OJXSeu?usp=sharing\">https:\/\/colab.research.google.com\/drive\/1-SiydSLz6BAcUfp5MjwltKdfJ_OJXSeu?usp=sharing<\/a><\/p>\n\n\n\n<p><em>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\uff0c\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u4e3a\u60a8\u5e26\u6765\u4e86\u65b0\u7684\u542f\u53d1\u548c\u5b9e\u7528\u7684\u77e5\u8bc6\uff01\u5982\u679c\u89c9\u5f97\u6709\u5e2e\u52a9\uff0c\u8bf7\u4e0d\u541d\u70b9\u8d5e\u548c\u5206\u4eab\uff0c\u60a8\u7684\u652f\u6301\u662f\u6211\u6301\u7eed\u521b\u4f5c\u7684\u52a8\u529b\u3002\u795d\u60a8\u6295\u8d44\u987a\u5229\uff0c\u6536\u76ca\u957f\u8679\uff01\u5982\u679c\u5bf9\u6587\u4e2d\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u6b22\u8fce\u7559\u8a00\uff0c\u6211\u4f1a\u5c3d\u5feb\u56de\u590d\uff01<\/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","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:\/\/www.laoyulaoyu.com\/index.php\/2025\/02\/17\/adx-%e6%b7%b1%e5%ba%a6%e6%8f%ad%e7%a7%98%ef%bc%9a%e7%b2%be%e5%87%86%e6%8d%95%e6%8d%89%e5%b8%82%e5%9c%ba%e4%ba%a4%e6%98%93%e8%b6%8b%e5%8a%bf%e5%8f%8d%e8%bd%ac%e7%9a%84%e7%a7%98%e8%af%80%ef%bc%81\/\">Continue reading<span class=\"screen-reader-text\">ADX \u6df1\u5ea6\u63ed\u79d8\uff1a\u7cbe\u51c6\u6355\u6349\u5e02\u573a\u4ea4\u6613\u8d8b\u52bf\u53cd\u8f6c\u7684\u79d8\u8bc0\uff01\uff08\u9644\u5b8c\u6574\u6e90\u7801\uff09<\/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,5,6],"class_list":{"0":"post-1904","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-aiinvest","7":"tag-ai","9":"tag-6","10":"entry"},"_links":{"self":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1904"}],"version-history":[{"count":1,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1904\/revisions"}],"predecessor-version":[{"id":1905,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1904\/revisions\/1905"}],"wp:attachment":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}