{"id":1438,"date":"2024-10-19T07:41:00","date_gmt":"2024-10-18T23:41:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1438"},"modified":"2024-09-22T15:50:39","modified_gmt":"2024-09-22T07:50:39","slug":"%e5%9c%a8-tradingview-%e4%b8%ad%e8%ae%be%e8%ae%a1%e5%87%ba%e8%b6%85%e6%a3%92%e7%9a%84%e4%ba%a4%e6%98%93%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/laoyulaoyu.com\/index.php\/2024\/10\/19\/%e5%9c%a8-tradingview-%e4%b8%ad%e8%ae%be%e8%ae%a1%e5%87%ba%e8%b6%85%e6%a3%92%e7%9a%84%e4%ba%a4%e6%98%93%e7%ad%96%e7%95%a5\/","title":{"rendered":"\u5728 TradingView \u4e2d\u8bbe\u8ba1\u51fa\u8d85\u68d2\u7684\u4ea4\u6613\u7b56\u7565"},"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-large\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/09\/image-64-1024x576.png\" alt=\"\" class=\"wp-image-1844\"\/><\/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><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u672c\u6587\u4ecb\u7ecd\u4e86\u5728 TradingView \u4e0a\u5f00\u53d1\u4e00\u6d41\u4ea4\u6613\u7b56\u7565\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u662f\u901a\u8fc7 Pine Script \u7f16\u5199\u7684 RSI \u7b80\u5355\u53cd\u8f6c\u7b56\u7565\u3002<\/mark>\u7b80\u5355\u53cd\u8f6c\u7b56\u7565\u662f\u4e00\u79cd\u57fa\u4e8e Relative Strength Index\uff08\u76f8\u5bf9\u5f3a\u5f31\u6307\u6570\uff09\u7684\u4ea4\u6613\u7b56\u7565\uff0c\u7279\u522b\u662f\u5176\u4e2d\u7684\u56de\u64a4\u6280\u672f\u3002\u6587\u4e2d\u8fd8\u4f1a\u901a\u8fc7\u56fe\u8868\u793a\u4f8b\u8bf4\u660e\u4e86\u8fd9\u4e00\u7b56\u7565\u7684\u5b9e\u9645\u5e94\u7528\u3002<\/pre>\n<\/blockquote>\n\n\n\n<p id=\"b9e1\">\u7b80\u5355\u7684\u7b56\u7565\u53ef\u4ee5\u53d1\u6325\u5de8\u5927\u7684\u5a01\u529b\uff0c\u6709\u65f6\u751a\u81f3\u53ef\u4ee5\u4e0e\u66f4\u590d\u6742\u7684\u7b56\u7565\u76f8\u5ab2\u7f8e\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u4ecb\u7ecd\u6211\u7684\u9996\u9009\u7b56\u7565\u4e4b\u4e00\uff0c\u5373\u76f8\u5bf9\u5f3a\u5f31\u6307\u6570 (RSI)\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"744d\">\u4e00\u3001<strong>RSI \u7b80\u5355\u53cd\u8f6c\u7b56\u7565<\/strong><\/h2>\n\n\n\n<p id=\"d0c9\">RSI \u7b80\u5355\u53cd\u8f6c\u7b56\u7565\u662f\u4e00\u79cd\u5229\u7528\u76f8\u5bf9\u5f3a\u5f31\u6307\u6570\uff08RSI\uff09\u7684\u6d41\u884c\u65b9\u6cd5\uff0cRSI \u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u6280\u672f\u6307\u6807\u3002\u5728\u5e94\u7528\u4e8e RSI \u7684\u5404\u79cd\u6280\u672f\u4e2d\uff0c\u56de\u64a4\u6280\u672f\u5c24\u4e3a\u7a81\u51fa\uff0c\u7279\u522b\u662f\u7b80\u5355\u56de\u64a4\u6280\u672f\uff0c\u8be5\u6280\u672f\u4f9d\u8d56\u4e8e RSI \u4ece\u8d85\u5356\u548c\u8d85\u4e70\u6c34\u5e73\u9000\u51fa\u540e\u624d\u53d1\u51fa\u4fe1\u53f7\u7684\u786e\u8ba4\u3002<\/p>\n\n\n\n<p id=\"2e90\">\u4ee5\u4e0b\u662f<strong>\u7b80\u5355\u56de\u64a4\u7b56\u7565\u7684\u4ea4\u6613\u6761\u4ef6<\/strong>\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5f53 RSI \u8d85\u8fc7\u8d85\u5356\u6c34\u5e73\uff0c\u5e76\u5728\u4e0d\u8d85\u8fc7\u67d0\u4e00\u4e34\u754c\u6c34\u5e73\u7684\u60c5\u51b5\u4e0b\u56de\u8c03\u5230\u8d85\u5356\u6c34\u5e73\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0\u591a\u5934\uff08\u4e70\u5165\uff09\u4fe1\u53f7\u3002\u4f8b\u5982\uff0c\u5982\u679c 5 \u5468\u671f RSI \u8d85\u8fc7 20 \u4f46\u672a\u8d85\u8fc7 33\uff0c\u7136\u540e\u56de\u64a4\u5230 20 \u548c 33 \u4e4b\u95f4\u7684\u6c34\u5e73\uff0c\u5c31\u4f1a\u4ea7\u751f\u4e70\u5165\u4fe1\u53f7\u3002<\/li>\n\n\n\n<li>\u5f53 RSI \u7a81\u7834\u8d85\u4e70\u6c34\u5e73\u5e76\u56de\u8c03\u5230\u8d85\u4e70\u6c34\u5e73\u800c\u6ca1\u6709\u8de8\u8d8a\u4e34\u754c\u6c34\u5e73\u65f6\uff0c\u5c31\u4f1a\u89e6\u53d1\u505a\u7a7a\uff08\u5356\u51fa\uff09\u4fe1\u53f7\u3002\u4f8b\u5982\uff0c\u5982\u679c 5 \u5468\u671f RSI \u8d85\u8fc7 80 \u4f46\u672a\u8d85\u8fc7 67\uff0c\u7136\u540e\u56de\u8c03\u81f3 80 \u548c 67 \u4e4b\u95f4\u7684\u6c34\u5e73\uff0c\u5c31\u4f1a\u4ea7\u751f\u5356\u51fa\u4fe1\u53f7\u3002<\/li>\n<\/ol>\n\n\n\n<p id=\"ab3b\">\u4e0b\u56fe\u4e3e\u4f8b\u8bf4\u660e\u4e86\u4f7f\u7528\u8be5\u7b56\u7565\u6267\u884c\u7684\u4e24\u7b14\u770b\u6da8\u4ea4\u6613\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"aa26\"><img decoding=\"async\" src=\"https:\/\/cdn-images-1.readmedium.com\/v2\/resize:fit:800\/0*O1-QmO-CUyTmztrs.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\" id=\"3251\"><img decoding=\"async\" src=\"https:\/\/cdn-images-1.readmedium.com\/v2\/resize:fit:800\/0*hU2ftx3nWNC6KuOk.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"d80f\">\u7ea2\u8272\u6807\u6ce8\u7684\u6c34\u5e73\u4ee3\u8868\u8d85\u4e70\u548c\u8d85\u5356\u9608\u503c\uff0c\u800c\u6a59\u8272\u6807\u6ce8\u7684\u6c34\u5e73\u5219\u8868\u793a RSI \u7684\u9608\u503c\u6c34\u5e73\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"b5c1\"><strong><br>\u4e8c\u3001\u7f16\u7801\u7b56\u7565<\/strong><\/h2>\n\n\n\n<p id=\"fa70\">\u5728 TradingView \u4e2d\u5bf9\u7b56\u7565\u8fdb\u884c\u7f16\u7801\u662f\u4e00\u4e2a\u7b80\u5355\u660e\u4e86\u7684\u8fc7\u7a0b\u3002\u6211\u4eec\u5c06\u5206\u522b\u7528\u7eff\u8272\u548c\u7ea2\u8272\u7bad\u5934\u6807\u8bb0\u4e70\u5165\u548c\u5356\u51fa\u4fe1\u53f7\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"897c\"><img decoding=\"async\" src=\"https:\/\/cdn-images-1.readmedium.com\/v2\/resize:fit:800\/0*vwd0CAahsDbJ3sSN.png\" alt=\"\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ This source code is subject to the terms of the Mozilla Public License 2.0 at https:\/\/mozilla.org\/MPL\/2.0\/\n\/\/ \u00a9 laoyulaoyu\n\n\/\/@version=5\nindicator(\"Simple Pull-Back\", overlay = true)\nlookback = input(defval = 5, title = 'Lookback')\nlower_barrier = input(defval = 20, title = 'Lower Barrier')\nlower_threshold = input(defval = 33, title = 'Lower Threshold')\nupper_barrier = input(defval = 80, title = 'Upper Barrier')\nupper_threshold = input(defval = 67, title = 'Upper Threshold')\nrsi = ta.rsi(close, lookback)\nbuy_signal  = rsi &gt;= lower_barrier and rsi &lt; rsi&#91;1] and rsi&#91;1] &gt; lower_barrier and rsi&#91;1] &lt; lower_threshold and rsi&#91;2] &lt; lower_barrier\nsell_signal = rsi &lt;= upper_barrier and rsi &gt; rsi&#91;1] and rsi&#91;1] &lt; upper_barrier and rsi&#91;1] &gt; upper_threshold and rsi&#91;2] &gt; upper_barrier\nplotshape(buy_signal,   style = shape.triangleup, color   = color.green, location =  location.belowbar, size = size.small)\nplotshape(sell_signal,  style = shape.triangledown, color = color.red, location   =  location.abovebar, size = size.small)<\/code><\/pre>\n\n\n\n<p id=\"ec18\"><strong>\u4e0b\u56fe\u662f\u53e6\u4e00\u5f20\u4fe1\u53f7\u56fe\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"dac4\"><img decoding=\"async\" src=\"https:\/\/cdn-images-1.readmedium.com\/v2\/resize:fit:800\/0*62INotxmzpsJ3qtE.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/gurufinanceinsights.com\/\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u89c2\u70b9\u56de\u987e<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7b80\u5355\u7684\u4ea4\u6613\u7b56\u7565\u53ef\u4ee5\u975e\u5e38\u6709\u6548<\/strong>\uff1a\u7b80\u5355\u7684\u7b56\u7565\u6709\u65f6\u53ef\u4ee5\u4e0e\u66f4\u590d\u6742\u7684\u7b56\u7565\u4e00\u6837\u6709\u6548\u3002<\/li>\n\n\n\n<li><strong>RSI \u7b80\u5355\u53cd\u8f6c\u7b56\u7565\u7684\u6709\u6548\u6027<\/strong>\uff1a\u901a\u8fc7 RSI \u7684\u56de\u64a4\u6280\u672f\uff0c\u4ea4\u6613\u8005\u53ef\u4ee5\u5728 RSI \u6307\u6807\u4ece\u8d85\u5356\u6216\u8d85\u4e70\u6c34\u5e73\u56de\u8c03\u65f6\u8bc6\u522b\u4ea4\u6613\u673a\u4f1a\u3002<\/li>\n\n\n\n<li><strong>Pine Script \u7684\u6613\u7528\u6027<\/strong>\uff1a\u672c\u6587\u5c55\u793a\u4e86\u5982\u4f55\u5229\u7528 TradingView \u7684 Pine Script \u7f16\u7a0b\u8bed\u8a00\u6765\u5b9e\u73b0\u4ea4\u6613\u7b56\u7565\uff0c\u5e76\u901a\u8fc7\u5b9e\u4f8b\u4ee3\u7801\u548c\u56fe\u8868\u793a\u4f8b\u8bf4\u660e\u4e86\u5176\u6613\u7528\u6027\u3002<\/li>\n\n\n\n<li><strong>\u4ea4\u6613\u7b56\u7565\u7684\u53ef\u89c6\u5316\u8868\u73b0<\/strong>\uff1a\u901a\u8fc7\u5728\u56fe\u8868\u4e0a\u6807\u8bb0\u4e70\u5165\u548c\u5356\u51fa\u4fe1\u53f7\uff0c\u4ea4\u6613\u8005\u53ef\u4ee5\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u548c\u5e94\u7528\u7b56\u7565\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u672c<\/mark><\/strong><strong><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u6587\u5185\u5bb9\u4ec5\u4ec5\u662f\u6280\u672f\u63a2\u8ba8\u548c\u5b66\u4e60\uff0c\u5e76\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u8f6c\u53d1\u8bf7\u6ce8\u660e\u539f\u4f5c\u8005\u548c\u51fa\u5904\u3002<\/mark><\/strong><\/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\/10\/19\/%e5%9c%a8-tradingview-%e4%b8%ad%e8%ae%be%e8%ae%a1%e5%87%ba%e8%b6%85%e6%a3%92%e7%9a%84%e4%ba%a4%e6%98%93%e7%ad%96%e7%95%a5\/\">Continue reading<span class=\"screen-reader-text\">\u5728 TradingView \u4e2d\u8bbe\u8ba1\u51fa\u8d85\u68d2\u7684\u4ea4\u6613\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":[4],"class_list":["post-1438","post","type-post","status-publish","format-standard","hentry","category-aiinvest","tag-ai","entry"],"_links":{"self":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1438","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=1438"}],"version-history":[{"count":2,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1438\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1438\/revisions\/1441"}],"wp:attachment":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}