설명
【ENGLISH SECTION】
Overview The US500_EMA-Stoch_BuyOnly is a semi-automated trend-following cBot specifically designed for the US500 (S&P 500) index. It focuses exclusively on "Buy" (Long) positions, taking advantage of the historical upward bias of the US equities market.
The core logic combines a Multiple Exponential Moving Average (EMA) filter with a Stochastic Oscillator to ensure entries are made only during strong, confirmed trends while minimizing exposure to false breakouts (whipsaws).
How the Entry Logic Works
- EMA Perfect Order Filter: The cBot monitors 6 EMAs (5, 9, 14, 19, 28, and 38 periods). It identifies 6 distinct "stages" of trend alignment. A buy signal is considered only when the EMAs are in a "Perfect Order" (EMA 5 > 9 > 14 > 19 > 28 > 38), indicating a strong and unified uptrend.
- Macro Trend Filter: It also checks a higher timeframe (Macro Timeframe, such as 100/200 EMA) to ensure the trade aligns with the broader market direction.
- Stochastic Entry Trigger: Once the EMA conditions are met, the cBot uses a customized Stochastic Oscillator (19, 3, 3) to pinpoint the entry. It waits for the %K line to cross above the %D line (while %D is in a specific zone), acting as the final confirmation that a temporary pullback has ended and the upward momentum is resuming. This effectively filters out false signals ("damashi").
Advanced Risk Management & Exit Strategies
- Fixed Take Profit (TP) & Stop Loss (SL): Precise targets set in JPY (Japanese Yen).
- Break-Even (BE) Function: Automatically moves the Stop Loss to the entry price once a predefined profit is reached, securing a risk-free trade.
- Trailing Stop: Locks in profits as the trend continues in your favor.
- Time-Limit Exit: Automatically closes the position if it has been held for a specified duration without reaching a significant profit, freeing up capital and reducing exposure to sluggish markets.
- Time-of-Day Filter: Allows trading only during specific active sessions (e.g., NY, London, Tokyo).
Recommended Settings & Timeframe
- Symbol: US500 (S&P 500 Index)
- Recommended Timeframe: 2-Hour Chart (h2) (While the cBot has been tested on various timeframes, the 2-Hour chart provides the most stable performance by filtering out intraday noise.)
- Account Currency: JPY (Japanese Yen) - Please note that the TP/SL and financial parameters are optimized and calculated in JPY.
How to Install
- Download the
.algofile. - Double-click the file to install it into your cTrader platform.
- Open a US500 chart and set the timeframe to 2 Hours (h2).
- Add an instance of the "US500_EMA-Stoch_BuyOnly" cBot to the chart.
- Review the parameters (Volume, TP/SL, Break-Even, etc.) and ensure they align with your risk management plan.
- Click "Start".
【日本語セクション】
概要US500_EMA-Stoch_BuyOnly は、US500(S&P 500)専用に開発された半自動のトレンドフォロー型cBotです。米国株式市場の歴史的な上昇傾向を捉えるため、「買い(ロング)」ポジションのみに特化しています。
中核となるロジックは、複数の指数平滑移動平均線(EMA)フィルターとストキャスティクス・オシレーターを組み合わせたもので、強いトレンドが発生している時のみエントリーし、ダマシ(偽のブレイクアウト)への巻き込みを最小限に抑えます。
エントリーロジックの仕組み
- EMAパーフェクトオーダー・フィルター: 6本のEMA(5, 9, 14, 19, 28, 38期間)を監視し、トレンドの並びを6つの「ステージ」に分類します。EMAが「パーフェクトオーダー(EMA 5 > 9 > 14 > 19 > 28 > 38)」の並びになり、強力な上昇トレンドが確認された場合のみ、エントリーの準備に入ります。
- マクロトレンド・フィルター: 上位足(マクロタイムフレーム、100/200 EMAなど)も同時に確認し、大局的な相場の方向性に逆らわないよう制御します。
- ストキャスティクス・トリガー: EMAの条件が揃った後、カスタマイズされたストキャスティクス(19, 3, 3)を使用してピンポイントでエントリーを行います。%K線が%D線を上抜ける(ゴールデンクロス)瞬間を捉えることで、「一時的な押し目が終わり、再び上昇の勢いがついた」ことを最終確認します。これがダマシを回避する最大の鍵となります。
高度なリスク管理と決済戦略
- 固定テイクプロフィット(TP) / ストップロス(SL): 日本円(JPY)で精密に指定可能。
- 建値決済(ブレイクイーブン)機能: 指定した利益に達すると、自動的にストップロスを建値(エントリー価格)に移動し、負けのないトレードを確定させます。
- トレーリングストップ: トレンドが伸びるにつれて利益を確保しながら追従します。
- タイムリミット(時間制限)決済: ポジションを一定時間保有しても十分な利益に達しない場合、自動で強制決済します。これにより資金拘束を解き、動きの鈍い相場でのリスクを軽減します。
- 時間帯フィルター: 活発な市場時間帯(NY、ロンドン、東京など)のみでトレードを許可します。
推奨設定とタイムフレーム
- 対象銘柄: US500(S&P 500インデックス)
- 推奨タイムフレーム: 2時間足(h2) (様々な時間足でテストを行っていますが、日中のノイズを排除し最も安定したパフォーマンスを発揮するのが2時間足です。)
- 口座通貨: 日本円(JPY) - ※TP/SLなどの金額パラメーターは日本円での運用を前提に最適化・計算されています。
インストール方法
.algoファイルをダウンロードします。- ファイルをダブルクリックし、cTraderにインストールします。
- US500のチャートを開き、時間足を2時間(h2)に設定します。
- チャートに「US500_EMA-Stoch_BuyOnly」cBotのインスタンスを追加します。
- パラメーター(ロット数、TP/SL、建値決済など)を確認し、ご自身のリスク管理に合わせて調整してください。
- 「開始」をクリックします。
