fxDreema

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

    How do I build this EA

    Questions & Answers
    2
    2
    500
    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.
    • K
      kaswa76 last edited by

      I want to an EA that will open a buy position on the eurusd on the same time that it opens a buy position for an equal amount on the usdchf, no specific conditions for opening, and then close both positions when collectively there is a profit because one position,either the eurusd or usdchf has a larger positive profit than the other and I want the profit amount to be editable either in terms of pips or money.

      I was able to get as far as creating an EA to open the positions and even to close them but the step for getting it to recognize the profit according to my conditions does not seem to work can anyone help me here

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

        I can see your EA and I can tell you what doesn't look good with it.

        First, take a look at this, because some of your blocks have no chance to run and they need to be disconnected from the Buy blocks: https://fxdreema.com/tutorial/builder/things-not-to-do#2

        I see you have "No trade" at the top, which would pass if there is no trade from the current symbol. But since you either have 0 or 2 trades at a time, this is not a problem... but could be a problem if you plan to be able to have only 1 trade from symbol that is not the current. So take a look at this:
        0_1556386002242_dedb6aa3-598a-4acb-9b73-8654140bf2b7-image.png

        Bucket blocks can work... but better connect them one after another and disconnect them from the Buy blocks. I don't think that what you ask for in "Condition" is good. The chance is that in all times the profits from both trades are different, even with one cent, so basically the block will always pass and is useless. I think you want to add something like "+10" in the Adjust field of one of both sides, so you can check if the profit of one trade is bigger that the other with 10 (dollars). And another similar Condition for the opposite case.

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

        Online Users

        I
        D
        M
        A
        H
        R
        S

        18
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors