Starting ACE Gold EA development diary that began with "I won't create parallel channels favorable to myself"
The beginning was a sense of discomfort with a single parallel channel
Drawing parallel channels on a chart makes it easier to see where market trends and price tend to react.
However, since the lines are drawn manually, by slightly changing the starting point or angle you can create shapes that fit past price moves perfectly. Is it okay to use lines that you know will result as a basis for trading decisions?
“Do not create a parallel channel that benefits you.”
This idea became the starting point forACE Gold EA development.
GogoJungle Investment Navigator+ details the trial-and-error of development in a 32-episode serial. Rather than repeating that content here, this article reflects on how the study of parallel channels evolved into trading decisions and culminated in the final form, Ver.2.
Create parallel channels using the same rules, not by feel
The first task was to build a system that could draw parallel channels under identical conditions for anyone to see.
Rather than humans adjusting lines afterward, the channel would be calculated from candlestick information based on fixed rules. Because the starting point and slope aren’t chosen arbitrarily, the subsequent verification also has meaning.
After much trial and error, the parallel channel itself was completed. However, drawing clean lines alone does not yet constitute a trading logic.
What needed to be verified next was clear.
“After a price touches the channel, what does it really do?”
Rebound or break. Measuring statistics on past candles
Touching the upper or lower channel boundary can trigger a reversal. Conversely, in strong trends, prices may simply break out and continue.
So we developed a system that uses past candlesticks to measure price action after channel contact. Instead of entering merely because it touched, we treat how rebounds and breaks appeared in past similar situations as statistics.
Rather than relying on impression or a few successful examples, we accumulate past bars to form evidence. At this stage, the parallel channel changes from a mere drawing tool to a verifiable analytical foundation.
An indicator that turns statistics into entry decisions
The next challenge was to translate the measured results into actual trading decisions.
By combining channel position, contact with price, rebounds/breaks statistics, and market direction, we judge moments when criteria align. This led to the prototype entry decision indicator for ACE Gold.
We did not start with an automated trading EA from the beginning. First we created the channel, measured past behavior, and then completed a system that uses those statistics to determine entry points.
And if the indicator can make a judgment, can that judgment be connected to orders without human intervention? This sparked the development of an automated entry EA.
Just an entrance is not enough to complete an EA
Even if automatic entry is possible, if there is no decision on where to exit the position, it cannot be considered complete as an EA.
In ACE Gold EA_Ver.1, for a single entry, the take-profit, stop-loss, and trailing distances are set based on the channel. Rather than directly specifying fixed amounts, it uses a multiplier applied to distances derived from the channel.
Normal exit settings
- TPFactor: 1.25— Take-profit distance multiplier
- SLFactor: 0.50— Stop-loss distance multiplier
- TrailRatio: 0.25— Ratio used for trailing
- TrailActivatePct: 0.30— Activation condition for trailing
At entry, TP and SL are set, and when price moves favorably, trailing is used to protect profits. Note that the exact internal calculations of how each ratio is applied to which distance are not determined by the parameter names alone; here they are introduced as values set in Ver.1.
Three defensive features embedded
Ver.1 includes three defense mechanisms to handle different scenarios: market environment, continuation of stop-loss, and number of open positions. Each plays a role in suppressing new entries, pausing re-entries after a stop loss, and switching exit management when holdings increase.
Ironclad mode: restraining new entries in difficult market conditions
Ironclad mode suppresses new entries when the market is judged to be in a range beyond a certain threshold. The range judgment requires the parallel channel angle to be 8 degrees or less and the moving average change rate for 10 bars to be 0.5% or less. If 60% or more of the last 24 bars are judged as range, Ironclad mode activates. It is released when the same 24-bar range percentage is confirmed to be 40% or less for three consecutive bars. A hysteresis band is set between 40% and 60% to avoid frequent ON/OFF near the boundary.
CoolSL: pausing consecutive entries after a stop loss
CoolSL counts stop-loss occurrences by direction. When there are three consecutive losses in the same direction, new entries in that direction are paused for 24 bars (e.g., GOLD/M5 equals about 2 hours) from the most recent stop loss. Opposite-direction trades are judged separately, and when a take-profit occurs, the losing-streak count for that direction resets. Pausing does not forcibly close existing positions.
Defensive: defensively adjusting exits according to number of holdings
When holdings increase, exits are managed more defensively than in normal times. In Ver.1, DefensiveStartPos is 11, meaning the switch to defensive exit management occurs when holdings reach this threshold.
- DefensiveStartPos: 11— The holding count at which to start switching
- DefensiveTPFactor: 0.60
- DefensiveSLFactor: 0.25
- DefensiveTrailRatio: 0.15
- DefensiveTrailActivatePct: 0.20
TP/SL/trailing settings are shifted from normal to defensive as holdings increase, managing exits when holdings overlap. This is not a feature to increase new entries, but a defense that changes exit settings according to holdings.
The three defenses correspond to “market environment,” “retrying after a stop loss,” and “holding count.” They do not single-handedly eliminate losses, and there will be times when entries are skipped.
Four operation styles chosen by maximum number of positions
ACE Gold offers four styles to match the intended risk approach, selectable by the maximum number of concurrent positions.
- Ultra Aggressive: prioritize profit (up to 25 positions at once)
- Aggressive: balance profit and risk (up to 20 positions at once)
- Balanced: standard (up to 15 positions at once)
- Defensive: risk-reducing settings (up to 12 positions at once)
This is the upper limit for how many positions can be held simultaneously. A higher cap allows more overlapping holdings, but does not by itself determine profitability or safety. In the source, there are type-specific thresholds to switch to Defensive based on holdings: Ultra Aggressive 18, Aggressive 14, Balanced 11, Defensive 9. The maximum holding count and the Defensive start position are separate settings.
Three defensive features added in Ver.2
After Ver.1 was completed, we reviewed exit management for cases where entries in the same direction and same justification overlapped, and where the distance to TP was large. The main additions are three features:
NEO3:If there are three or more positions in the same group and direction and the entire group’s profit is negative, a gate stops new entries under the same conditions. This does not forcibly close holdings, but reduces adding to losing judgments where losses are growing. It may stop legitimate additions before a reversal, and does not prevent large losses in all cases.
TrailCAP 1100:Without changing actual TP prices, imposes an upper limit of 1100 on the reference distance used for trailing calculations—from entry to TP. This prevents the trailing reference distance from expanding too much when TP is far away. It does not fix the take-profit price at 1100.
Reflection SL CAP 400:For Reflection-type entries aiming for rebounds, if the distance to initial SL becomes too large, it caps that distance at 400. It does not uniformly change SL for all entries. In my settings, Breakout-type SL CAP was OFF.
Ver.2 complete
Starting from creating parallel channels with fixed rules and validating rebounds/breakouts with past bars, development progressed to an entry decision indicator, and then to an automatic entry EA. Building on the entry/exit foundations of Ver.1, NEO3, TrailCAP 1100 for trailing distance, and Reflection SL CAP 400 for initial SL distance further strengthened defenses against market environment, losing streaks, and holdings.
Thus ACE Gold EA advanced to Ver.2, improving defenses and exit management based on Ver.1’s core design. It does not draw a parallel channel arbitrarily; it uses the same criteria to create, measure, and decide. By maintaining this development philosophy and adding features, Ver.2 was completed.
Check BT results before the break-even simulation
From here, we step away from development history and review the saved backtest results. We present long-term testing starting in 2018 and a realistic test starting in 2022. Because the periods and price models differ, please view them as separate verification records rather than directly comparing numerical superiority.
Ver.2 long-term backtest
In the saved MT5 report, GOLD M5 was tested from 2018-01-01 to 2026-11-20 with an initial margin of 1,000,000 yen and a fixed 0.01 lot. The price model is 1-minute OHLC.
Item Result Net profit +3,752,934円 PF 1.77 Total trades 2,138件 Win rate 59.49% Balance-relative DD 40%(430,943円) Margin-relative DD 43.27%(471,832円) |
This report is based on 1-minute OHLC. Additionally, yearly totals show 2018–2024 combined net result of only +25,900 yen, with profits skewed toward later periods. Past BT results do not guarantee future earnings and drawdown must be considered.
We also include the longest period of actual trading results: GOLD M5 from 2022-01-03 to 2026-11-20 with an initial margin of 1,000,000 yen.
Item Result
Net profit :+2,848,534円
PF :1.68
Total trades :1,246件
Balance-relative DD:30%(378,208円)
Margin-relative DD:37%(502,095円)
Recovery simulation for purchase cost
Here we assume a purchase price of 39,800円 and VPS cost of 1,500円 per month as of the time of document creation, and simply calculate a scenario where monthly trading profit remains at the same level. It does not predict actual monthly profits or recovery time.
| Assumed monthly trading profit | After VPS deduction | Until reaching 39,800円 |
|---|---|---|
| +5,000円 | ||
| +10,000円 | ||
| +15,000円 | ||
| −5,000円 |
By the way, here are the BT results for running the EA from 2026-01-01 to 2026-11-25 and from 2026-09-01 to 2026-11-25.
For the January-start report, profit is +978,307円.
For the September-start report, profit is +39,482円.
Note that what is shown here is the balance after settlement, not the REAL (effective margin) including end-of-day unrealized P/L. In the report, the September-start test period is shown as September 1–November 25.
Current status of real trades is also useful when considering when to start running the EA. Checking recent price movements, trading results, and how holdings grow helps understand how the EA behaves in the current market.
However, short-term ups and downs do not necessarily continue. In this backtest as well, results differed by start date, but performance is not solely determined by the start date. Regard recent real trades as information to know the market, and do not base the start on short-term performance alone.
3. Defensive settings: operating steadily while limiting drawdown
Before running the EA, set the lot size and maximum position count to match account funds, and decide at what loss level to stop operation.
ACE Gold’s maximum position counts are 12 for Defensive, 15 for Balanced, 20 for Aggressive, and 25 for Ultra Aggressive. Higher caps increase the likelihood of overlapping positions. The names alone do not determine safety or profitability; choose based on operating capital and acceptable losses.
In the 2022 realistic backtest, under certain conditions (initial margin 1,000,000 yen), the relative margin drawdown was 37% (502,095 yen). This is a historical result and does not guarantee future losses. Changing lot size or margin changes profits and losses, so review drawdown relative to margin as well as profits.
Stop criteria should be decided in advance to avoid hesitation while monitoring the market. For example, if the effective equity drawdown reaches your tolerance, margin maintenance falls below your preset level, holdings exceed expectations, or there are anomalies in price feeds or VPS, stop. The amounts or percentages depend on account funds and acceptable loss; there is no universal recommendation—tailor to your conditions.
Defensive features such as Ironclad mode, CoolSL, and Defensive do not guarantee avoidance of losses. After stopping operation, examine how losses occurred, the market environment, holdings, settings, and communications before resuming. Do not assume you can operate only in favorable periods by cherry-picking recent good performance.
Specifications, sale terms, latest price, and REAL TRADE information for ACE Gold EA can be found on the product page.
The backtest results in this article reflect past testing under the stated periods, lot sizes, margins, and price models. They do not guarantee the REAL TRADE performance, which has different periods and conditions. Please confirm your environment and settings before use.