Cygnus USDJPY M5
- Whole period
- 2 years
- 1 year
- 6 months
- 3 months
- 1 month
Forward testing (Profit)
Monthly Statistics
- Jan
- Feb
- Mar
- Apr
- May
- Jun
- Jul
- Aug
- Sep
- Oct
- Nov
- Dec
Calendar for Months
About EA's Strategy
こんにちは。MT lightningです。
1ポジ、24時間トレードにこだわってEAを制作しています。
----- Cygnus USDJPY 5M -----
■紹介記事
12/7のメルマガにて「発掘!エントリー精度高っ!隠れた秀逸EA Cygnus USDJPY」というタイトルで、ゴゴジャン代表の早川様に本EAを取り上げていただきました。
記事はこちら
■1ポジション&両建て無し
ナンピンやマーチンゲールではなくても複数ポジションをとることでPFを高くすることはできますが、その分ドローダウンが大きくなるのでLotを高くできなくなってしまいます。本EAは1ポジション&両建て無しですので、高Lotでもリスクを管理しやすいと考えています。
■基本ロジック
★ロジック1:中期・長期でのトレンドを確認したのち、短期で押し目買い、戻り売りをします。MT4標準のインジケータのみを使用しています。利益幅が20pips(初期値;ユーザー様で変更可能)に到達するとトレーリングストップにより、利益を伸ばします。
★ロジック2:エントリー後、トレンド方向に伸びず停滞してしまった場合には、逆方向のトレンドが発生する可能性が高くなるため、利益ゼロあるいは微増でポジションをクローズします。
★ロジック3:エントリー後、逆方向のトレンドが発生してしまった場合には、そのトレンドが小休止して若干の戻りが入ったところでポジションをクローズ(損切)します。
★エントリー後、逆方向のトレンドが発生したのち、ほとんど戻りがない場合には100pips(初期値;ユーザー様で変更可能)でストップロスが入ります。
★ストップロスは100pipsと広いですが、ほとんどの場合、ロジック3による損切を行います。バックテストではストップロスに掛かった回数は2007年~2018年の12年間で36回(取引回数約2000回)ですので、1年あたり3回(60トレードで1回)程度です。
■24時間トレード&いつでも同一ロジック
朝スキャなど、特定の時間のみに取引をするEAは多いと思います。しかし、私は優位性のあるロジックであればどの時間帯でも機能すると考えています。したがって、本EAでは時刻や年月日によって異なるロジックを使用したり、トレード時間を制限したりすることはしていません。常に同一ロジックですので、過剰最適化に陥るリスクは小さいと考えています。
■可変トレーリングの実装
トレーリングストップで利確をした直後に、さらに伸びて大きな利益を取り損ねてしまった、という経験を元に、利益が伸びるとともにトレール幅も広げるロジックを思いつきました。本EAでは20pips(初期値;ユーザー様で変更可能)の利益でまずトレーリングストップが発動し、トレール幅が常に利益の10%となるようにしました。これにより、大きく利益が伸びた場合はトレーリングストップに掛かりにくくしました。バックテストでは、固定幅のトレーリングに比べて若干PFが上昇しています。
■ストップレベルが大きい業者にも対応
ストップレベルが大きい業者の場合(たとえばFXTFの場合5pips)、初期のトレール幅は20pips×10%=2pipsですのでそのままではトレール注文が入りません。そこで、トレール幅がストップレベルに達するまでは、トレール幅=ストップレベル値となり、この値を超えたところから可変トレーリングが開始する仕組みになっています。
■高いスプレッド耐性
2007年からのバックテストの結果、期待利得 = 492(Lot = 0.1, スプレッド1pips)ですので、1取引あたりの純獲得pips(=(総獲得pipsー総損失pips)÷取引回数)は4.92pipsとなります。スプレッド5pipsでも利益が出ることになります。
■きれいな右肩上がりのバックテスト
非常に直線性が良いのが特徴です。これはどのような相場においても安定的に利益を出しており、得意・不得意な相場があまりないと言えます。
■各種パラメータ
TP(pips)…利確pips
SL(pips)…損切pips
トレール開始(pips)…トレール開始pips
Lots…ロット数 (初期値: 0.1)
magic…マジックナンバー (初期値: 42409102)
turbo…ターボ値:数が大きくなると取引回数が増加しますが勝率は下がります。(初期値: 100)
MM:複利で運用する場合はtrueを選択してください(初期値: false)
risk:MM=trueのとき、余剰金100万円または1万USDで(0.1×risk)Lot
MM=true時の最小Lot (MM=falseのときは無視されます)
MM=false時の固定Lot (MM=trueのときは無視されます)
Swap Target Option:trueのとき、スワップポイント付与時刻の1時間前から同時刻の間は買いポジションのみを取ります。
スワップ付与時刻:Swap Target Optionに使用します。取引業者の仕様をご確認ください。
週末クローズ:trueのとき、金曜日の特定時刻でポジションを強制終了します。
クローズ時刻(サーバー時刻):週末クローズのポジションを強制終了する時刻をご指定ください。同時刻の30分前からは新規ポジションを取りません。
年末トレード制限:trueのとき、12月の指定日以降は取引を行いません。
この日以降トレードしない:年末トレード制限を行う日付をご指定ください。
年始トレード制限:trueのとき、1月の指定日以前は取引を行いません。
この日までトレードしない:年始トレード制限を行う日付をご指定ください。
■小数点以下3桁の業者をご利用ください。
BidやAskの表示が(110.00)のように小数点以下2桁で表示される業者は想定しておらず、トレーリングストップや損切などが正常に作動しませんので、(110.000)のように小数点以下3桁表示の業者をご利用ください。
■バージョンアップ(v3)のお知らせ
変更点:これまでの5分足による中期トレンドに加え、日足による長期トレンドも参照することにより、さらなる取引回数の増加&成績アップを実現しました。
同一期間でのバックテストの成績が以下のように変化しています(v1→v2→v3)。
プロフィットファクター: 1.77→1.93→2.05
取引回数:2011→2039→2346
純益:931180→983830→1154130
最大ドローダウン:2.41%→3.10%→2.93%
相対ドローダウン:3.18%→3.10%→2.93%
期待利得:463.04→482.51→491.96
Quant Analyzer4によるSQN値:4.51
これまで通り、24時間365日いつでも同一ロジックを使用していますので、過剰最適化によるものではないと考えています。
■バージョンアップ(v4)のお知らせ(2019.12.2)
☆変更点1:週末クローズ機能を追加(オプション)しました。
使用する場合は「週末クローズ」をtrueにし、クローズ時刻(サーバー時刻)を
ご指定ください(初期値:17)。金曜日のクローズ時刻にポジションを強制決済いたします。また、同時刻の30分前からは新規ポジションを持ちません。
週末クローズ機能の有無によるパフォーマンスの違いは以下の通りです。
プロフィットファクター 無:2.05 有:2.06
取引回数 無:2346 有:2212
純益: 無:1154130 有:1092720
最大ドローダウン: 無:2.93% 有:1.57%
相対ドローダウン: 無:2.93% 有:1.89%
期待利得: 無:491.96 有:494.00
週末クローズをtrueにすることで、主にドローダウンの減少に役立っています。
☆変更点2:年末年始のトレード制限機能を追加(オプション)しました。
使用する場合は「年末トレード制限」および「年始トレード制限」をtrueにし、制限する日付をご指定ください。例えば、「この日以降トレードしない」=30、「この日までトレードしない」=3では、12月30日から1月3日までがトレードしない期間となります。
☆変更点3:Swap Target Optionを追加(オプション)しました。
多くの取引業者では、「スワップ付与時刻」にポジションを持っていればスワップポイントが入る仕組みになっています(OANDA Japan東京サーバーではサーバー時刻0時)。2019年現在、USDJPYペアではbuyでスワップポイントがプラス、sellではマイナスになっています。「Swap Target Option」= trueにしますと、次項目で指定した「スワップ付与時刻」の1時間前~スワップ付与時刻は、買いポジションのみをとります。これによりスワップポイントを効率的に得ることができる機能になります。
■バージョンアップ(v5)のお知らせ(2019.12.10)
☆変更点:利確(TP)pips(初期値1000)、損切(SL)pips(初期値100)、トレール開始pips(初期値20)をユーザー様で変更できるようになりました。利確pipsがトレール開始pipsより小さい場合はトレーリングストップは行われませんが、基本的にはトレーリングストップによる決済をお勧めしております。以下に、様々なトレール開始pipsおよび損切pips設定における純益(円、上段)、プロフィットファクター(中段)、ドローダウン(下段)の一覧を載せております。幅広い設定値においても常にプロフィットファクターは常に1.5以上を維持しており、十分実運用に使える性能だと考えております。お好みの設定値でご利用ください。また、EAに紐づけされた口座内であれば異なる設定値でEAの同時稼働は問題ありませんが、マジックナンバーの重複にはお気を付けください。
■バージョンアップ(v6)のお知らせ(2020.2.21)
本EAは、下に示しました3つのロジックから成り立っていますが、2020年に入り、ロジック2による早期クローズが裏目に出てしまい本来獲得できるはずの利益を取りこぼしたケースが相次ぎましたので、手動にてロジック2をON/OFFできるようにするとともに、デフォルトでロジック2をOFF(false)に変更いたしました。これまで通りONにする場合はlogic2=trueに変更したいただくようお願いいたします。
その他、デフォルト値を下記のとおり変更しました。
Maxspread = 20 → 30
weekend_close = false → true
Price:¥20,000 (taxed)
●Payment







Forward Test
Gaitame Finest Demo Account(Actual results may vary depending on circumstances, such as broker/customer's operating environment)
Open Date | Symbol | Buy/Sell | Open Price | S/L | T/P | Close Date | Close Price | Lots | Commission | Taxes | Swap | Net Profit | Profit/Loss |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data is unavailable |
Sales from : 06/06/2019 02:43
Price:¥20,000 (taxed)
●Payment







Just like discretionary trading, there are those that decide trading and settlement timings by combining indicators, those that repeatedly buy or sell at certain price (pips) intervals, and trading methods that utilize market anomalies or temporal features. The variety is as rich as the methods in discretionary trading.
To categorize simply,
・Scalping (Type where trades are completed within a few minutes to a few hours),
・Day Trading (Type where trades are completed within several hours to about a day),
・Swing Trading (Type where trades are conducted over a relatively long period of about 1 day to 1 week)
・Grid/Martingale Trading (Holding multiple positions at equal or unequal intervals and settling all once a profit is made. Those that gradually increase the lot number are called Martingale.)
・Anomaly EA (Mid-price trading, early morning scalping)
However, a substantial advantage of automated trading is its ability to limit and predict risks beforehand.
[Risk]
Inherent to forex trading are the trading risks that undeniably exist in automated trading as well.
・Lot Size Risk
Increasing the lot size forcibly due to a high winning rate can, in rare instances, depending on the EA, lead to substantial Pips loss when a loss occurs. It is crucial to verify the SL Pips and the number of positions held before operating with an appropriate lot.
・Rapid Market Fluctuation Risk
There are instances where market prices fluctuate rapidly due to index announcements or unforeseen news. System trading does not account for such unpredictable market movements, rendering it incapable of making decisions on whether to settle in advance or abstain from trading. As a countermeasure, utilizing tools that halt the EA based on indicator announcements or the VIX (fear index) is also possible.
[Benefits]
・Operates 24 hours a day
If there is an opportunity, system trading will execute trades on your behalf consistently. It proves to be an extremely convenient tool for those unable to allocate time to trading.
・Trades dispassionately without being swayed by emotions
There is an absence of self-serving rule modifications, a common human tendency, such as increasing the lot size after consecutive losses in discretionary trading or, conversely, hastily securing profits with minimal gains.
・Accessible for beginners
To engage in Forex trading, there is no prerequisite to study; anyone using system trading will achieve the same results.
[Disadvantages]
・Cannot increase trading frequency at will
Since system trading operates based on pre-programmed conditions, depending on the type of EA, it might only execute trades a few times a month.
・Suitability may vary with market conditions
Depending on the trading type of the EA, there are periods more suited to trend trading and periods more suited to contrarian trading, making consistent results across all periods unlikely. While the previous year might have yielded good results, this year's performance might not be as promising, necessitating some level of discretion in determining whether it is an opportune time to operate.
・MT4 (MetaTrader 4. An account needs to be opened with a Forex company that offers MT4.)
・EA (A program for automated trading)
・The operating deposit required to run the EA
・A PC that can run 24 hours or a VPS (Virtual Private Server), where a virtual PC is hosted on a cloud server to run MT4.
Additionally, there are both demo and real accounts available. You can experience trading with virtual money by applying for a demo account. After opening a real account, you select the connection server assigned by the Forex broker, enter the password, and log in to the account.
When you deposit money into your account using the method specified by the forex broker, the funds will be reflected in your MT4 account, and you can trade.
Firstly, download the purchased EA file from your My Page on GogoJungle. You will download a zip (compressed) file, so right-click to extract it and retrieve the file named ‘◯◯◯ (EA name)_A19GAw09 (any 8 alphanumeric characters).ex4’ from inside.
Next, launch MT4 and navigate to ‘File’ → ‘Open Data Folder’ → ‘MQL4’ → ‘Experts’ folder, and place the ex4 file inside. Once done, close MT4 and restart it. Then, go to the upper menu ‘Tools’ → ‘Options’, and under ‘Expert Advisors’, ensure ‘Allow automated trading’ and ‘Allow DLL imports’ are checked, then press OK to close.
The necessary currency pair and time frame for the correct operation of the EA are specified on the EA sales page. Refer to this information and open the chart of the correct currency pair time frame (e.g., USDJPY5M for a USD/Yen 5-minute chart).
Within the menu navigator, under ‘Expert Advisors’, you will find the EA file name you placed earlier. Click to select it, then drag & drop it directly onto the chart to load the EA. Alternatively, you can double-click the EA name to load it onto the selected chart.
If ‘Authentication Success’ appears in the upper left of the chart, the authentication has been successful. To operate the EA, you need to keep your PC running 24 hours. Therefore, either disable the automatic sleep function or host MT4 on a VPS and operate the EA.
If you want to use it with an account other than the authenticated one, you need to reset the registered account.
To reset the account, close the MT4 where the Web authentication is registered, then go to My Page on GogoJungle > Use > Digital Contents > the relevant EA > press the ‘Reset’ button for the registration number, and the registered account will be released.
When the account is in a reset state, using the EA with another MT4 account will register a new account.
Also, you can reset the account an unlimited number of times.
→ Items to Check When EA is Not Operating
1 lot = 100,000 currency units
0.1 lot = 10,000 currency units
0.01 lot = 1,000 currency units
For USD/JPY, 1 lot would mean holding 100,000 dollars.
The margin required to hold lots is determined by the leverage set by the Forex broker.
If the leverage is 25 times, the margin required to hold 10,000 currency units of USD/JPY would be:
10000*109 (※ at a rate of 109 yen per dollar) ÷ 25 = 43,600 yen.
・Risk-Return Ratio: Total Profit and Loss during the period ÷ Maximum Drawdown
・Maximum Drawdown: The largest unrealized loss during the operation period
・Maximum Position Number: This is the maximum number of positions that the EA can theoretically hold at the same time
・TP (Take Profit): The set profit-taking Pips (or specified amount, etc.) in the EA's settings
・SL (Stop Loss): The set maximum loss pips (or specified amount, etc.) in the EA's settings
・Trailing Stop: Instead of settling at a specified Pips, once a certain profit is made, the settlement SL is raised at a certain interval (towards the profit), maximizing the profit. It is a method of settlement.
・Risk-Reward Ratio (Payoff Ratio): Average Profit ÷ Average Loss
・Hedging: Holding both buy and sell positions simultaneously (Some FX companies also have types where hedging is not allowed)
・MT4 Beginner's Guide
・Understanding System Trading Performance (Forward and Backtesting)
・Choosing Your First EA! Calculating Recommended Margin for EAs
・Comparing MT4 Accounts Based on Spread, Swap, and Execution Speed
・What is Web Authentication?
・Checklist for When Your EA Isn't Working