fxDreema

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

    Max number of open trades

    Questions & Answers
    3
    4
    1499
    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
      coverman last edited by coverman

      I want to add one EA that is making trades with different currency pairs, but it should not take any new trades if there are more than the number of trades set.
      So, if I set Max trades to 3, the EA should not take any trades if there are 3 or more open trades running.

      I guess I can't use the Bucket of Trades, since the EA I am working on will only open trades and then another EA will take care of the open trades. So I just need to make sure that there are not too many trades open when taking a new trade.

      I tried the following block, but it won't take any trades at all when using this (at least when I tried it in the strategy tester).
      Is this the correct block to use for this idea?
      0_1535532561076_check.png

      1 Reply Last reply Reply Quote 0
      • C
        coverman last edited by

        Actually I think I solved it. It should have been connected to the yellow dot. I mixed up the True/False when using larger than.

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

          That "Compare" option can also be changed 🙂 I prefer to use the orange output whenever possible, it's less confusion. Just use < or <=, instead of >

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

            had you been done it?

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

            Online Users

            S
            A
            M
            R
            G
            T
            G
            Y
            C
            S
            S
            S
            A

            29
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors