Problem with Virtual SL being deleted with partial close
-
Hi,
I have attached a sample project - and it has a problem when you have Trade 1 - use partial close then open a new trade with Virtual SL then Partial Close again Trade 1 the Virtual SL on trade 2 is removed.
You can see this happen when block 12 is reached - virtual SL for block13 trade is deleted.
Also - with Virtual SL - is it possible to have your code skip the checks done in AlignStopLoss because Virtual Stops are completely local to the EA & no checks really needed against minimum stops - I find sometimes I get messages like: Warning: Too short SL requested.
One feature request - is it possible to have scroll bar to Variable Screen Popup & button at bottom to close because if project has many variables its very hard to get up to the top to close & have to drag & hold.
Also with variable value field if mouse wheel is used on field it goes -1, -2 etc - this could be a problem if you don't notice this.
Thanks
......
virt_sl_test.xml -
I think I fixed the problem, here is what I used to work with it: https://fxdreema.com/shared/iXmqBbmAc
I don't remember why I decided to set SL to it's minimum size in AlignStopLoss() while working with virtual stops. Maybe because I wanted the same EA tested with normal or virtual stops to give the same results in backtest. Now I make it the way you want it and I hope that there will be no problem to come out of this

I will try to fix the other things as well.