fxDreema

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

    Working with "Pending Orders", their deletion and trailing of their Stop Loss when triggered in

    Questions & Answers
    pending order trailing ticket stop loss ea testing
    2
    2
    826
    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.
    • umbrellamaker
      umbrellamaker last edited by umbrellamaker

      Hey peeps,

      I got an actually full working EA and wanted to replace instant execution with pending orders.

      The situation:

      As you can see in the screenshot the pending order (Ticket 4; red circle) got cancelled.

      Another valid pending order was created (Ticket 5; purple circle) and got triggered (Ticket 4; also purple circle).

      As soon as the trade reaches 50% of its stop loss size, its stop loss gets trailed with the 1h50EMA.

      That is perfectly working, BUT ...

      The issue:

      ... as soon as the EA needs to delete a pending order or a pending order expires, the EA is not trailing the SL at all.

      I assume it has something to do with the ticket number, because when the position gets triggered (Ticket 4; purple circle)
      it got the Ticket 4 - the same number of the canceled pending order.

      I think the EA only checks the SL of the same ticket, which is - as in this situation - already closed and nothing to trail is left.

      I can I make the EA check the targeted position? In this case I cannot implement any Block, which deletes or expires the pending order.

      I appreciate any guess, tip, help and support!

      Thanks guys for your help!

      0_1613393920099_b4e0f363-ce41-43f9-803d-62da49a817b3-image.png

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @umbrellamaker last edited by

        @umbrellamaker Can you please share the link to your project?

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

        Online Users

        H
        J
        E
        T
        E
        B

        16
        Online

        146.6k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors