Create and play with BarOEA
Hello. This is 2pay.
As the title suggests, we will create a Win It All EA (Expert Advisor).
While browsing for EA purchase sites, you may come across EAs with win rates like 1*0% or 9*%.
You may doubt whether they really win, but even on the published forward tests the balance increases, so it isn’t completely false. However, it feels suspicious.
When I knew nothing, there were several times I impulsively wanted to buy. (In the end, I didn’t buy any of them.)
So I prepared it right away.
Real tick testing covers about five years of operation.
I named it "Win_it_all" with the meaning of an outright victory. Calling it something like "Valkyrie" or a more chuunibyoi name makes it feel more authentic, doesn’t it?
When the win rate becomes 1*0%, the PF cannot be measured and displays as 0.
// ---
A superb AI finds perfect entry points and enters at carefully selected timings.
Using the most common indicator, a moving average, it does not rely on the broker being used.
It works across various cross-yen currencies.
The position is always only one. There is no risk of instant ruin like averaging down, making it safe.
Since there is no possibility of loss, you can operate it with peace of mind.
// ---
If you see such advertisements, wouldn’t a person who knows nothing be happy to buy it?
// ---
Disclosures
Hints to detect fraud are hidden in the following performance section.
Maximum position hold time: 6408:13:28 (≈267 days)
Held for up to eight months.Did you tighten your fists with a machine vice?
This EA uses a very simple mechanism: once a position is held, it will not close until it reaches TP 10 pips.
(SL is configured in the parameters, but it is a dummy.)
From the growth curve alone, assets appear to increase at a steady pace, but since 2023 the hold time has overwhelmingly dominated.
The drawdown waveform matches the chart.
Entry condition is only MA25 and MA75 golden cross.
The key is Buy-only, and the test period (2020-2025) has USDJPY in a rising market.
The price at the end of the test is around 156 yen, so by setting a price level that can enter below 155 yen, you can remain profitable until the end of the test period.
Whatever tricks you use... in the end... if you win, that’s enough!!!
Incidentally, even if you change the entry timing from golden cross to dead cross, the win rate remains 1*0%.
If market conditions are favorable, almost any entry factor works, and by tweaking position sizing or funds management a little, anyone can easily create an EA with a win rate of 1*0%.
With indicators-based (direction-agnostic, symmetric logic) EAs, separating Buy and Sell can lead to this kind of overfitting.
At the start of the year, purchases of EAs and indicators tend to rise.
Avoid anything extremely suspicious or consult the seller before buying.
I think the most effective approach is to see results from tests where the start and end prices are close in time (for USD/JPY, 2014.01 ~ 2020.12).
It is directionally neutral, and in the later period volatility is scarce. (Counter-trend EAs should be tested in the current trend period.)
If an EA can truly win in any situation, it can ride through any market. An EA that cannot does not allow the user to exercise discretion, so please understand that it cannot be used outright.
GOLD-based EAs often fail completely when faced with this.
This concludes the current content.
I will leave the source of this EA (MQL5), so feel free to tinker. (Sales are strictly prohibited.)
I hope you enjoy the feeling of winning and that your urge to buy is satisfied.
Thank you for reading.
↓ The source code is here ↓