fxDreema

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

    Bucket of trades on init not firing

    Questions & Answers
    2
    6
    465
    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.
    • General Melchett
      General Melchett last edited by

      Hi there

      I have a bucket of trades block in oninit but the block doesn't fire when loaded. I have tested but with some buy/sell blocks before it and it works perfectly.

      And when I say the bucket of trades block doesn't fire, I mean I put a log message on both true/false outputs and nothing happens.

      Anyone shed any light on this?

      https://fxdreema.com/shared/otQ1Hjorb

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @General Melchett last edited by

        @general-melchett I am unsure but possibly correct your block id's.

        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
        • General Melchett
          General Melchett last edited by

          Tried normalizing...same. No difference. Still doesn't fire bucket block...

          1 Reply Last reply Reply Quote 0
          • General Melchett
            General Melchett last edited by

            I put an 'if trade' block before the bucket, the argument fails (I know this as I put a log message to print).

            So the EA believes there are no trades running (there are 2 open on the same chart/pair! It's a demo account).

            I now have to figure out in what instance the EA would assume no trades are running (where there are).

            1 Reply Last reply Reply Quote 0
            • General Melchett
              General Melchett last edited by

              This is weird. Even if I put an 'if trade' block, in oninit or on tick, it returns false, even when 2 trades are running??

              https://fxdreema.com/shared/RChf9BtGc

              1 Reply Last reply Reply Quote 0
              • General Melchett
                General Melchett last edited by General Melchett

                Problem solved, my bad: I set group mode to 'All' and now the EA performs as expected.

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

                Online Users

                E
                H

                12
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors