fxDreema

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

    Modifying Virtual Stops

    Questions & Answers
    2
    5
    924
    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.
    • O
      oseiwe last edited by

      Hi,

      After hours of battling, I have decided to give up and simply ask:

      How do I modify a virtual stop loss when price reaches a certain percentage of TP? I know how to do this normally if using hard stops (by using "Modify Stops"), however since virtual SLs and TPs are not stored in the trade's statistics, there is nothing for the EA to base its calculations on.

      An example is I want to move SL from break even to 10% in profit when prices reaches 50% of TP.

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

        Virtual stops are just one setting - use them or not. Then in the EA everything what works for hard stops should work with virtual stops, so there is no difference in the EA. Only if there is some bug somewhere, who knows. Give me some simple project where everything works with hard stops, but as soon as you enable virtual stops they don't work the same?

        1 Reply Last reply Reply Quote 0
        • O
          oseiwe last edited by

          Hi,

          You are right. I have just scaled everything down and tested with a simple EA and it works both ways. So it must be something else in my original EA that's the issue.

          Sorry for the bother.

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

            I was just looking at your latest EA and I noticed that there is no "For each..." blocks. This is something that I repeat over and over again, this block is a MUST when pink blocks are involved - https://fxdreema.com/demo/mt4-loop-how-it-works

            1 Reply Last reply Reply Quote 0
            • O
              oseiwe last edited by

              Thanks. I had achieved the same result using counters. But it was way more long-winded.
              Thanks for pointing that out. Will amend my EA

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

              Online Users

              A
              M
              E
              A
              E
              N
              S

              16
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors