Win rate reference?

 

Hi everyone,

I'm new to the forum. I have an EA already designed, but wanted to refine it a bit and experiment more around it. Does anyone know how I can calculate the running win rate of the trades my EA is placing? Is there no reference to this within MQL4? I already know what the win rate should be around or I can calculate it manually, but I want it automated so I can vary lot sizes based on my running win rate.

 

Thanks 

 
  1. Go through history for that pair, Count winning trades, count total trades, divide. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  2. Win rate means nothing; you can win 80% but if your loosers are 10x winner you are loosing. expectation=%win * ave(win size) - %lost * ave(loss size)
 
I know win rate means nothing. I made an EA that had a 92% win rate and lost. My current EA has a win rate of 55 to 60% with 1:1 risk/reward.
Reason: