fxDreema

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

    example: For each trade

    Tutorials by Users
    6
    22
    16114
    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.
    • roar
      roar @BHovens last edited by roar

      @bhovens said in example: For each trade:

      close the first and last trade, when profit is 5 for both first and last trade

      What do you mean, exactly?
      First trade profit + last trade profit >= 5 ?

      Currently there is no AND logic, the EA just closes first trade OR last trade whenever one of them is $5 in profit.

      If you do want this AND logic, here's a method to do it with two variables; firstprofit and lastprofit:
      https://fxdreema.com/shared/yoGXk7TYd

      Need small help? Tag me in your post
      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

      1 Reply Last reply Reply Quote 0
      • B
        BHovens last edited by

        Hi Roar, many thanks for your support. It now works really well!!!

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

        Online Users

        D
        K
        K
        E
        S
        I
        G
        F
        A
        I

        26
        Online

        146.6k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors