{"id":3129,"date":"2026-12-04T12:03:49","date_gmt":"2026-12-04T18:03:49","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=3129"},"modified":"2026-12-04T18:07:14","modified_gmt":"2026-12-04T18:07:14","slug":"%e5%b8%a6%e5%90%af%e5%8a%a8%e9%97%a8%e6%a7%9b%e7%9a%84%e6%b5%ae%e7%9b%88%e5%9b%9e%e6%92%a4%e9%80%80%e5%87%ba%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/%e5%b8%a6%e5%90%af%e5%8a%a8%e9%97%a8%e6%a7%9b%e7%9a%84%e6%b5%ae%e7%9b%88%e5%9b%9e%e6%92%a4%e9%80%80%e5%87%ba%e7%ad%96%e7%95%a5\/","title":{"rendered":"\u5e26\u542f\u52a8\u95e8\u69db\u7684\u6d6e\u76c8\u56de\u64a4\u9000\u51fa\u7b56\u7565"},"content":{"rendered":"<div class=\"postie-post\">\n<h2>MultiCharts .NET\uff1a\u5e26\u542f\u52a8\u95e8\u69db\u7684\u6d6e\u76c8\u56de\u64a4\u9000\u51fa\u7b56\u7565<\/h2>\n<p>\u79fb\u52a8\u9000\u51fa\u673a\u5236\u4e0d\u5fc5\u4ece\u9996\u6b21\u51fa\u73b0\u6d6e\u76c8\u65f6\u5c31\u5f00\u59cb\u5de5\u4f5c\u3002\u53cc\u9636\u6bb5\u8bbe\u8ba1\u5148\u7b49\u5f85\u8db3\u591f\u5927\u7684\u6709\u5229\u4ef7\u683c\u53d8\u52a8\uff0c\u518d\u9650\u5236\u6d6e\u76c8\u56de\u5410\u5e45\u5ea6\uff0c\u5c06\u542f\u52a8\u6761\u4ef6\u4e0e\u4fdd\u62a4\u6761\u4ef6\u5206\u5f00\uff0c\u4fbf\u4e8e\u8c03\u8bd5\u548c\u590d\u76d8\u3002<\/p>\n<h3>\u5b9e\u4f8b\u4e0e\u72b6\u6001\u7ba1\u7406<\/h3>\n<p>\u5047\u8bbe\u591a\u5934\u5b9e\u9645\u6210\u4ea4\u4ef7\u4e3a100\uff0c\u542f\u52a8\u95e8\u69db\u4e3a1.80\u70b9\uff0c\u5141\u8bb8\u56de\u54100.60\u70b9\u3002\u8bb0\u5f55\u6210\u4ea4\u540e\u89c2\u5bdf\u5230\u7684\u6700\u5927\u6d6e\u76c8\u70b9\u6570\u3002\u5f53\u5cf0\u503c\u8fbe\u52302.20\u70b9\uff0c\u4fdd\u62a4\u673a\u5236\u5df2\u7ecf\u542f\u52a8\uff1b\u6d6e\u76c8\u964d\u81f31.60\u70b9\u65f6\u8bf7\u6c42\u9000\u51fa\u3002\u7a7a\u5934\u53cd\u5411\u8ba1\u7b97\u4ef7\u5dee\u3002\u56fe\u4e2d\u516b\u6b21\u5047\u8bbe\u89c2\u5bdf\u503c\u4ee5\u865a\u7ebf\u8868\u793a1.80\u70b9\u95e8\u69db\uff0c\u7eff\u8272\u67f1\u4e3a2.20\u70b9\u5cf0\u503c\uff0c\u7ea2\u8272\u67f1\u4e3a1.60\u70b9\u9000\u51fa\u4fe1\u53f7\u3002\u6bcf\u6761\u6c34\u5e73\u7f51\u683c\u95f4\u9694\u4e3a0.60\u70b9\u3002<\/p>\n<p> <img decoding=\"async\" alt=\"mfe.png\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/12\/mfe.png\"><\/p>\n<p><em>\u6709\u5229\u4ef7\u683c\u53d8\u52a8\u4e0e\u6d6e\u76c8\u56de\u5410\u793a\u610f\u56fe\uff0c\u975e\u771f\u5b9e\u884c\u60c5\u3002<\/em><\/p>\n<h3>PowerLanguage .NET \u5b9e\u73b0<\/h3>\n<p>\u5728 SignalObject \u7684 CalcBar \u4e2d\u7ef4\u62a4\u6bcf\u7b14\u6301\u4ed3\u72b6\u6001\uff0c\u5728 Create \u4e2d\u901a\u8fc7\u5e73\u53f0\u8ba2\u5355\u5de5\u5382\u521b\u5efa\u76f8\u5e94\u65b9\u5411\u7684\u5e02\u4ef7\u9000\u51fa\u8ba2\u5355\uff0c\u9000\u51fa\u6807\u5fd7\u89e6\u53d1\u540e\u53d1\u9001\u8ba2\u5355\u3002\u4ee5\u4e0bC#\u4ee3\u7801\u4ec5\u4e3a\u5224\u65ad\u6838\u5fc3\uff0c\u5e76\u975e\u5b8c\u6574\u7b56\u7565\u3002\u786e\u8ba4\u5165\u573a\u540e\u5c06 peakProfit \u521d\u59cb\u5316\u4e3a\u96f6\uff0c\u901a\u8fc7 Math.Max(peakProfit, currentProfit) \u66f4\u65b0\u5cf0\u503c\uff0c\u4ec5\u5728\u786e\u8ba4\u5e73\u4ed3\u6216\u53cd\u8f6c\u65f6\u6e05\u9664\u72b6\u6001\u3002\u4f7f\u7528\u5b9e\u9645\u5e73\u5747\u6210\u4ea4\u4ef7\uff0c\u4e0d\u4f7f\u7528\u4fe1\u53f7K\u7ebf\u6536\u76d8\u4ef7\u3002\u4e0d\u8981\u6bcf\u6839K\u7ebf\u91cd\u7f6e\u5cf0\u503c\u3002<\/p>\n<pre style=\"white-space:pre;font-family:Consolas,Monaco,monospace\"><code>if (peakProfit &gt;= activation &amp;&amp; currentProfit &lt;= peakProfit - giveback)<br>\u00a0\u00a0\u00a0\u00a0exitRequested = true;<\/code><\/pre>\n<p>\u53e6\u8bbe\u9000\u51fa\u8ba2\u5355\u5f85\u5904\u7406\u6807\u5fd7\u4ee5\u907f\u514d\u91cd\u590d\u53d1\u9001\uff0c\u5e76\u5904\u7406\u62d2\u5355\u3002\u6536\u76d8\u8ba1\u7b97\u4f7f\u7528\u6536\u76d8\u4ef7\u8ba1\u7b97\u6d6e\u76c8\uff1b\u9010\u7b14\u8ba1\u7b97\u5219\u9700\u8981\u4e00\u81f4\u7684\u9010\u7b14\u6570\u636e\u53ca\u5386\u53f2\u6210\u4ea4\u8bbe\u7f6e\u3002\u7f3a\u5c11\u76d8\u4e2d\u6570\u636e\u65f6\uff0c\u4e0d\u5e94\u5047\u5b9a\u540c\u4e00\u6839K\u7ebf\u7684\u6700\u9ad8\u4ef7\u4e00\u5b9a\u5148\u4e8e\u6700\u4f4e\u4ef7\u51fa\u73b0\u3002<\/p>\n<h3>\u6d4b\u8bd5\u4e0e\u98ce\u9669<\/h3>\n<p>\u6d4b\u8bd5\u672a\u8fbe\u5230\u542f\u52a8\u95e8\u69db\u3001\u6070\u597d\u8fbe\u5230\u95e8\u69db\u3001\u6070\u597d\u8fbe\u5230\u9000\u51fa\u9608\u503c\u3001\u8df3\u7a7a\u3001\u7a7a\u5934\u3001\u53cd\u8f6c\u53ca\u90e8\u5206\u6210\u4ea4\u3002\u52a0\u4ed3\u65f6\u5e94\u660e\u786e\u91cd\u7f6e\u5cf0\u503c\u6216\u91c7\u7528\u52a0\u6743\u6210\u672c\u89c4\u5219\u3002\u6bd4\u8f83\u6536\u76d8\u4e0e\u76d8\u4e2d\u8ba1\u7b97\u7ed3\u679c\uff0c\u5e76\u7eb3\u5165\u624b\u7eed\u8d39\u548c\u6ed1\u70b9\u3002\u793a\u4f8b\u672a\u5b9e\u9645\u7f16\u8bd1\u6216\u56de\u6d4b\u3002\u5e02\u4ef7\u9000\u51fa\u53ef\u80fd\u8fdc\u79bb\u9608\u503c\u6210\u4ea4\uff0c\u5e94\u53e6\u8bbe\u72ec\u7acb\u7684\u6781\u7aef\u98ce\u9669\u4fdd\u62a4\u3002\u4ea4\u6613\u53ef\u80fd\u9020\u6210\u91cd\u5927\u635f\u5931\u3002<\/p>\n<p>\u5982\u9700\u4e0e\u73b0\u6709\u8ba2\u5355\u7ba1\u7406\u6a21\u5757\u6574\u5408\uff0c\u53ef\u53c2\u8003<a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\">MultiCharts .NET\u4ea4\u6613\u7b56\u7565\u5b9a\u5236\u5f00\u53d1\u670d\u52a1<\/a>\u3002<\/p>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>MultiCharts .NET\uff1a\u5e26\u542f\u52a8\u95e8\u69db\u7684\u6d6e\u76c8\u56de\u64a4\u9000\u51fa\u7b56\u7565 \u79fb\u52a8\u9000\u51fa\u673a\u5236\u4e0d\u5fc5\u4ece\u9996\u6b21\u51fa\u73b0\u6d6e\u76c8\u65f6\u5c31\u5f00\u59cb\u5de5\u4f5c\u3002\u53cc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"fifu_image_url":"","fifu_image_alt":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[363,520,233],"tags":[455,669,550,773,274,639],"class_list":["post-3129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-multicharts-net","category-520","category-233","tag-c","tag-mfe","tag-multicharts-net","tag-773","tag-274","tag-639"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/12\/mfe.png","_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/3129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/comments?post=3129"}],"version-history":[{"count":0,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/3129\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/3130"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=3129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=3129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=3129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}