fxDreema

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

    Bug in a Sell pending order with OCO yes

    Bug Reports
    2
    4
    1055
    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.
    • G
      guille4 last edited by

      When I place a Sell pending order with OCO on value "yes",

      in backtesting this block place two pending orders as follows:

      1. The Sell stop order itself (at market price)
      2. At the same time another strange Buy stop at a different price with a stop loss and take profit with strange values

      If I deactivate the OCO order then the error disapear

      Chek this simple project to see the bug in action and backtest it in mt4 (my backtest are conduct in EURUSD M5 timeframe):

      https://fxdreema.com/shared/wyBpNkeKb

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

        This is the idea. The second order is like in a mirror. Then, when one of them is trigerred/deleted, the other is automatically deleted.

        1 Reply Last reply Reply Quote 0
        • G
          guille4 last edited by

          But... in the same logic the buy pending order with OCO on "yes" must work in the same way, creating another order mirror, but it doesn't.

          And why the "mirror" order put those so rare levels of stop loss and take profit ?

          I do not understand the logics behind

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

            There was a problem when no stops are used. I fixed this problem.

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

            Online Users

            S
            A
            B
            A
            J
            D

            15
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors