{"id":6396,"date":"2025-06-02T14:24:37","date_gmt":"2025-06-04T07:07:37","guid":{"rendered":"https:\/\/badgameshow.com\/steven\/?p=6396"},"modified":"2025-06-04T14:24:37","modified_gmt":"2025-06-04T07:07:37","slug":"%e5%ad%b8%e7%bf%92%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e5%a8%81%e5%bb%89%e6%8c%87%e6%a8%99%e5%80%92%e5%82%b3%e9%81%9e%e9%80%9a%e9%81%93williamrechochannel%e4%ba%a4%e6%98%93%e6%8c%87%e6%a8%99","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/steven\/python\/%e5%ad%b8%e7%bf%92%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e5%a8%81%e5%bb%89%e6%8c%87%e6%a8%99%e5%80%92%e5%82%b3%e9%81%9e%e9%80%9a%e9%81%93williamrechochannel%e4%ba%a4%e6%98%93%e6%8c%87%e6%a8%99\/","title":{"rendered":"\u4f7f\u7528 Python \u5be6\u73fe\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053 (William %R Echo Channel) \u7684\u6700\u4f73\u5be6\u8e10"},"content":{"rendered":"<p><meta name=\"keywords\" content=\"Python, \u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053, William %R Echo Channel, \u4ea4\u6613\u6307\u6a19, \u4f7f\u7528\u6642\u6a5f, \u80a1\u7968\u5206\u6790\"><\/p>\n<h1>\u4f7f\u7528 Python \u5be6\u73fe\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053 (William %R Echo Channel) \u7684\u6700\u4f73\u5be6\u8e10<\/h1>\n<p>\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053 (William %R Echo Channel) \u662f\u4e00\u7a2e\u6d41\u884c\u7684\u6280\u8853\u5206\u6790\u6307\u6a19\uff0c\u80fd\u5e6b\u52a9\u6295\u8cc7\u8005\u5224\u65b7\u80a1\u7968\u50f9\u683c\u8d70\u52e2\u4e26\u63d0\u4f9b\u4ea4\u6613\u4fe1\u865f\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\u7684\u6700\u65b0\u4f7f\u7528\u6642\u6a5f\u3001Python \u5be6\u4f5c\u7bc4\u4f8b\u3001\u5e38\u898b\u932f\u8aa4\u6392\u9664\u6280\u5de7\u4ee5\u53ca\u5ef6\u4f38\u61c9\u7528\uff0c\u5e6b\u52a9\u60a8\u66f4\u6709\u6548\u5730\u5229\u7528\u9019\u500b\u6307\u6a19\u63d0\u5347\u6295\u8cc7\u6536\u76ca\u3002<\/p>\n<h2>\u4ec0\u9ebc\u662f\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\uff1f<\/h2>\n<p>\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\u662f\u4e00\u7a2e\u57fa\u65bc\u5a01\u5ec9\u6307\u6a19\u7684\u6280\u8853\u5206\u6790\u5de5\u5177\uff0c\u901a\u5e38\u7528\u65bc\u77ed\u671f\u5167\u5224\u65b7\u8cc7\u7522\u7684\u8d85\u8cb7\u6216\u8d85\u8ce3\u72c0\u614b\u3002\u8a72\u6307\u6a19\u7bc4\u570d\u5f9e -100 \u5230 0\uff0c\u6578\u503c\u8d8a\u63a5\u8fd1 -100\uff0c\u8868\u793a\u8cc7\u7522\u8d8a\u88ab\u4f4e\u4f30\uff1b\u800c\u63a5\u8fd1 0 \u5247\u8868\u793a\u8cc7\u7522\u88ab\u9ad8\u4f30\u3002\u9019\u4f7f\u5f97\u5a01\u5ec9\u6307\u6a19\u6210\u70ba\u77ed\u671f\u4ea4\u6613\u8005\u7684\u91cd\u8981\u5de5\u5177\u3002<\/p>\n<h2>\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\u7684\u4f7f\u7528\u6642\u6a5f<\/h2>\n<p>\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\u4e3b\u8981\u6709\u4ee5\u4e0b\u5e7e\u500b\u4f7f\u7528\u6642\u6a5f\uff1a<\/p>\n<ul>\n<li><strong>\u8da8\u52e2\u5224\u65b7\uff1a<\/strong>\u7576\u5a01\u5ec9\u6307\u6a19\u7684\u7dda\u689d\u4e0a\u5347\u6642\uff0c\u8868\u793a\u80a1\u7968\u50f9\u683c\u53ef\u80fd\u6b63\u5728\u4e0a\u6f32\uff1b\u53cd\u4e4b\uff0c\u7576\u7dda\u689d\u4e0b\u964d\u6642\uff0c\u8868\u793a\u50f9\u683c\u53ef\u80fd\u6b63\u5728\u4e0b\u8dcc\u3002<\/li>\n<li><strong>\u4ea4\u6613\u6a5f\u6703\uff1a<\/strong>\u7576\u5a01\u5ec9\u6307\u6a19\u4e0a\u5347\u5230 -20 \u4ee5\u4e0a\u6642\uff0c\u53ef\u80fd\u9810\u793a\u8457\u8cc7\u7522\u8d85\u8cb7\uff0c\u6295\u8cc7\u8005\u53ef\u8003\u616e\u8ce3\u51fa\uff1b\u7576\u6307\u6a19\u4e0b\u964d\u5230 -80 \u4ee5\u4e0b\u6642\uff0c\u5247\u53ef\u80fd\u9810\u793a\u8cc7\u7522\u8d85\u8ce3\uff0c\u6295\u8cc7\u8005\u53ef\u8003\u616e\u8cb7\u5165\u3002<\/li>\n<\/ul>\n<h2>Python\u7bc4\u4f8b<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u500b\u4f7f\u7528 Python \u7e6a\u88fd\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\u7684\u7bc4\u4f8b\uff1a<\/p>\n<p>&#8220;`python<br \/>\nimport pandas as pd<br \/>\nimport matplotlib.pyplot as plt<\/p>\n<p># \u8b80\u53d6\u8cc7\u6599<br \/>\ndata = pd.read_csv(&#8216;data.csv&#8217;)<\/p>\n<p># \u8a08\u7b97\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053<br \/>\ndata[&#8216;william_r&#8217;] = (data[&#8216;high&#8217;] &#8211; data[&#8216;close&#8217;]) \/ (data[&#8216;high&#8217;] &#8211; data[&#8216;low&#8217;]) * -100<\/p>\n<p># \u7e6a\u88fd\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053<br \/>\nplt.figure(figsize=(12, 6))<br \/>\nplt.plot(data[&#8216;william_r&#8217;], label=&#8217;William %R&#8217;, color=&#8217;blue&#8217;)<br \/>\nplt.axhline(y=-20, color=&#8217;red&#8217;, linestyle=&#8217;&#8211;&#8216;, label=&#8217;\u8d85\u8cb7\u5883\u754c (-20)&#8217;)<br \/>\nplt.axhline(y=-80, color=&#8217;green&#8217;, linestyle=&#8217;&#8211;&#8216;, label=&#8217;\u8d85\u8ce3\u5883\u754c (-80)&#8217;)<br \/>\nplt.title(&#8216;William %R Echo Channel&#8217;)<br \/>\nplt.xlabel(&#8216;\u6642\u9593&#8217;)<br \/>\nplt.ylabel(&#8216;William %R&#8217;)<br \/>\nplt.legend()<br \/>\nplt.grid()<br \/>\nplt.show()<br \/>\n&#8220;`<\/p>\n<p>\u9019\u6bb5\u7a0b\u5f0f\u78bc\u5c07\u6703\u8b80\u53d6\u4e00\u500b CSV \u6a94\u6848\uff0c\u8a08\u7b97\u5a01\u5ec9\u6307\u6a19\u4e26\u7e6a\u88fd\u51fa\u4f86\u3002\u901a\u904e\u660e\u78ba\u7684\u8d85\u8cb7\u548c\u8d85\u8ce3\u7dda\uff0c\u6295\u8cc7\u8005\u53ef\u4ee5\u66f4\u76f4\u89c0\u5730\u5224\u65b7\u4f55\u6642\u9032\u884c\u4ea4\u6613\u3002<\/p>\n<h2>\u5e38\u898b\u932f\u8aa4\u6392\u9664<\/h2>\n<p>\u5728\u4f7f\u7528\u5a01\u5ec9\u6307\u6a19\u6642\uff0c\u60a8\u53ef\u80fd\u6703\u9047\u5230\u4ee5\u4e0b\u554f\u984c\uff1a<\/p>\n<p>&#8211; **\u6578\u64da\u4e0d\u4e00\u81f4**\uff1a\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u96c6\u4e2d\u5305\u542b\u8db3\u5920\u7684\u6b77\u53f2\u6578\u64da\uff0c\u5426\u5247\u8a08\u7b97\u51fa\u7684\u6307\u6a19\u610f\u7fa9\u4e0d\u5927\u3002<br \/>\n&#8211; **\u53c3\u6578\u8a2d\u5b9a\u932f\u8aa4**\uff1a\u5a01\u5ec9\u6307\u6a19\u7684\u8a08\u7b97\u57fa\u65bc\u9ad8\u3001\u4f4e\u3001\u6536\u76e4\u50f9\uff0c\u8acb\u78ba\u4fdd\u9019\u4e9b\u6578\u64da\u6b63\u78ba\u7121\u8aa4\u3002<br \/>\n&#8211; **\u904e\u5ea6\u4f9d\u8cf4\u6307\u6a19**\uff1a\u5a01\u5ec9\u6307\u6a19\u61c9\u8207\u5176\u4ed6\u6280\u8853\u5206\u6790\u5de5\u5177\u642d\u914d\u4f7f\u7528\uff0c\u4ee5\u7372\u5f97\u66f4\u5168\u9762\u7684\u5e02\u5834\u89e3\u8b80\u3002<\/p>\n<h2>\u5ef6\u4f38\u61c9\u7528<\/h2>\n<p>\u5a01\u5ec9\u6307\u6a19\u4e0d\u50c5\u9650\u65bc\u80a1\u7968\u5e02\u5834\uff0c\u9084\u53ef\u61c9\u7528\u65bc\u5176\u4ed6\u8cc7\u7522\u985e\u5225\uff0c\u5982\u5916\u532f\u3001\u5546\u54c1\u7b49\u3002\u6295\u8cc7\u8005\u53ef\u4ee5\u4f7f\u7528\u76f8\u540c\u7684\u908f\u8f2f\u4f86\u5224\u65b7\u9019\u4e9b\u5e02\u5834\u7684\u8d85\u8cb7\u548c\u8d85\u8ce3\u72c0\u614b\uff0c\u5f9e\u800c\u5236\u5b9a\u76f8\u61c9\u7684\u4ea4\u6613\u7b56\u7565\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u53c3\u8003 [\u9019\u7bc7\u6559\u5b78\u6587\u7ae0](https:\/\/vocus.cc\/article\/60c5c8a4fd8978000165e1f7) \u9032\u4e00\u6b65\u4e86\u89e3 Python \u5728\u91d1\u878d\u5206\u6790\u4e2d\u7684\u61c9\u7528\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\u662f\u4e00\u7a2e\u5f37\u5927\u7684\u4ea4\u6613\u6307\u6a19\uff0c\u80fd\u5e6b\u52a9\u6295\u8cc7\u8005\u5224\u65b7\u80a1\u7968\u50f9\u683c\u8d70\u52e2\u4e26\u6293\u4f4f\u4ea4\u6613\u6a5f\u6703\u3002\u672c\u6587\u4ecb\u7d39\u4e86\u5176\u4f7f\u7528\u6642\u6a5f\u3001Python \u5be6\u4f5c\u7bc4\u4f8b\u53ca\u932f\u8aa4\u6392\u9664\u6280\u5de7\uff0c\u671f\u671b\u5e6b\u52a9\u60a8\u5728\u6295\u8cc7\u4e2d\u53d6\u5f97\u66f4\u597d\u7684\u6210\u679c\u3002<\/p>\n<h2>Q&#038;A\uff08\u5e38\u898b\u554f\u984c\u89e3\u7b54\uff09<\/h2>\n<ul>\n<li><strong>Q: \u5a01\u5ec9\u6307\u6a19\u7684\u6700\u4f73\u4f7f\u7528\u6642\u9593\u662f\u4ec0\u9ebc\u6642\u5019\uff1f<\/strong><br \/>A: \u901a\u5e38\u5728\u77ed\u671f\u5167\uff0c\u59821\u5929\u81f31\u9031\u7684\u4ea4\u6613\u4e2d\uff0c\u5a01\u5ec9\u6307\u6a19\u6548\u679c\u6700\u4f73\u3002<\/li>\n<li><strong>Q: \u5982\u4f55\u9078\u64c7\u5408\u9069\u7684\u80a1\u7968\u9032\u884c\u5206\u6790\uff1f<\/strong><br \/>A: \u900f\u904e\u57fa\u672c\u9762\u5206\u6790\u548c\u6280\u8853\u9762\u5206\u6790\u76f8\u7d50\u5408\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u9078\u64c7\u5408\u9069\u7684\u80a1\u7968\u3002<\/li>\n<li><strong>Q: \u662f\u5426\u53ef\u4ee5\u5c07\u5a01\u5ec9\u6307\u6a19\u8207\u5176\u4ed6\u6307\u6a19\u642d\u914d\u4f7f\u7528\uff1f<\/strong><br \/>A: \u662f\u7684\uff0c\u53ef\u4ee5\u8207\u76f8\u5c0d\u5f37\u5f31\u6307\u6a19 (RSI) \u6216\u79fb\u52d5\u5e73\u5747\u7dda\u7b49\u5176\u4ed6\u6307\u6a19\u642d\u914d\u4f7f\u7528\uff0c\u4ee5\u7372\u5f97\u66f4\u6e96\u78ba\u7684\u4ea4\u6613\u4fe1\u865f\u3002<\/li>\n<\/ul>\n<p>&#8212;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6458\u8981\uff1a\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053(William%REchoChannel)\u662f\u4e00\u7a2e\u4ea4\u6613\u6307\u6a19\uff0c\u53ef\u4ee5\u5e6b\u52a9\u6295\u8cc7\u8005\u66f4\u597d\u5730\u5206\u6790\u80a1\u7968\u5e02\u5834\uff0c\u4e26\u63d0\u4f9b\u66f4\u597d\u7684\u4ea4\u6613\u6c7a\u7b56\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u4f7f\u7528Python\u4f86\u5be6\u73fe\u5a01\u5ec9\u6307\u6a19\u5012\u50b3\u905e\u901a\u9053\uff0c\u4ee5\u53ca\u5b83\u7684\u4f7f\u7528\u6642\u6a5f\u3002<\/p>\n","protected":false},"author":1,"featured_media":2518,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[18,189],"tags":[15,188],"class_list":["post-6396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-189","tag-python","tag-188"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/badgameshow.com\/steven\/wp-content\/uploads\/2022\/12\/DALL\u00b7E-2022-12-28-14.25.55-\u62f7\u8c9d2.png","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pcFK27-1Fa","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/6396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/comments?post=6396"}],"version-history":[{"count":2,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/6396\/revisions"}],"predecessor-version":[{"id":12714,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/6396\/revisions\/12714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/media\/2518"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/media?parent=6396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/categories?post=6396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/tags?post=6396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}