fxDreema

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

    Check trades and For each trade blocks are not working in my project

    Questions & Answers
    2
    4
    286
    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.
    • S
      simba296 last edited by simba296

      I have spent many days trying to make an EA which opens maximum of 3 Buy trades and 3 Sell trades for each currency pair it trades in. I have tried to use For Each Block but the EA still opens more positions than expected. Here is the link for the project.https://fxdreema.com/shared/yZoH3ezMb
      Perhaps there is something I am not doing correctly. I then tried the Check Trades Count. It did not work either. See project link: https://fxdreema.com/shared/VismTL53c. Then I tried Custom MQL code but it did not work because of error in the code. I am not a programmer. See link https://fxdreema.com/shared/FfkceluR.
      Kindly give directions with step by step instructions on how I can resolve this problem. Perhaps a correction of Custom MQL code might help in case you can code. Thanks

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

        Technically this should work but, you have a no trade nearby which is possibly a loop causing the top blocks to be ignored, problems often come from too many blocks trying to do the same thing, strip it back and test one block, before adding the next.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • S
          simba296 last edited by

          I don't get it when you say technically this should work but I know it doesn't. Like which blocks do you have in mind to be removed?. I need all the blocks shown as part of my strategy. Removing the blocks would change my strategy.

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

            What I mean is move blocks to rhe side, link out and switch off until you find the problem, probably just need to rearrange the order.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

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

            Online Users

            P
            G
            R
            N
            S
            E
            E
            M
            O
            B
            M
            Z
            S
            S
            T

            30
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors