fxDreema

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

    close multiple trades & reverse same # of trades

    Questions & Answers
    2
    7
    1480
    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
      Dore last edited by

      My algo can have multiple open positions. I want to add a feature so that when for example 5 open buys are closed I open 5 sell trades. I did this test EA using the Bucket of trades & the loop N times blocks . it does not work. The buttons open & close trades but it does not reverse the closed positions. Not sure if I am using the Bucket of trades & the loop blocks correctly
      https://fxdreema.com/shared/bTL4DY2wb
      Thanks

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

        My logic works when I put a number in the Loop pass N times block. when I use the variable that should be generated from the Bucket of trades block it does not work. Therefore my problem is that I do not understand how to use the Bucket of trades block. Any help understanding the bucket of trades block would be appreciated
        Thanks
        0_1585130545738_6953ed5b-3f0b-4e12-b296-7c30445f1284-image.png

        1 Reply Last reply Reply Quote 0
        • V
          varso last edited by varso

          try this

          https://fxdreema.com/shared/v1lYmAJ0e

          sell is viceversa

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

            Ok Thanks, I will try that. If I understand correctly the bucket of trades does not store the trade count value in the variable directly?

            1 Reply Last reply Reply Quote 0
            • V
              varso last edited by varso

              No, i think it doesnt. If you want rewrite variable use always Formula. I use like this every time. Also you have wrong the condition pass-Bucket of Trades-Bucket of trades in pictures. It must be seperetly.

              0_1585147821522_2020-03-25 15_49_08-Window.jpg

              https://fxdreema.com/shared/7XXlRTYub

              i also use comments that i know what happens.

              try it .:-)

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

                Ok I tried that It works for the buy side but I have a problem on the sell side.
                0_1585150338094_158052e4-11a3-4cb5-8384-d84240058e4f-image.png

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

                  It is now working. I updated all the blocks & re-complied & now it is OK. I still do not fully understand the relationship between the Bucket of trades & the variables But I should be able to make it do what I want. This fxdreema program is great & the community support adds a lot of value. Thanks for the help hopefully some time I can return the favour

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

                  Online Users

                  C
                  S
                  S
                  S
                  A

                  14
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors