fxDreema

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

    No trade on multiple EAs

    Questions & Answers
    2
    4
    573
    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
      tanjiayi1 last edited by

      Hello, I have muliple EAs running on the same pair, all with a 'No trade' condition so that there's only 1 open trade at a time. With this setup, will any of the EA 'detect' an open trade made by the other EA and not open a trade even if condition is met? My EAs are on the same pair, different timeframes. Thank you!

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @tanjiayi1 last edited by

        @tanjiayi1 If they have same magic number the other instances will recognize the trades on the symbol they are attached at. If you use the same EA, try to set magic number by yourself with the logic base number + timeframe in minutes.
        Exapmle:
        Base: 10000
        M1: 10001
        M5: 10005
        ... and so on.

        However, you need to implement the logic by yourself.

        I like to share my knowledge, but expect the others to contribute as well.

        T 1 Reply Last reply Reply Quote 1
        • T
          tanjiayi1 @trader.philipps last edited by

          @trader-philipps thanks for your advice! Right now they all have different magic numbers. Does it mean that if I only want 1 open trade at a time for the pair (across all the timeframes which the EAs are running one), I should set the same magic number for all these EAs?

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @tanjiayi1 last edited by

            @tanjiayi1 Well, that't not what I would recommend to do, but if your EAs check if there is a trade open, yes, that's a way to do it.

            I like to share my knowledge, but expect the others to contribute as well.

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

            Online Users

            L
            A
            G
            N
            S
            E
            S
            N
            O

            21
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors