@l-andorrà
All good, merely thought this ( your own code ) would be a place to start.
Maybe using the same logic, but have 2 independent calculations.
1 = calculate Lose % of Balance
2 = calculate TP % of Balance.
I might have miss understood, sorry.
Knowing you, you'll get it...

V
Best posts made by Vortrexcian
-
RE: How can we select a SL/TP price level based on balance percentage?posted in Questions & Answers