fxDreema

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

    Adjust stops to actual open price

    General Discussions
    2
    3
    1968
    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.
    • S
      sebastianblack Banned last edited by

      well... I agree with you

      1 Reply Last reply Reply Quote 0
      • N
        Nabakap last edited by

        I found some old topic at "2014 december" viewtopic.php?f=14&t=2719
        You say:
        __- [MQL4] When a trade was opened with slippage, the stops (stop-loss/take-profit) will be adjusted to the actual open price of the trade. This will happen with modify operation right after the trade is created.[/quote:1qjbm6f7]

        This is very important for me. I was trading on news with "stradle ea" some time ago (maybe 1.5 year ago), and everything was great until I get some ~30 pips slipage on nonfarmpayrols (thanks to luck that my tp was hit befor it desided to revers). The thing is that on that trade I discover that my pending order open price slipaged, but sl and tp levels keep staying... so my sl was not 10 pips anymore, but now there was 10+~30 = ~40 pips 😮

        Can you explain ... I don't get it... stops can be adjusted by your ea's? or MetaQuotes will do changes in MT4 so stops will be adjusted automaticly? Or maybe changes have ben made alredy (there was some mt4 updates sometime ago) and I can try news trading again?
        Sory for my bad english.

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

          This is for trades only, not pending orders. The problem comes from the fact that we send the request of our future trade in absolute values - SL and TP values are absolute, like 1.23456, not relative values to the open price, like 0.0010. Then on the server the Open Price can be something different than what we wanted, but SL and TP will be the absolute values we have sent. So eventually our Open Price will shift towards SL or TP.

          In the EA I decided this - when such thing happens, to modify SL and TP relative to the open price. For this, the EA just compares the Open Price we initially wanted with the real Open Price at which the trade was opened. If there is a difference between those two prices - SL and TP are modified immediately. But pending orders are not monitored for this. It can be done, I guess, but now this only works for trades.

          My idea is... isn't the server responsible to open pending orders at the price we want? There is no reason for big slippage, because there is no network delay of the request. The pending order exists on the server and the server is responsble to open it on the correct price. The server have the most fresh quotes. 30 pips difference.... I don't know, is this because the market was really really weird at that time or it was some bug from the broker?

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

          Online Users

          S
          E
          S
          N
          O

          21
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors