fxDreema

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

    Expiration Time on Pending Orders vs. Live Executed Orders

    Questions & Answers
    2
    3
    355
    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.
    • D
      daedalus last edited by

      I've been backtesting a strategy that uses a simple buy/sell pending order block with an order expiration time so I can tune an input of minutes to cancel an order that has not yet filled in a given amount of time.

      In the backtests this executes correctly only killing pending orders and leaving filled orders in that time amount to run with their intended logic. However, running the strategy live on Demo however the expiration time seems to be closing filled orders as well at the expiration time (not just pending orders).

      Is there a way to only have this block kill pending orders and not live orders that have filled?

      0_1619745306323_Screenshot 2021-04-29 201433.jpg 0_1619745309444_Screenshot 2021-04-29 201454.jpg

      1 Reply Last reply Reply Quote 0
      • D
        daedalus last edited by

        Figured out a workaround. Just posting for future search helpfulness for someone else. I left the expiration set in minutes as you see above in post one and then I used a new for each trade modify expiration block so that every trade that fills automatically kills the expiration and sets it to "no expiration" and problem solved.

        Cheers.

        0_1619813184663_Screenshot 2021-04-30 150448.png

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

          @daedalus Thank you for sharing.

          (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

          S
          B
          M
          E
          R
          K
          E

          12
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors