fxDreema

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

    It Wont Close Trades

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

      Im trying to build an E.A that can close multiple trades when the sum of the two trades´ profit is over a certain ammount but I just cant for the life of me figure out why it wont work, HELP!
      0_1502390900781_upload-ed119e7a-a8a6-4e5b-9d64-836106d9c977 ,

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

        For each Trade -block executes once for each trade, as the name says. So each individual trade needs to be 10 profit.

        Your logic has some mistake in it. Because of the top block (no trade), the system can check the profit only immediately after buy, and never else - there is never 10 profit immediately after opening 😄

        Put the looping block (For each trade) to the "no trade" block's yellow output, so it is active when there is a trade

        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

        M 1 Reply Last reply Reply Quote 0
        • M
          Minervastrat @roar last edited by

          @roar I think im with you mr/or mrs roar, not to sound like a noob or anything - but whats the difference between the yellow and the orange "nipple"

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

            orange = True (when there is no trade, thats where the flow continues in block #6)
            yellow = False (when there is trade, the condition at block #6 is false, so continue to yellow)

            the fxdreema project works on every tick, the whole process is repeated on every tick from top to bottom. if the process stops at the top, bottom blocks will never matter anything

            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
            • 1 / 1
            • First post
              Last post

            Online Users

            M
            A
            F

            12
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors