Development diary up to the release version
GOLD dedicated EA「Transition - TENRYU -」 development log, Episode 11.
So far, I’ve written about the process of adding various functions from the initial two horizontal lines EA.
The horizontal lines have become four, an incremental profit-taking feature was implemented, and roll reversal and trend filters were added.
Furthermore, time-based stop loss, lot management, and risk assessment for multiple positions have been performed.
By this point, the trading logic had taken quite a solid shape.
However, just because the EA runs in backtests doesn’t mean it can be sold as-is.
Trading in a different account currency changes profit and loss calculations
One of the adaptations during development was differences in account currency.
For example, the profit/loss displayed in MT5 differs between a USD account and a JPY account.
Even if GOLD prices move by the same amount, the numbers shown in the account are not the same.
For features that use monetary thresholds like time-based stop loss, this difference becomes a problem.
Therefore, in the v1.00 series, a mechanism was added to detect the account currency and convert the 기준 for profit, loss, and risk management.
Also, for time-based stop loss, the thresholds are adjusted according to actual position size.
Calculations based only on specific lots and account conditions used in backtests may not behave the same in other environments.
That was the purpose of this adjustment.
Same GOLD, but broker-specific conditions differ
Additionally, I addressed differences in trading specifications per broker.
When trading XAUUSD in MT5, contract size per lot, minimum lot, and lot step can vary by broker.
Even if you set the same 0.01 lot, if the contract specifications differ, profit or loss when GOLD moves by $1 may not be the same.
Therefore, I added a mechanism to check the broker’s XAUUSD trading specifications and adjust to the economic size of a standard lot accordingly.
This is not about improving the trading signal itself.
It is an adjustment intended for use in different environments.
Of course, implementing this feature does not guarantee operation across all brokers.
It remains necessary to verify in actual account environments.
Entry conditions were refined to the end
Candidate for saleRC11 includes fixes for roll reversal handling and state restoration when the EA starts up.
In particular, restoring the roll reversal line state at startup is important for starting the EA after having launched it mid-way.
Forward testing and notifications also supported
A forward version to verify behavior on actual charts has also been created.
Notification to smartphones has also been added.
Backtests running smoothly does not guarantee how the EA will move in actual markets.
If you can receive notices of entries, you won’t need to constantly watch the charts.
On the other hand, forward tests have different verification items from backtests.
Whether orders are placed correctly.
How it behaves under actual spreads and fill conditions.
Whether the state can be carried over when the EA is restarted.
These points are as important as the trading logic.
Work to deliver as a product
By September 2026, files and manuals for GogoJungle were prepared as well.
I organized the settings in Japanese, separating what users can change from what is fixed within the logic.
Additionally, to support GogoJungle real-trade integration, I adjusted handling of Magic Numbers and order comments.
In the distribution file, I added a mechanism to use an order comment that combines product ID and product name.
At this point, the development work has become quite different from the original horizontal-line EA.
At first, it was enough if entries and profit-taking moved.
But for selling, it is necessary to consider usage environment, misconfigurations, operational risks, and deployment methods.
I feel that moving the code is not the same as making it usable as a product.
From the first two horizontal lines
The initial EA used fixed high and low values to draw one resistance and one support line.
Over about two weeks, revisions and verifications were repeated, progressing to prepare sale files and manuals.
Looking back, some parts progressed smoothly, while others required multiple rechecks.
Even if backtests show good results, there were periods in the past where issues appeared.
Therefore, I want to leave not only the final EA’s profits but also what was tried and what the problems were along the way.
In this series, I’ve reflected on that process based on the development code and diagnostic CSV from that time.
Going forward, I will continue to verify not only backtests but also actual operation results.
Rather, I think that is where another round of verification begins.
Capture the “turn” born from the horizontal lines and chase the ensuing “flow.”
A MT5 EA dedicated to GOLD(XAUUSD).
- Automatically detects horizontal lines and handles touches by wicks and roll reversals
- As long as the market trend continues, progressively follows profits
- Equipped with fixed stop loss, time-based stop loss, and suppression of new entries (no martingale)
- Default setting is 0.01 lot / range boost OFF
Net profit +1,242,820 yen / Maximum drawdown 24%
※Backtest results are based on historical data and do not guarantee future profits. It is recommended to verify operation on a demo account before real trading.
※This article is based on the TENRYU development code as of September 2026, v1.00 RC11, and the GogoJungle submission files. The features implemented do not guarantee performance or behavior across market conditions or brokers.