hi magix

if %DD > %Gain

1 -there is something wrong. account does not live much.
2 -I had coded & tested too many. there is no way of trading without booking loss or result MC

here the best I could do which can not trad live
https://www.myfxbook.com/strategies/tlcf-v2-32-9gb25-2/48268

on the other hand coding is good for learning
GL
fyi