@Aitor-0 I missed your question, sorry. Here you have my customized martingale project doing exactly that:

https://fxdreema.com/shared/6o0uTdg3e