fxDreema

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

    how to handle two groups of trades on same EA?

    Questions & Answers
    2
    2
    482
    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.
    • M
      mathseurusd last edited by

      I'm trying to think how I can put all this in to one EA only...

      Both groups are on same EA, same account, live simultaneously. Group 1 profit is separate from group 2. If group 1 hit 10 pip profit, exit group 1 only and re-enter new group 1 order. If group 2 hit it's 10 pip profit, exit group 2 orders, enter new orders (same type) for group 2. standard lots should be 10 for each cross.

      Group 1
      buy gbpusd
      sell audusd
      sell gbpaud

      Group 2
      sell gbpusd
      buy audusd
      buy gbpaud

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

        You are obviously aware of the term "Group" in the EAs, but I can see your EA and this is what you have now - http://prntscr.com/9mmmci

        So, the issue is that when working with groups, the group number must be written in each trading block - blocks who put trades, blocks who close trades, blocks who filter trades, blocks who select trades. Because by default all blocks are set to work with a specific group, which is 0 (empty fields normally mean 0). Yes, 0 seems like nothing, but behind it there is a specific Magic Number and as we should know, when we work EAs (even with one EA + manually created trades), this can be the only thing that maps certain trades for certain EA. Otherwise if the EA decides to close all BUY EURUSD trades, it will close all BUY EURUSD trades created manually, by the EA or by any other EA 🙂

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

        Online Users

        M
        C
        L
        P
        A

        10
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors