{"id":138,"date":"2025-06-18T02:39:35","date_gmt":"2025-06-18T02:39:35","guid":{"rendered":"https:\/\/blog.alltick.co\/ja-jp\/?p=138"},"modified":"2025-06-18T02:39:37","modified_gmt":"2025-06-18T02:39:37","slug":"swing-trading-strategy","status":"publish","type":"post","link":"https:\/\/blog.alltick.co\/ja-jp\/swing-trading-strategy\/","title":{"rendered":"\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u6226\u7565"},"content":{"rendered":"\n<p>\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u306f\u4e2d\u671f\u7684\u306a\u53d6\u5f15\u6226\u7565\u3067\u3042\u308a\u3001\u30c7\u30a4\u30c8\u30ec\u30fc\u30c9\u3068\u306f\u7570\u306a\u308a\u3001\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u6570\u65e5\u304b\u3089\u6570\u9031\u9593\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u6570\u30f6\u6708\u4fdd\u6301\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u624b\u6cd5\u306f\u3001\u4e2d\u9593\u7684\u306a\u5e02\u5834\u30c8\u30ec\u30f3\u30c9\u3092\u6349\u3048\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u304a\u308a\u3001\u4fa1\u683c\u304c\u4e0a\u6607\u307e\u305f\u306f\u4e0b\u964d\u3059\u308b\u6ce2\u306e\u4e2d\u3067\u6700\u9069\u306a\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u30a4\u30b0\u30b8\u30c3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u72d9\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u6226\u7565\u306e\u539f\u5247\u3068\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u306e\u6d3b\u7528<\/strong><\/h2>\n\n\n\n<p><strong>\u30c8\u30ec\u30f3\u30c9\u306e\u8b58\u5225<\/strong><br>\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u306e\u6210\u529f\u306b\u306f\u3001\u5e02\u5834\u306e\u30c8\u30ec\u30f3\u30c9\u3092\u6b63\u78ba\u306b\u898b\u6975\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u79fb\u52d5\u5e73\u5747\u7dda\u3001\u30c8\u30ec\u30f3\u30c9\u30e9\u30a4\u30f3\u3001\u30aa\u30b7\u30ec\u30fc\u30bf\u30fc\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u7528\u3044\u3066\u3001\u30c8\u30ec\u30f3\u30c9\u306e\u65b9\u5411\u6027\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\u9ad8\u5024\u3068\u5b89\u5024\u306e\u63a8\u79fb\u3092\u5206\u6790\u3059\u308b\u3053\u3068\u3067\u3001\u30c8\u30ec\u30f3\u30c9\u306e\u8ee2\u63db\u70b9\u3084\u52a0\u901f\u30dd\u30a4\u30f3\u30c8\u3067\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u72d9\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u30c4\u30fc\u30eb<\/strong><br>\u30c1\u30e3\u30fc\u30c8\u30d1\u30bf\u30fc\u30f3\uff08\u30d8\u30c3\u30c9\u30fb\u30a2\u30f3\u30c9\u30fb\u30b7\u30e7\u30eb\u30c0\u30fc\u3001\u30c0\u30d6\u30eb\u30c8\u30c3\u30d7\u30fb\u30dc\u30c8\u30e0\u3001\u30c8\u30e9\u30a4\u30a2\u30f3\u30b0\u30eb\u3001\u30d5\u30e9\u30c3\u30b0\u306a\u3069\uff09\u306b\u52a0\u3048\u3066\u3001\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c0\u30fc\u306f\u76f8\u5bfe\u529b\u6307\u6570\uff08RSI\uff09\u3001\u30b9\u30c8\u30ad\u30e3\u30b9\u30c6\u30a3\u30af\u30b9\u3001MACD\uff08\u79fb\u52d5\u5e73\u5747\u53ce\u675f\u62e1\u6563\u6cd5\uff09\u306a\u3069\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3001\u30c8\u30ec\u30f3\u30c9\u306e\u5f37\u3055\u3084\u53cd\u8ee2\u306e\u53ef\u80fd\u6027\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30b5\u30dd\u30fc\u30c8\u3068\u30ec\u30b8\u30b9\u30bf\u30f3\u30b9<\/strong><br>\u30b5\u30dd\u30fc\u30c8\u30e9\u30a4\u30f3\u3068\u30ec\u30b8\u30b9\u30bf\u30f3\u30b9\u30e9\u30a4\u30f3\uff08\u652f\u6301\u7dda\u3068\u62b5\u6297\u7dda\uff09\u306f\u3001\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c0\u30fc\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30be\u30fc\u30f3\u306f\u4fa1\u683c\u304c\u53cd\u767a\u3057\u305f\u308a\u7a81\u7834\u3057\u305f\u308a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3042\u308a\u3001\u30c8\u30ec\u30fc\u30c9\u306e\u6839\u62e0\u3092\u88dc\u5f37\u3059\u308b\u30b7\u30b0\u30ca\u30eb\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u30a8\u30f3\u30c8\u30ea\u30fc\uff0f\u30a4\u30b0\u30b8\u30c3\u30c8\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3068\u30ea\u30b9\u30af\u7ba1\u7406<\/strong><\/h2>\n\n\n\n<p><strong>\u30a8\u30f3\u30c8\u30ea\u30fc\u3068\u30a4\u30b0\u30b8\u30c3\u30c8\u306e\u30bf\u30a4\u30df\u30f3\u30b0<\/strong><br>\u30c8\u30ec\u30fc\u30c0\u30fc\u306f\u30c1\u30e3\u30fc\u30c8\u30d1\u30bf\u30fc\u30f3\u3084\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3092\u6d3b\u7528\u3057\u3066\u3001\u6700\u9069\u306a\u58f2\u8cb7\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u898b\u6975\u3081\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001MACD\u306e\u5f37\u6c17\u30af\u30ed\u30b9\u30aa\u30fc\u30d0\u30fc\u306f\u8cb7\u3044\u30b7\u30b0\u30ca\u30eb\u3068\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u5225\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u304c\u53cd\u8ee2\u3092\u793a\u305b\u3070\u30a4\u30b0\u30b8\u30c3\u30c8\u306e\u30b5\u30a4\u30f3\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30ea\u30b9\u30af\u7ba1\u7406<\/strong><br>\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u3067\u306f\u3001\u30ea\u30b9\u30af\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u660e\u78ba\u306a\u30b9\u30c8\u30c3\u30d7\u30ed\u30b9\uff08\u640d\u5207\u308a\uff09\u3068\u30c6\u30a4\u30af\u30d7\u30ed\u30d5\u30a3\u30c3\u30c8\uff08\u5229\u78ba\uff09\u3092\u8a2d\u5b9a\u3057\u3001\u30ea\u30b9\u30af\u5bfe\u30ea\u30bf\u30fc\u30f3\u306e\u6bd4\u7387\u3092\u826f\u597d\u306b\u4fdd\u3061\u307e\u3059\uff08\u4f8b\uff1a1\u30c9\u30eb\u306e\u30ea\u30b9\u30af\u306b\u5bfe\u30573\u30c9\u30eb\u306e\u30ea\u30bf\u30fc\u30f3\uff09\u3002\u307e\u305f\u3001\u8cc7\u91d1\u7ba1\u7406\u3068\u30dd\u30b8\u30b7\u30e7\u30f3\u30b5\u30a4\u30ba\u306e\u8abf\u6574\u306b\u3088\u308a\u3001\u4e0d\u5229\u306a\u76f8\u5834\u72b6\u6cc1\u3067\u3082\u53e3\u5ea7\u3092\u5b88\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5fc3\u7406\u9762\u3068\u6642\u9593\u52b9\u7387<\/strong><\/h2>\n\n\n\n<p><strong>\u5fc3\u7406\u7684\u306a\u898f\u5f8b<\/strong><br>\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u306b\u306f\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3060\u3051\u3067\u306a\u304f\u3001\u611f\u60c5\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3084\u5fcd\u8010\u529b\u3001\u8a08\u753b\u306b\u5f93\u3046\u898f\u5f8b\u3082\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u77ed\u671f\u7684\u306a\u30ce\u30a4\u30ba\u306b\u60d1\u308f\u3055\u308c\u305a\u3001\u6226\u7565\u3092\u5fe0\u5b9f\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>\u6642\u9593\u52b9\u7387\u3068\u6b20\u70b9<\/strong><br>\u30c7\u30a4\u30c8\u30ec\u30fc\u30c9\u3088\u308a\u3082\u753b\u9762\u306b\u5f35\u308a\u4ed8\u304f\u6642\u9593\u304c\u5c11\u306a\u304f\u3066\u6e08\u3080\u305f\u3081\u3001\u526f\u696d\u30c8\u30ec\u30fc\u30c0\u30fc\u3084\u6642\u9593\u306b\u5236\u7d04\u304c\u3042\u308b\u4eba\u306b\u3082\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u6301\u3061\u8d8a\u3059\u305f\u3081\u3001\u591c\u9593\u3084\u9031\u672b\u306e\u30ea\u30b9\u30af\u306b\u6652\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u307e\u305f\u77ed\u671f\u5909\u52d5\u306b\u96c6\u4e2d\u3059\u308b\u3042\u307e\u308a\u3001\u9577\u671f\u30c8\u30ec\u30f3\u30c9\u3092\u898b\u9003\u3059\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u306f\u3001\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3068\u5fc3\u7406\u7684\u306a\u81ea\u5df1\u7ba1\u7406\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u52b9\u679c\u7684\u306a\u30c8\u30ec\u30fc\u30c7\u30a3\u30f3\u30b0\u624b\u6cd5\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u539f\u5247\u3092\u7fd2\u5f97\u3059\u308b\u3053\u3068\u3067\u3001\u30c8\u30ec\u30fc\u30c0\u30fc\u306f\u30c1\u30e3\u30f3\u30b9\u3092\u6700\u5927\u5316\u3057\u306a\u304c\u3089\u8cc7\u91d1\u3092\u4fdd\u8b77\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Java\u30b3\u30fc\u30c9\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 java.util.List;\n\npublic class SwingTradingStrategy {\n    public static void main(String[] args) {\n        List&lt;Double> stockPrices = List.of(100.0, 110.0, 120.0, 130.0, 120.0, 110.0, 100.0);\n\n        boolean isUptrend = isUptrend(stockPrices);\n\n        boolean hasSwingTradeOpportunity = hasSwingTradeOpportunity(stockPrices);\n\n        if (isUptrend &amp;&amp; hasSwingTradeOpportunity) {\n            System.out.println(\"Buy\");\n        } else if (!isUptrend &amp;&amp; hasSwingTradeOpportunity) {\n            System.out.println(\"Sell\");\n        } else {\n            System.out.println(\"No Signal\");\n        }\n    }\n    \n    private static boolean isUptrend(List&lt;Double> prices) {\n        double lastPrice = prices.get(prices.size() - 1);\n        double firstPrice = prices.get(0);\n        return lastPrice > firstPrice;\n    }\n    \n    private static boolean hasSwingTradeOpportunity(List&lt;Double> prices) {\n        return false;\n    }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python\u30b3\u30fc\u30c9\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=\"\">def is_uptrend(prices):\n    last_price = prices[-1]\n    first_price = prices[0]\n    return last_price > first_price\n\ndef has_swing_trade_opportunity(prices):\n    return False\n\ndef main():\n    stock_prices = [100.0, 110.0, 120.0, 130.0, 120.0, 110.0, 100.0]\n    \n    is_uptrend = is_uptrend(stock_prices)\n    \n    has_swing_trade_opportunity = has_swing_trade_opportunity(stock_prices)\n    \n    if is_uptrend and has_swing_trade_opportunity:\n        print(\"Buy\")\n    elif not is_uptrend and has_swing_trade_opportunity:\n        print(\"Sell\")\n    else:\n        print(\"No Signal\")\n\nif __name__ == '__main__':\n    main()<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30a4\u30f3\u30b0\u30c8\u30ec\u30fc\u30c9\u306f\u4e2d\u671f\u7684\u306a\u53d6\u5f15\u6226\u7565\u3067\u3042\u308a\u3001\u30c7\u30a4\u30c8\u30ec\u30fc\u30c9\u3068\u306f\u7570\u306a\u308a\u3001\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u6570\u65e5\u304b\u3089\u6570\u9031\u9593\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u6570\u30f6\u6708\u4fdd\u6301\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u624b\u6cd5\u306f\u3001\u4e2d\u9593\u7684\u306a\u5e02\u5834\u30c8\u30ec\u30f3\u30c9\u3092\u6349\u3048\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u304a\u308a\u3001\u4fa1\u683c\u304c\u4e0a\u6607\u307e\u305f\u306f\u4e0b\u964d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide"],"featured_image_src":"https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2025\/06\/Swing_Trading_101.2e16d0ba.fill-1600x900-1.jpg?fit=1600%2C900&ssl=1","author_info":{"display_name":"admin","author_link":"https:\/\/blog.alltick.co\/ja-jp\/author\/admin\/"},"_links":{"self":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":1,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts\/138\/revisions\/141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/media\/140"}],"wp:attachment":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}