Moon(ムーン)
- 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
Translating...
開発の背景
『Monn』は、5分足の逆張り手法(RSI)を採用したシステムです。
とてもシンプルなトレード手法です。
以前の私は、RSIに対して否定的でした。
RSIに優位性がない事を証明すべく、検証を行った結果、面白い事が分かりました。
RSIを用いたトレードは、時間帯により、損益の傾向が全く異なることを発見しました。

時間帯の傾向(日本時間の深夜から朝にかけて利益が出やすい)を用いたのが、本EAになります。
(朝7時頃はスプレッド拡大時間であり、この時間帯の結果は信用していない)
優位性の仮説
なぜ、RSIは時間帯によって優位性が異なるのでしょうか?
損失が多い時間帯(16~24時頃)は、世界中のトレーダが活気がある時間帯です。
一方で、利益がでる時間帯(18~9時頃)は、アジア~欧米へと徐々に夜になる時間帯です。
本手法は5分足のみ機能するので、デイトレードが対象となります。
デイトレードは、ポジションに利益がある場合、寝る前に利確(又は損切ラインの移動)をすることが多いと思います。
一方で、プロスペクト理論では、ポジションに損失がある場合、塩漬けにする傾向があると言われています。
RSIは逆張り指標であり、デイトレーダの夜の利確(又は損切ラインの移動)が逆張りの収益ドライバになっている可能性があります。
あくまで仮説ですが、この仮説が正しければ、デイトレーダがいなくならない限り、優位性が維持されます。
特徴
主な特徴は、以下の3つです。
(1)優位性の証拠
(2)ポートフォリオ効果
優位性の証拠
優位性がある手法は、少し変化しても優位性が失われる事はありません。
以下の検証で、優位性が維持されることを確認しています。
① 通貨ペアを変えても機能する。
② 耐スプレッド
③ 異なる証券会社のヒストリカルデータでも機能する。
通貨ペアを変えても機能する
『Moon』は、通貨ペアに関わらず、機能します。
以下に、バックテスト結果のプロフィットファクターを示します。
✔ 『Moon』は、4つの通貨ペアで、優位性がある事を確認しています。

例:USDJPY

耐スプレッド
✔ 『Moon』は、通常のスプレッドに対して、広いスプレッドでも優勢がある。
通常時のスプレッドは、以下の通り(参考:GogoJungleのスプレッド比較)

異なる証券会社のヒストリカルデータでも機能する
証券会社が異なると、ヒストリカルデータも異なります。
一つのヒストリカルデータで最適化したシステムは、異なるヒストリカルデータで評価すると激しく低下する事があります。
以下に、異なる証券会社(B社※)のヒストリカルデータを用いた場合のバックテスト結果(プロフィットファクター)を示します。
✔ 『Moon』は、異なるヒストリカルデータでも、優位性があることを確認しています。

※ 証券会社の違い
A社 : 16年分のデータ(2005~2020年) GMT:2(冬)、3(夏)
B社 : 14年分のデータ(2007~2020年) GMT:9(冬)、9(夏)
ポートフォリオ効果
『Moon』は、1つの通貨ペアで最適化していないので、複数通貨ペアでポートフォリオを構築する事ができます。
<2通貨ペア(USDJPYとGBPUSD)でポートフォリオを組んだ場合>
✔ リカバリーファクター(リターン/最大ドローダウンの比率)が改善



EAの設定

* Macic_number = 10210322
マジックナンバーです。
最大10つのポジションを持つため、102103220~102103229に割り当てています。
複数の通貨ペアを同時に稼働させる場合も同じ値で問題ありません。
* 許容スリッページ(pips)= 1.0(初期値)
スリッページがこの値を超えた場合は、トレードが見送られます。(ストリーミング方式のみ)
* 許容スプレッド(pips)= 1.0(初期値)
スプレッドがこの値を超えている場合は、トレード(エントリ/決済)が見送られます。
この値を小さくするとトレード成績は向上しますが、見送られる回数が増加します。
ご使用される証券口座のスプレッドを確認し、適宜修正下さい。
通常時のスプレッド+α(余裕)が目安です。(参考:GogoJungleのスプレッド比較)
* 最大ポジション数 = 10(初期値)
同時に保有する最大ポジション数を設定します。
前のポジションが決済されていない状態でエントリ条件を満足した場合に、最大ポジション数までエントリします。
奇数(1,3,・・・,9)は、打診ポジション(注記参照)です。
最大ポジション数は偶数(2,4、・・・、10)を設定下さい。(最大:10)
* 複利: true、単利:false =true(初期値)
"ture"が複利モード
"false"が単利モード
* 複利率(%)= 0.5(初期値)
複利モードを選択した場合に、参照される値(%)です。
口座残高に合わせて、損切額が自動計算されます。
例)0.5(%)と設定した場合
口座残高 100万円の場合 損切額は5,000円に設定される。
* 損切額(単利)= 5000(初期値)
単利モードを選択した場合に、参照される値です。
口座通貨に合わせて、損切額を設定します。
例)5,000円(50ドル)を設定する場合、以下の値を入力
円口座 :5,000
ドル口座 :50
マニュアル設定
以下は、ご自身でロット、損切幅を調整したい方の為に用意したパラメータです。
損切額を元に運用される方は、以下の設定は不要です。
サーバ時間が異なる場合は、サーバ時間のみ変更下さい。
* 打診ロット =0(初期値)
奇数ポジションは、打診ポジションです。(注記参照)
打診ポジションは、最小ロットを推奨します。
最小ロット以下の値(例:0)を入力すると、最小ロットとなります。
* 通常ロット =0(初期値)
偶数ポジションは、通常ポジションです。
通常ポジションのロットを固定して運用したい場合に、値を入力します。
”0”を入力すると、損切額に合わせたロットが、自動計算されます。
* 損切幅(pips)=0(初期値)
通常ポジションの損切幅を固定したい場合に、入力します。
損切幅に”0”を入力すると、自動的に損切幅が選定されます。
損切幅(自動) = 4時間足のボラティリティ(20本平均)×損切倍率
* 損切倍率=1(初期値)
損切幅(pips)に”0”を入力した場合のみ、参照されます。
損切倍率は、損切幅(自動)の調整に使用します。
損切幅(自動) = 4時間足のボラティリティ(20本平均)×損切倍率
* サーバ時間(冬時間)(GMT+〇)
FX証券会社のサーバ時間(MT4表示時間:2 or 9)を入力して下さい。
外為ファイネストの場合は、変更不要(2を入力)
日本時間のサーバの場合は、9を入力
* 週末にポジションなし= false(初期値)
”true”を選択した場合、週末にポジションを保有しません。
金曜日の深夜よりトレードしなくなります。
祝日や変則時間の場合は、保有される場合があります。
注記)打診ポジションの扱い
奇数ポジション(1,3,・・・,9)は、打診ポジションです。
偶数ポジション(2,4、・・・、10)は、通常ポジションです。
打診ポジションは、通常ポジションの参照用です。
打診ポジションもプラスの期待値を持っていますが、通常エントリより小さく、最小ロットを推奨しています。
打診ポジションの損切幅は、損切価格に合わせて自動的に設定されます。
Price:¥12,000 (taxed)
●Payment






Sales from : 05/08/2021 03:14
Price:¥12,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




