{"id":478,"date":"2024-05-30T14:42:08","date_gmt":"2024-05-30T06:42:08","guid":{"rendered":"https:\/\/blog.alltick.co\/?p=478"},"modified":"2025-04-23T16:25:08","modified_gmt":"2025-04-23T08:25:08","slug":"aroon-indicator","status":"publish","type":"post","link":"https:\/\/blog.alltick.co\/zh-CN\/aroon-indicator\/","title":{"rendered":"\u963f\u9686\u6307\u6807\u8be6\u89e3"},"content":{"rendered":"\n<p>Aroon Indicator\uff0c<strong>\u963f\u9686\u6307\u6807<\/strong>\uff0c\u5b83\u662f\u7531 Tushar Chande \u5728\u4e0a\u4e2a\u4e16\u7eaa 90 \u5e74\u4ee3\u5f00\u53d1\u7684\u4e00\u79cd\u6280\u672f\u6307\u6807\uff0c\u5b83\u7684\u4e3b\u8981\u7528\u9014\u662f\u5e2e\u52a9\u6211\u4eec\u8bc6\u522b\u5e02\u573a\u8d8b\u52bf\u7684\u53d8\u5316\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u89c2\u5bdf\u963f\u9686\u6307\u6807\u6765\u5224\u65ad\u8d44\u4ea7\u4ef7\u683c\u7684\u672a\u6765\u53d8\u5316\uff0c\u4ee5\u53ca\u8d8b\u52bf\u7684\u6f5c\u5728\u52a8\u5411\u3002\u963f\u9686\u6307\u6807\u8bc4\u4f30\u4e86\u4ef7\u683c\u6ce2\u52a8\u7684\u9ad8\u70b9\u548c\u4f4e\u70b9\u4e4b\u95f4\u7684\u65f6\u95f4\u6bb5\u3002\u5176\u6838\u5fc3\u7406\u5ff5\u662f\uff0c\u4e00\u4e2a\u5f3a\u52b2\u7684\u4e0a\u6da8\u8d8b\u52bf\u4f1a\u5c55\u73b0\u51fa\u65b0\u7684\u9ad8\u70b9\uff0c\u800c\u4e00\u4e2a\u5f3a\u70c8\u7684\u4e0b\u8dcc\u8d8b\u52bf\u5219\u4f1a\u663e\u9732\u51fa\u65b0\u7684\u4f4e\u70b9\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u963f\u9686\u6307\u6807\u5728\u5e02\u573a\u4e2d\u80fd\u591f\u5feb\u901f\u83b7\u5229\u7684\u80fd\u529b\uff0c\u8bb8\u591a\u8d85\u77ed\u7ebf\u4ea4\u6613\u7b56\u7565\u90fd\u4ee5\u5b83\u4e3a\u57fa\u7840\u3002\u5b83\u662f\u5c11\u6570\u51e0\u4e2a\u53ef\u4ee5\u5e2e\u52a9\u4ea4\u6613\u5458\u8bc6\u522b\u8d8b\u52bf\u5e76\u5728\u4ea4\u6613\u7b56\u7565\u4e2d\u53d6\u5f97\u6301\u7eed\u6210\u529f\u7684\u6280\u672f\u6307\u6807\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p>\u6bcf\u4f4d\u7ecf\u9a8c\u4e30\u5bcc\u7684\u77ed\u7ebf\u64cd\u76d8\u624b\u90fd\u4f1a\u6ce8\u610f\u5230\uff0c\u8d44\u4ea7\u4ef7\u683c\u901a\u5e38\u4f1a\u5728\u4e00\u5b9a\u8303\u56f4\u5185\u6ce2\u52a8\uff0c\u4ef7\u683c\u4f1a\u6709\u51b2\u52a8\u6027\u7684\u53d8\u52a8\u3002\u5728\u4ea4\u6613\u65f6\u95f4\u91cc\uff0c\u4ef7\u683c\u4e0a\u6da8\u6216\u4e0b\u8dcc\u7684\u65f6\u95f4\u5360\u6bd4\u901a\u5e38\u5f88\u5c0f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u963f\u9686\u6307\u6807\u7684\u6838\u5fc3\uff1a\u4e0a\u5347\u7ebf\u4e0e\u4e0b\u964d\u7ebf<\/strong><\/h2>\n\n\n\n<p>\u963f\u9686\u6307\u6807\u7684\u8ba1\u7b97\u516c\u5f0f\u65e8\u5728\u9884\u6d4b\u8d44\u4ea7\u4ef7\u683c\u884c\u4e3a\u4f55\u65f6\u4ece\u533a\u95f4\u4ea4\u6613\u72b6\u6001\u8f6c\u53d8\u4e3a\u8d8b\u52bf\u72b6\u6001\uff0c\u4ece\u800c\u786e\u5b9a\u5efa\u7acb<a href=\"https:\/\/blog.alltick.co\/position-trading\/\"><strong>\u591a\u5934\u6216\u7a7a\u5934\u5934\u5bf8<\/strong><\/a>\u7684\u65f6\u673a\u3002\u5b83\u8fd8\u53ef\u4ee5\u663e\u793a\u4e00\u4e2a\u8bc1\u5238\u7684\u4ef7\u683c\u884c\u4e3a\u662f\u5426\u5373\u5c06\u505c\u6b62\u8d8b\u52bf\u5e76\u5f00\u59cb\u5de9\u56fa\u3002<\/p>\n\n\n\n<p>\u5728\u89c6\u89c9\u4e0a\uff0c\u963f\u9686\u6307\u6807\u663e\u793a\u5728\u65e5\u7ebf\u56fe\u4e0a\uff0c\u5176\u4e2d\u4e0a\u884c\u7ebf\u4ee3\u8868\u540e\u5e02\u5c06\u51fa\u73b0\u4e0a\u5347\u8d8b\u52bf\uff0c\u4e0b\u884c\u7ebf\u5219\u76f8\u53cd\u3002<\/p>\n\n\n\n<p><strong>\u8be5\u6307\u6807\u901a\u5e38\u57fa\u4e8e 25 \u4e2a\u5468\u671f\uff0c\u5176\u503c\u4ece 0 \u5230 100 \u8868\u793a\u3002\u5f53\u963f\u9686\u5411\u4e0a\u6307\u6807\u8d85\u8fc7 50 \u65f6\uff0c\u610f\u5473\u7740\u5728\u8fc7\u53bb\u7684 12.5 \u4e2a\u5468\u671f\u5185\u4ef7\u683c\u521b\u4e0b\u4e86\u65b0\u9ad8\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u963f\u9686\u5411\u4e0b\u6307\u6807\u4e5f\u662f\u5982\u6b64\u3002\u5f53\u5b83\u8d85\u8fc7 50 \u65f6\uff0c\u8868\u793a\u5728\u8fc7\u53bb\u7684 12.5 \u4e2a\u5468\u671f\u5185\u521b\u4e0b\u4e86\u65b0\u4f4e\u3002\u5982\u679c\u6570\u503c\u63a5\u8fd1100\u5219\u4ee3\u8868\u6781\u5176\u5f3a\u52b2\u7684\u8d8b\u52bf\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"452\" src=\"https:\/\/i0.wp.com\/blog.alltick.co\/wp-content\/uploads\/2024\/05\/aroon-indicator.jpg?resize=800%2C452&#038;ssl=1\" alt=\"\u963f\u9686\u6307\u6807\" class=\"wp-image-479\" srcset=\"https:\/\/i0.wp.com\/blog.alltick.co\/zh-CN\/wp-content\/uploads\/2024\/05\/aroon-indicator.jpg?w=833&amp;ssl=1 833w, https:\/\/i0.wp.com\/blog.alltick.co\/zh-CN\/wp-content\/uploads\/2024\/05\/aroon-indicator.jpg?resize=300%2C170&amp;ssl=1 300w, https:\/\/i0.wp.com\/blog.alltick.co\/zh-CN\/wp-content\/uploads\/2024\/05\/aroon-indicator.jpg?resize=768%2C434&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u963f\u9686\u6307\u6807\u662f\u5982\u4f55\u8ba1\u7b97\u7684<\/strong><\/h2>\n\n\n\n<p>\u963f\u9686\u6307\u6807\u7684\u8ba1\u7b97\u65b9\u6cd5\u4e3b\u8981\u662f\u901a\u8fc7\u963f\u9686\u4e0a\u5347\u7ebf\u6216\u4e0b\u964d\u7ebf\u6765\u663e\u793a\u5f53\u524d\u4ef7\u683c\u8ddd\u79bb\u6700\u8fd1\u7684\u9ad8\u70b9\u6216\u4f4e\u70b9\u5df2\u7ecf\u591a\u4e45\u4e86\u3002\u8fd9\u4e24\u6761\u7ebf\u7684\u6570\u503c\u662f\u7528\u767e\u5206\u6bd4\u6765\u8868\u793a\u7684\uff0c<strong>\u8303\u56f4\u662f\u4ece 0 \u5230 100<\/strong>\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u963f\u9686\u4e0a\u5347\u7ebf\u63a5\u8fd1 100%\uff0c\u90a3\u4e48\u8bf4\u660e\u5e02\u573a\u5f53\u524d\u7684\u4e0a\u6da8\u8d8b\u52bf\u5f88\u5f3a\u52b2\u3002\u540c\u6837\u5730\uff0c\u5982\u679c\u963f\u9686\u4e0b\u964d\u7ebf\u63a5\u8fd1 100%\uff0c\u5219\u8868\u793a\u6700\u8fd1\u7684\u4f4e\u70b9\u53d1\u751f\u5728\u4e0d\u4e45\u4e4b\u524d\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u60f3\u8ba1\u7b97\u5f53\u524d\u7684\u963f\u9686\u4e0a\u5347\u503c\uff0c\u4f60\u9700\u8981\u786e\u5b9a\u8fc7\u53bb 20 \u5929\u4e2d\u4ef7\u683c\u6700\u9ad8\u7684\u65f6\u95f4\u70b9\u3002\u6bd4\u5982\u8bf4\u662f\u4e24\u5929\u524d\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u65b9\u7a0b\u6765\u8ba1\u7b97\u963f\u9686\u4e0a\u5347\u503c\uff1a<\/p>\n\n\n\n<p><strong>\u963f\u9686\u4e0a\u5347\u503c = (20 &#8211; 2) * 100\/20 = 90<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u4e4b\u524d\u7684\u9ad8\u70b9\u662f\u5728 15 \u5929\u524d\uff0c\u90a3\u4e48\u8be5\u503c\u5c06\u662f 25\u300220 \u5929\u7684\u9ad8\u70b9\u8ddd\u79bb\u73b0\u5728\u8d8a\u8fd1\uff0c\u963f\u9686\u4e0a\u5347\u503c\u5c31\u4f1a\u8d8a\u5927\u3002\u5982\u679c\u8fd8\u6709\u4e00\u4e2a\u8f83\u4f4e\u7684\u963f\u9686\u4e0b\u964d\u503c\u6765\u8bc1\u5b9e\uff0c\u8fd9\u53ef\u4ee5\u88ab\u7406\u89e3\u4e3a\u4e00\u4e2a\u4e0a\u5347\u8d8b\u52bf\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u963f\u9686\u6307\u6807\u7684\u6570\u503c\u8be5\u600e\u4e48\u8bfb\uff1f<\/strong><\/h2>\n\n\n\n<p>\u5728\u770b\u963f\u9686\u6307\u6807\u65f6\uff0c\u6709\u4e09\u4e2a\u5173\u952e\u6c34\u5e73\u4f60\u9700\u8981\u7279\u522b\u7559\u610f\uff1a0\u300150 \u548c 100\u3002\u5982\u679c\u963f\u9686\u4e0a\u5347\u7ebf\u8d85\u8fc7 50 \u800c\u963f\u9686\u4e0b\u964d\u7ebf\u4f4e\u4e8e 50\uff0c\u5219\u5e02\u573a\u4e3a\u591a\u5934\u3002\u8fd9\u610f\u5473\u7740\uff0c\u65b0\u7684\u65e5\u5185\u9ad8\u70b9\u6bd4\u65b0\u7684\u65e5\u5185\u4f4e\u70b9\u66f4\u6709\u53ef\u80fd\u51fa\u73b0\u3002\u5bf9\u4e8e\u4e0b\u964d\u8d8b\u52bf\u6765\u8bf4\uff0c\u60c5\u51b5\u5219\u76f8\u53cd\u3002<\/p>\n\n\n\n<p><strong>\u8bc6\u522b\u5de9\u56fa\u9636\u6bb5<\/strong><\/p>\n\n\n\n<p>\u6709\u4e24\u4e2a\u8ff9\u8c61\u8868\u660e\u5e02\u573a\u6b63\u5728\u8fdb\u5165\u5de9\u56fa\u9636\u6bb5\u3002\u7b2c\u4e00\u4e2a\u8ff9\u8c61\u662f\u963f\u9686\u4e0a\u5347\u7ebf\u548c\u963f\u9686\u4e0b\u964d\u7ebf\u90fd\u4f4e\u4e8e 50\u3002\u53e6\u4e00\u4e2a\u662f\u5f53\u963f\u9686\u4e0a\u5347\u7ebf\u548c\u963f\u9686\u4e0b\u964d\u7ebf\u540c\u65f6\u5411\u4e0b\u79fb\u52a8\u65f6\u3002\u5f53\u4e24\u4e2a\u8bfb\u6570\u90fd\u4f4e\u4e8e 50 \u65f6\uff0c\u8fd9\u8868\u660e\u5e02\u573a\u6b63\u5904\u4e8e\u5de9\u56fa\u9636\u6bb5\u3002<\/p>\n\n\n\n<p>\u4e24\u4e2a\u6307\u6807\u90fd\u4f4e\u4e8e 50\uff0c\u8868\u660e\u5728\u8fc7\u53bb\u7684 13 \u5929\u5185\u6ca1\u6709\u53d1\u73b0\u65b0\u7684\u9ad8\u70b9\u6216\u4f4e\u70b9\u3002\u5f53\u8fd9\u4e24\u6761\u7ebf\u5e73\u884c\u79fb\u52a8\u65f6\uff0c\u8868\u660e\u5e02\u573a\u5f62\u6210\u4e86\u4ea4\u6613\u8303\u56f4\u3002<\/p>\n\n\n\n<p><strong>\u65b0\u8d8b\u52bf\u5373\u5c06\u51fa\u73b0<\/strong><\/p>\n\n\n\n<p>\u65b0\u8d8b\u52bf\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5\u3002\u7b2c\u4e00\u4e2a\u4fe1\u53f7\u662f\u5f53\u963f\u9686\u4e0a\u5347\u7ebf\u8d85\u8fc7\u963f\u9686\u4e0b\u964d\u7ebf\u3002\u8fd9\u8868\u793a\u65b0\u7684\u9ad8\u70b9\u6bd4\u65b0\u7684\u4f4e\u70b9\u66f4\u9891\u7e41\u51fa\u73b0\u3002\u63a5\u4e0b\u6765\u7684\u4fe1\u53f7\u662f\u5f53\u963f\u9686\u4e0a\u5347\u7ebf\u8d85\u8fc7 50 \u800c\u963f\u9686\u4e0b\u964d\u7ebf\u4f4e\u4e8e 50\u3002\u6700\u540e\u7684\u4fe1\u53f7\u662f\u5f53\u963f\u9686\u4e0a\u5347\u7ebf\u8fbe\u5230 100\uff0c\u800c\u963f\u9686\u4e0b\u964d\u7ebf\u4fdd\u6301\u4f4e\u4e8e 30\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python\u4ee3\u7801\u793a\u4f8b<\/strong><\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import requests\nimport pandas as pd\n\n# \u4eceAlltick\u7684\u5b9e\u65f6\u884c\u60c5\u63a5\u53e3\u83b7\u53d6\u6700\u65b0\u7684\u4ef7\u683c\ndef get_stock_price(symbol):\n    response = requests.get(url)\n    data = response.json()\n    return data[\"price\"]\n\ndef calculate_aroon_indicator(prices, period=25):\n    highs = prices.rolling(window=period).max()\n    lows = prices.rolling(window=period).min()\n    \n    aroon_up = ((period - (prices - lows).idxmax()) \/ period) * 100\n    aroon_down = ((period - (prices - highs).idxmin()) \/ period) * 100\n    \n    return aroon_up, aroon_down\n\nif __name__ == \"__main__\":\n    symbol = \"AAPL\"\n    price = get_stock_price(symbol)\n    print(f\"Current price of {symbol}: ${price}\")\n\n    # \u83b7\u53d6\u8fc7\u53bb\u4e00\u6bb5\u65f6\u95f4\u7684\u80a1\u4ef7\u6570\u636e\uff0c\u6b64\u5904\u5047\u8bbe\u4f7f\u7528pandas\u7684DataFrame\uff0c\u4f60\u53ef\u4ee5\u7528\u4f60\u7684\u5b9e\u9645\u6570\u636e\u66ff\u6362\n    # \u8fd9\u91cc\u4ec5\u7528\u4e86\u4e00\u5217\u6570\u636e\uff0c\u5373\u80a1\u4ef7\uff0c\u4f60\u53ef\u80fd\u8fd8\u9700\u8981\u5305\u62ec\u65e5\u671f\u7b49\u4fe1\u606f\n    historical_prices = pd.DataFrame({\"Price\": [price]})\n    \n    # \u8ba1\u7b97\u963f\u9686\u6307\u6807\n    aroon_up, aroon_down = calculate_aroon_indicator(historical_prices[\"Price\"])\n    print(f\"Aroon Up: {aroon_up}%\")\n    print(f\"Aroon Down: {aroon_down}%\")\n<\/pre>\n\n\n\n<p><strong>\u3010\u63a8\u8350\u9605\u8bfb\u3011<a href=\"https:\/\/blog.alltick.co\/forex-trading-strategies\/\">Python\u641e\u91cf\u5316\uff1a\u5e38\u89c1\u7684\u5916\u6c47\u4ea4\u6613\u7b56\u7565<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aroon Indicator\uff0c\u963f\u9686\u6307\u6807\uff0c\u5b83\u662f\u7531 Tushar Chande \u5728\u4e0a\u4e2a\u4e16\u7eaa 90 \u5e74\u4ee3\u5f00\u53d1\u7684\u4e00\u79cd&#8230;<\/p>\n","protected":false},"author":1,"featured_media":483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-478","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tick-data-wiki"],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts\/478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/comments?post=478"}],"version-history":[{"count":4,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts\/478\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts\/478\/revisions\/761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/media\/483"}],"wp:attachment":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/media?parent=478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/categories?post=478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/tags?post=478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}