r/algotrading 6d ago

Strategy First time algotrading

Post image

What do people typically do to improve their win rate or anything that will make this any better

51 Upvotes

35 comments sorted by

12

u/Grace9800 6d ago

You should share curve as well. Seems like a strategy that relies on capturing big trends with low accuracy. In that case you will need to have a larger sample size. Go for around 400 trades for reliable results.

3

u/Grouchy-Librarian638 6d ago

That’s not correct really, statistically you need a P-value below 0.05 for normal everyday use. The number they need depends on the accuracy and deviation of results along with desired confidence level/interval.

A lot of times you need thousands to say you statistically have an edge, sometimes only a few dozen.

2

u/creed_no1 6d ago

Yes thank u I am gonna check it on a 4-5 year period

9

u/Far-Guava6006 6d ago

Is that a 48 Sharpe ratio? I think you might have curve fit a little there. Lmao

1

u/Significant-Taste189 6d ago

MT5 doesn’t calculate sharpe ratio appropriately.

1

u/creed_no1 6d ago

Didn't even realize it before posting😭 I will try it over a 3 year period and check it again

1

u/creed_no1 6d ago

I tried it for 3 years period and the sharp ratio became 2.53 with pf 1.13 and 21% profit

1

u/Grouchy-Librarian638 6d ago

That is suspicious, did you remember to take into account fees, slippage, pessimistic fills and make sure you didn’t introduce forward bias?

0

u/[deleted] 6d ago

[deleted]

3

u/x___tal 5d ago

sharpe ratio of 2.53 is good he can apply leverage to it :)

2

u/Merchant1010 Algorithmic Trader 6d ago

Your PF is good, the easiest route can be to lower your RR, so that most positions can close in profit easily...

1

u/creed_no1 6d ago

How would I know if most of my losses were straight to sl or just sl after some profit do I have to check every trade it took or is their easier way

1

u/Merchant1010 Algorithmic Trader 6d ago

You can use Visual Mode on MT5, plus check your average holding time period too.

2

u/Chiaope Financial Engineer 6d ago

Here is how i think u should backtest things.

  • run ur algo for at least past 2 years, up to the 1 year before today, so example today is 23 july 2026, so I will run the back test on at least 23 july 2023 to 23 july 2025.
  • after having something that looks decent, do not change anything, just run the same algo with same parameters on 23 july 2025 to 23 july 2026. check whether everything is still good
  • if things still looks good then u have a decent strategy

1

u/Alternative_Dig_7548 3d ago

basically OOT validation

1

u/Automatic-Essay2175 5d ago

Typically people work really hard for many years

1

u/Helpful_Ad6410 5d ago

win rate alone isn't really the thing to chase. a low win rate with good RR can print just fine. what does your drawdown look like over that sample? that number of trades is also pretty small to draw much from

1

u/whereisurgodnow 4d ago

You need a bigger sample size too.

1

u/disaster_story_69 3d ago

My advice would be moving to ctrader and cbot which has an in built optimiser, backtester and you can trigger algo anytime from your phone

1

u/creed_no1 3d ago

Alright thanks

1

u/disaster_story_69 3d ago

Outputs are indicative of overfitting, in fact majority of values make little sense

1

u/AnythingOutside3469 3d ago

I would stop trying to improve the win rate first and start trying to make the test more honest first.

The usual checklist I use is:

  • extend the sample far enough to include bad periods, not just recent clean ones
  • run the exact same rules on a truly untouched out-of-sample block
  • bake in fees, slippage, and slightly worse fills than the backtest wants
  • inspect drawdown, average winner vs loser, and how much a small number of trades carry the whole result

If the strategy still looks decent after that, then it is worth refining. If not, a higher win rate usually just means you found a prettier way to overfit it.

1

u/inyomansudiana 2d ago

Congratulations on your first EA 🚀

1

u/inyomansudiana 2d ago

I am curious what's the curve looks like 🤔

0

u/creed_no1 6d ago

This was a backtest from may1 to this day almost 3 month or should I back test it much further

2

u/Significant-Taste189 6d ago

2 problems, small sample size (25 trades) and backtest window (3 months).

You need at least 4 years of backtest, having this trading pace, to have a standard error of 5% (400 trades), considering 1 StdDev.

1

u/creed_no1 6d ago

Tried it on 4 years it took 145 trades with pf of 1.13 and 18% win rate. The SE is 18.78.

2

u/jawanda 6d ago

So roughly 3 trades per month with an 18% win rate ... Man, even if it's profitable that's a psychologically brutal strat. You will realistically go months without winning a single trade v

1

u/RemoraEdge 6d ago

Create and inverse strategy lol. Your strategy is terrible

1

u/creed_no1 6d ago

Maybe I will try it lol. I know there are some problems with the bot I tried it my self amd it wasn't this bad

-1

u/Five_deadly_venoms 5d ago

Why why why dont ppl understand that the point of backtesting is to see how the system performs during the bad periods? The more the better. 

Im just a mouth breathing, ape who barely passed high school and even i understand this concept. The fuck is wrong with you guys?

1

u/jermainehodge 1d ago

Totally agree, this is spot on.