fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Problem with Virtual SL being deleted with partial close

    Bug Reports
    2
    2
    535
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kroghd last edited by

      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

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        K

        10
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors