fxDreema

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

    Total Order Count both Pending order and running trades

    General Discussions
    2
    3
    152
    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.
    • C
      COFX last edited by

      I want my ea to be able to count all the existing orders, both trades and pending order. Then close all trades and delete all pending orders if their total number is less than an input value

      Say for instance input value for total orders = 30, if trades is 6 and pending order is 24 nothing happens

      But if trade is 1 and pending order 19 for instance, they all close since it doesn't sum up to 30

      Please I've been trying to do this for days 🙏🙏

      1 Reply Last reply Reply Quote 0
      • l'andorrĂ 
        l'andorrĂ  last edited by

        I don't understand the logic behind that. Are you ready to close 19 open trades in loss just because it is below 30? What is the point of that?

        (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.

        C 1 Reply Last reply Reply Quote 0
        • C
          COFX @l'andorrĂ  last edited by

          @l-andorrĂ  I said 1 trade and 19 pending orders. And yes I'm ready to close it all just because their sum is below 30... Here's the reason.

          I'm using a trailing stop for group of orders. When the trailing stop is activated, everything is supposed to be deleted as I'm also using the check stop loss then delete order and close losable trades blocks. However, sometimes slippage or because the trades hit stop loss as soon as it is modified cause for only the modified orders to close and the pending orders just stay there while losable trades stay open and continue to run in loss.

          So I need a way to close them all if they are less than a certain number. That way the ea keep searching to see if they are less than a certain number and close all

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

          Online Users

          S
          S
          L
          E
          M
          A
          H
          S

          16
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors