Not sure if you are still updating this project, but in case you are, and/or others are interested...
A while back I made some significant fixes/enhancements to all the SL/TP line/label displays handling, and some minor changes to lot size rounding error, added finer granularity risk adjustment to allow micro lot sizes and possibly some other minor things.
The major changes are 4 new routines to handle the moving and setting text of TP / SL lines and their labels (lines 4018-4128). They replace all of the existing code to deal with SL/TP lines and labels drawing, and I believe fix all related issues I was aware of with these at the time.
These changes are (all/mostly?) marked with //alb so can be reviewed/included by Girard or whoever might be maintaining this, if they so chose. I just commented out all of the original code and left it there to more easily allow review of the changes.
As a side note, one thing that would be helpful to add to your documentation/pictures is that typing "O" opens up the Options menu. Searched around the code for some time before I found that, and then things became much more interesting :)
Please feel free to use as you see fit.
I'm back, feel free to update me on BUG and ask for more functionality.
@albry : I will look the changes, and if it’s OK for me I will publish the change and add your name in credit :)
Welcome back and please feel free to use in any way you see fit.
I recall that there are some other visual lines/labels and sections of code that are repeated quite often, which I was tempted to provide function calls for but ran out of time. You might want to consider these if you have time and see benefit :)
If you have any questions let me know through PM.