fxDreema

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

    Virtual Stop bug?

    Bug Reports
    2
    8
    1247
    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.
    • E
      edwardseer last edited by

      i just tried virtual stop and a problem that occur is sometimes the virtual stop line shown on the chart would not update to the latest stop loss i set. it would only update if i delete the line and it will then recalculate. i think the actual stop loss was also not updated too as the emergency stop i set also was updated after i deleted the pink line from the virtual stop

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

        Do you have some simple project/example that can produce this problem?

        1 Reply Last reply Reply Quote 0
        • E
          edwardseer last edited by

          i uploaded my project under id mt4-1630. the stop loss is under the fractal trailing stop is it because if u delete the line it treat it as the stop loss is deleted?

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

            This is complex project also including indicator that I don't have 🙂 Can you show me the problem with some **simple **test EA?

            Yes, if you delete the line, there is no stop anymore. There is a function that checks all lines on every tick and if the price is beyond line like this (they have special names), the trade is closed.

            1 Reply Last reply Reply Quote 0
            • E
              edwardseer last edited by

              i guess it might be some problem with my code that's causing the problem though but im not too sure. i separated out the stop function of the ea and used the universal fractal instead. maybe you can check it out. its under mt4-1887. i will check what might be the problem in my code again.

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

                What if you work withe regular stops? Or what if you disable those "modify stops"? At least when you disable some blocks, you can detect if they are causing the problem or not.

                By the way, are you sure that you want "Once per bar" to be there, after "For each Trade"?

                1 Reply Last reply Reply Quote 0
                • E
                  edwardseer last edited by

                  i did not notice the problem when i was using regular stop. but then i have changed some of the code although not related to the stop since i used the regular stop. i will test it out. i wanted the once per bar to be there as i only wanted it to change the stop loss and take profit level once every bar. since the take profit level is dependent on the candle close price. and i noticed that the ea will keep set the same stop loss in the bar in the expert journal even if the stop loss was not changed.

                  1 Reply Last reply Reply Quote 0
                  • E
                    edwardseer last edited by

                    i think the problem was due to my own code, the initial stop loss was somehow always placed too wide cant figure it out yet though. sorry for the trouble.

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

                    Online Users

                    B
                    L
                    H
                    S
                    E

                    9
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors