fxDreema

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

    Check Profit > Close Trade - What am I doing wrong.

    Questions & Answers
    2
    4
    946
    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.
    • D
      droctagon last edited by

      Hi,

      I placed blocks to check from profit > $1 and < -$5 and if so close the trade but neither are executing in Live Demo MT4.

      I'm assuming I'm doing something wrong?

      https://fxdreema.com/shared/JNWKhaW3b

      Thank you.

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

        The yellow output in most blocks is "else". The yellow output of a block named "If trade" is the opposite, it's like "No trade exists". And then from the yellow output of block 167 you have connected "For each Trade". But there is no trade at that moment, how can "For each Trade" work, if there is not a single trade?

        You probably want to put both "check profit" under 161. I'm not exactly sure that "check profit" worked for negative values... if not, try "check loss" with positive value.

        Otherwise now that group under block 161 should work, but not the group of block 164.

        1 Reply Last reply Reply Quote 0
        • D
          droctagon last edited by

          Sorry the yellow connector was a complete mistake! I have made corrections.

          However, the profit/loss blocks are still not executing the closure of a trade when the conditions are met in a live demo environment?

          https://fxdreema.com/shared/0cX2VOFLb

          Thank you.

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

            But this EA makes new trade on every tick. What is this, it doesn't look as it should be... Look at what I got:
            http://prntscr.com/ad8xg2
            http://i.imgur.com/oPYLE85.png

            These "AND" blocks are not needed there.

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

            Online Users

            K
            A
            D
            S
            G

            12
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors