fxDreema

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

    various questions: pending order loop, delete all pending orders after event, use of the on trade page and check equity percentage or ratio

    Questions & Answers
    2
    3
    1924
    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.
    • S
      Satyne last edited by

      Hello!

      I am a new subscriber to this wonderful EA software, and I can say I am a little addicted to it 😉

      I have recreated several EA's from tutorials by various people online, so I could learn how this works. I also have been reading the Q&A here and have found that to be very useful.

      I do have a few things I haven't quite figured out and would love it if you could take a look with me.

      First thing:
      I would like to have an x amount of pending orders that - after taking profit - will be put back into the pending order list or loop. The pending orders are triggered after two initial buy orders.

      I have tried to use the deep pink block (for each pending order), but I think I don't know how to get it to work, as none of the pink (or other colored) conditions seem to make sense to me to create this loop. I have tried placing it on "On Tick" and on "On Trade" as well to no avail (i think).

      Second I would like for all the pending orders to be deleted after the initial two buy orders are closed. Since one of the two will be taking a 10 pip profit (= the only member of group 101), I have set the "On Trade" with a Trade Closed -> Check type (buy order, group 101) -> Delete Pending orders. In the test results (99,9% accurate) I don't see the cancels show up on the report file. I am sure this is working as intended, but I am just curious if I can find out whether these p/o's are cancelled or if they float around forever being a potential threat to my balance in the future 😉

      Another question I have is this: i was wondering if the "On Trade" page would be suitable to put the pending order trigger on. I currently have them placed under the initial 2 buy orders. Should I have them under On Trade: Trade Created -> buy pending order? (wondering about best practice more than anything, since right now the pending orders are bought/sold as they should with this setup)

      Last question: I am trying to formulate a condition where the EA checks the equity percentage or a ratio. Let's say I wan't the EA to stop or pause trading when my equity falls below a certain percentage, would that be possible? Or does it always have to be a hard value.

      I have a shared link of the EA here for you to see: https://fxdreema.com/shared/B21M7AnHc
      (slightly simplified version, for my educational purpose)

      Thanks in advance for taking a look at my project!

      Kris

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

        Making pending orders in "on Trade" should work, there is no reason for this to not work. But always use those purple blocks to filter the exact kind of event. What you now have in "on Trade" is a little bit no-no. Better do that "Trade Closed -> ....". If you want to see what actually happens, test it in visual mode. But I think that canceled orders are reported in the logs, you should see them.

        Will this work in "on Tick"? No trade (buys only) -> Delete pending orders. I'm not sure when do you want to delete all orders. If you want to delete them when there are 0 trades, then just go No trade -> Delete pending orders

        In Condition search in Account for Balance and Equity. You can compare these. Or you can also work with this block - Check profit (unrealized) - which returns the profit made from a group of trades, not the global profit of the account.

        1 Reply Last reply Reply Quote 0
        • S
          Satyne last edited by

          Hello again,

          Thanks for your answers! No trade -> delete pending orders makes more sense indeed. Thank you!

          I have a question about the pink block " add to volume" it says in the (?) that it only works for trades. Does this mean it does not work for pending orders that have triggered their price and turned into trades? or will this still be seen as a pending order?

          I am trying to make a block that will see that a pending order has been activated and takes profit, to then copy that pending order and put it back in the pending orders list. Does the (?) in the ' add volume" mean that this is not possible?

          Right now I have:

          for each pending order -> check how it was closed (take profit) -> add to volume.

          Thanks for reading!

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

          Online Users

          P

          6
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors