how to code "% profit trades" into an EA for backtesting/optimisation

 

hi


does anyone know how to code "% profit trades" into an EA so it can allow this factor to be optimised in the strat tester?


Im suprised they dont offer this built in. max dd, balance, profit factor are all available/offered but % winning trades isnt - even though its a key element to trading and on the backtesting report


I know it involves using the "OnTester()" function but not much else so..


Any help would be appreciated!


cheers

 
Freelance service at MQL5.com
Freelance service at MQL5.com
  • www.mql5.com
Orders for the development of automated trading programs
Reason: