What is a good EA?

 

Hi,

This is my first post.

I have a background in computer programming and I decided to try to write an Expert Advisor.

After a few months off and on, I've created an advisor which makes a profit when I backtest.

However, the rules are so tight it only makes a few trades a month, but it does make a profit.

This is the result of:

GBPUSD

lot size 0.1

5,000 bank

01-Jan-2024 - 01-Feb-2024

8 trades

What does a good EA look like, how profitable should it be?


Thanks

Mike

Files:
sc1.jpg  507 kb
 
mimann:

What does a good EA look like, how profitable should it be?

If you want someone to analyze your backtest results, then you should right click in the Backtest tab of the Tester window, download a full Report, and post the stats here.

It's difficult to discern anything meaningful from the image that you posted.

 
Ryan L Johnson #:

If you want someone to analyze your backtest results, then you should right click in the Backtest tab of the Tester window, download a full Report, and post the stats here.

It's difficult to discern anything meaningful from the image that you posted.

Hi Ryan,

Thanks for replying, I'll look into that.

Regards, Mike

 

Hi,

This is the report from the backtest.

Mike

Strategy Tester Report
CMCMarkets-MT5-DEMO (Build 5430)
Settings
Expert: mm_try5
Symbol: GBPUSD
Period: M5 (2024.01.01 - 2024.02.01)
Inputs: bb_period=20
bb_deviation=1.5
lot_size=0.1
magic_number=54321
trailing_stop=10
stop_loss=10
take_profit=50
trend_ma_period=50
sl_time=300000
diff_compare=7
BandWidth=0.002
Company: MetaQuotes Ltd.
Currency: profit in pips
Initial Deposit: 5 000.00
Leverage: 1:100
Results
History Quality: 100%
Bars: 6335 Ticks: 4766910 Symbols: 1
Total Net Profit: 42.80 Balance Drawdown Absolute: 0.00 Equity Drawdown Absolute: 4.30
Gross Profit: 45.90 Balance Drawdown Maximal: 1.90 (0.04%) Equity Drawdown Maximal: 18.00 (0.36%)
Gross Loss: -3.10 Balance Drawdown Relative: 0.04% (1.90) Equity Drawdown Relative: 0.36% (18.00)
Profit Factor: 14.81 Expected Payoff: 5.35 Margin Level: 4995.70%
Recovery Factor: 2.38 Sharpe Ratio: 5.85 Z-Score: 1.62 (89.48%)
AHPR: 1.0011 (0.11%) LR Correlation: 0.95 OnTester result: 0
GHPR: 1.0011 (0.11%) LR Standard Error: 4.56
Total Trades: 8 Short Trades (won %): 0 (0.00%) Long Trades (won %): 8 (75.00%)
Total Deals: 16 Profit Trades (% of total): 6 (75.00%) Loss Trades (% of total): 2 (25.00%)
Largest profit trade: 18.50 Largest loss trade: -1.90
Average profit trade: 7.65 Average loss trade: -1.55
Maximum consecutive wins ($): 2 (19.90) Maximum consecutive losses ($): 1 (-1.90)
Maximal consecutive profit (count): 19.90 (2) Maximal consecutive loss (count): -1.90 (1)
Average consecutive wins: 2 Average consecutive losses: 1
Graph
Graph
Correlation (Profits,MFE): 0.84 Correlation (Profits,MAE): 0.07 Correlation (MFE,MAE): -0.2276
Graph
Minimal position holding time: 0:00:32 Maximal position holding time: 0:19:32 Average position holding time: 0:07:07
Graph
Orders
Open Time Order Symbol Type Volume Price S / L T / P Time State Comment
2024.01.05 15:50:00 2 GBPUSD buy 0.1 / 0.1 1.26501 1.26401 1.27001 2024.01.05 15:50:00 filled SMA crosses above BB middle
2024.01.05 15:55:43 3 GBPUSD sell 0.1 / 0.1 1.26549 2024.01.05 15:55:43 filled sl 1.26549
2024.01.05 16:25:00 4 GBPUSD buy 0.1 / 0.1 1.26757 1.26657 1.27257 2024.01.05 16:25:00 filled SMA crosses above BB middle
2024.01.05 16:39:59 5 GBPUSD sell 0.1 / 0.1 1.26852 2024.01.05 16:39:59 filled sl 1.26852
2024.01.11 16:50:00 6 GBPUSD buy 0.1 / 0.1 1.27195 1.27095 1.27695 2024.01.11 16:50:00 filled SMA crosses above BB middle
2024.01.11 17:00:43 7 GBPUSD sell 0.1 / 0.1 1.27192 2024.01.11 17:00:43 filled sl 1.27192
2024.01.16 18:10:00 8 GBPUSD buy 0.1 / 0.1 1.26508 1.26408 1.27008 2024.01.16 18:10:00 filled SMA crosses above BB middle
2024.01.16 18:29:32 9 GBPUSD sell 0.1 / 0.1 1.26693 2024.01.16 18:29:32 filled
2024.01.17 15:40:00 10 GBPUSD buy 0.1 / 0.1 1.26586 1.26486 1.27086 2024.01.17 15:40:00 filled SMA crosses above BB middle
2024.01.17 15:40:32 11 GBPUSD sell 0.1 / 0.1 1.26600 2024.01.17 15:40:32 filled
2024.01.24 16:55:00 12 GBPUSD buy 0.1 / 0.1 1.27500 1.27400 1.28000 2024.01.24 16:55:00 filled SMA crosses above BB middle
2024.01.24 16:56:40 13 GBPUSD sell 0.1 / 0.1 1.27481 2024.01.24 16:56:40 filled
2024.01.25 15:40:00 14 GBPUSD buy 0.1 / 0.1 1.27305 1.27205 1.27805 2024.01.25 15:40:00 filled SMA crosses above BB middle
2024.01.25 15:40:44 15 GBPUSD sell 0.1 / 0.1 1.27342 2024.01.25 15:40:44 filled
2024.01.26 15:40:00 16 GBPUSD buy 0.1 / 0.1 1.27330 1.27230 1.27830 2024.01.26 15:40:00 filled SMA crosses above BB middle
2024.01.26 15:43:05 17 GBPUSD sell 0.1 / 0.1 1.27433 2024.01.26 15:43:05 filled
Deals
Time Deal Symbol Type Direction Volume Price Order Commission Swap Profit Balance Comment
2024.01.01 00:00:00 1 balance 0.00 0.00 5 000.00 5 000.00
2024.01.05 15:50:00 2 GBPUSD buy in 0.1 1.26501 2 0.00 0.00 0.00 5 000.00 SMA crosses above BB middle
2024.01.05 15:55:43 3 GBPUSD sell out 0.1 1.26533 3 0.00 0.00 3.20 5 003.20 sl 1.26549
2024.01.05 16:25:00 4 GBPUSD buy in 0.1 1.26757 4 0.00 0.00 0.00 5 003.20 SMA crosses above BB middle
2024.01.05 16:39:59 5 GBPUSD sell out 0.1 1.26845 5 0.00 0.00 8.80 5 012.00 sl 1.26852
2024.01.11 16:50:00 6 GBPUSD buy in 0.1 1.27195 6 0.00 0.00 0.00 5 012.00 SMA crosses above BB middle
2024.01.11 17:00:43 7 GBPUSD sell out 0.1 1.27183 7 0.00 0.00 -1.20 5 010.80 sl 1.27192
2024.01.16 18:10:00 8 GBPUSD buy in 0.1 1.26508 8 0.00 0.00 0.00 5 010.80 SMA crosses above BB middle
2024.01.16 18:29:32 9 GBPUSD sell out 0.1 1.26693 9 0.00 0.00 18.50 5 029.30
2024.01.17 15:40:00 10 GBPUSD buy in 0.1 1.26586 10 0.00 0.00 0.00 5 029.30 SMA crosses above BB middle
2024.01.17 15:40:32 11 GBPUSD sell out 0.1 1.26600 11 0.00 0.00 1.40 5 030.70
2024.01.24 16:55:00 12 GBPUSD buy in 0.1 1.27500 12 0.00 0.00 0.00 5 030.70 SMA crosses above BB middle
2024.01.24 16:56:40 13 GBPUSD sell out 0.1 1.27481 13 0.00 0.00 -1.90 5 028.80
2024.01.25 15:40:00 14 GBPUSD buy in 0.1 1.27305 14 0.00 0.00 0.00 5 028.80 SMA crosses above BB middle
2024.01.25 15:40:44 15 GBPUSD sell out 0.1 1.27342 15 0.00 0.00 3.70 5 032.50
2024.01.26 15:40:00 16 GBPUSD buy in 0.1 1.27330 16 0.00 0.00 0.00 5 032.50 SMA crosses above BB middle
2024.01.26 15:43:05 17 GBPUSD sell out 0.1 1.27433 17 0.00 0.00 10.30 5 042.80
0.00 0.00 42.80 5 042.80
 

Anecdotally, your EA looks promising to me.

Just do lengthier testing to confirm that it's statistically "good." I know that's it's burdensome to test on every tick, so just do it in stages.

 
mimann:

What does a good EA look like, how profitable should it be?

Heads up - and welcome to algo-trading.

Search the forum for the EA ranking / comparison discussion - it explains how to evaluate EAs beyond short backtests (what’s considered outstanding EA, good/mediocre, poor, etc.).

NOTE: Try to avoid turning the thread into promotional material - we focus on methodology and questions, not marketing.
 
Oleksandr Medviediev #:
NOTE: Try to avoid turning the thread into promotional material - we focus on methodology and questions, not marketing.

My bad. The OP is new here. It appears that my offer to help may have induced the OP into sharing information that is deemed self-promotion.

As the OP has already received valuable help, maybe just redact it?

 
Oleksandr Medviediev #:

Heads up - and welcome to algo-trading.

Search the forum for the EA ranking / comparison discussion - it explains how to evaluate EAs beyond short backtests (what’s considered outstanding EA, good/mediocre, poor, etc.).

NOTE: Try to avoid turning the thread into promotional material - we focus on methodology and questions, not marketing.

Hi Oleksandr,


Thanks for your reply.

I'll have a look for the EA ranking, I'm not trying to market anything, just genuinely interested.

Thanks

Mike

 
Ryan L Johnson #:

Anecdotally, your EA looks promising to me.

Not really. 1 month backtest is meaningless.

It looks like over-fitting.

 
mimann #:
This is the report from the backtest.

MetaQuotes-Demo is not a good server to backtest your EA. You should use a broker account.

What testing mode is used, real ticks ?

 
Alain Verleyen #:

Not really. 1 month backtest is meaningless.

It looks like over-fitting.

Overfitting generally applies to advanced machine learning algorithms or, at least, extensive optimization. In contrast, the OP has merely implemented BB's and an MA with stops, etc. Therefore, I don't see any evidence of the OP having engaged in overfitting.

Interestingly, you rather selectively replied to only one line of my post and conveniently omitted the following line:

Ryan L Johnson #:
Just do lengthier testing to confirm that it's statistically "good." I know that's it's burdensome to test on every tick, so just do it in stages.

Obviously, I already alluded to the fact that the sample size was too small to be statistically significant.

By the way, "Anecdotally" means unscientifically when used in this context.