Create a Custom Max Formula
-
Hey Traders, so i've been messing around with the OnTester function and I've come up with a formula that is okay when using the custom max input.
double OnTester(void)
{
return ((TesterStatistics(STAT_PROFIT)+TesterStatistics(STAT_INITIAL_DEPOSIT))*TesterStatistics((STAT_RECOVERY_FACTOR));
}Here's the code here. I was wondering if anyone else had something interesting that they might be able to share. Always interested to see if someone might have a better formula.
-
@sm24 This is for real programmers. Did you try it?
-
@l-andorrà yes my code works I was just wondering if anyone else might have something a bit better. Maybe incorporating Sharpe ratio?
-
@sm24 many times the tester finds just 1 or 2 really good trades with no drawdown and gets stuck with those. I think a good score would be recovery factor * trades, or sharpe * trades
-
@roar okay I'll try the Sharpe * trades. I'm really interested in the complex criterion formula in mt5 but it doesn't produce enough results. I would love to know how that formula is written.
-
How are you implementing this code, it does not work for me. Then again I am using mt5. Manage to get the link below work but if I can do this all without using the custom block feature that would be better.