fxDreema

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

    Delete current Pending orders on every new 5min Candle! Is there something wrong with the logic?

    Questions & Answers
    2
    3
    407
    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.
    • T
      tho401 last edited by

      I have a problem with the Pening orders, i have set the expiration mode to 5min, so that every new 5min candle the old orders should be deleted (expired).

      But for some reason it doesent always works, sometimes i have 2-3 pending orders at the same time, wich means they should not be valid anymore.

      Every new 5min candle my EA opens new pending orders, at that point i want my Old pending orders from the last 5min candle deletet (if they where not executed)

      I realy dont know what is wrong, i need help with this.

      0_1619531715365_Screenshot (1856).png

      The check age condition is also set to 5min. I hope its understandable what i mean.

      1 Reply Last reply Reply Quote 0
      • T
        tho401 last edited by

        on condition block 34 and 35 i have set the expiration mode to 5min.
        on condition block 40 i also have set the expiration mode to 5min.

        I dont understand where the mistake is, why doesent it close the old orders from last 5min candle?

        My EA calculates new pending orders every 5mins, i want the orders to be deleted next 5min candle if they where not executed.

        For some reason i sometimes have 2-3 pending orders open with the not valid prices from 5-10 min ago.

        AlphaOmega 1 Reply Last reply Reply Quote 0
        • AlphaOmega
          AlphaOmega @tho401 last edited by AlphaOmega

          @tho401 Upload your logic... I do not understand your block setup . I would think something like this:
          https://fxdreema.com/shared/XAYlZ7e7

          I did not test it .. just thinking on the fly

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

          Online Users

          S
          A
          B
          A
          J
          D

          20
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors