fxDreema

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

    Total lots open on screen?

    Questions & Answers
    4
    10
    2323
    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.
    • B
      brad 0 last edited by

      Is it possible to see the total lots open on the current pair on screen? I can't find a block for that.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        You can try this.

        0_1558981704817_00.png

        You'll have to create a variable (I called it Lots) in which the current volum will have to be inserted every tick.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        B 1 Reply Last reply Reply Quote 0
        • B
          brad 0 @l'andorrà last edited by

          @l-andorrà that one doesn't seem to work. It just gives me 0.01 lots on the screen even if I have more than that in my open trades on the same pair as the EA is attached to.

          C 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            Weird. Can you please include a screenshot and the messages log?

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            1 Reply Last reply Reply Quote 0
            • C
              CPBonzo @brad 0 last edited by

              @brad-0 Yes, that is what it will do. In the loop the "Modify Variables" block will read the size of each order in turn and place that value in the variable, over-writing the previous entry from the previously checked order. Therefore, if each of your orders is 0.01 Lots, that is the value of the Lots variable at any time there is a live trade.

              The problem you present is not as easy to solve as it seems, but I suggest it could be done by using the "For each trade" block followed by a "Once per Trade/Order" block and then the formula block which would need to take the volume of each trade in turn - set up the left operand as pulling the value of the "Lots" variable, which will be zero initially and add to it the right operand to get the lot size of each trade (as @l-andorrà set up the modify variables above). As the loop runs through each trade the volume of each will be added to the variable and the comment will display this.

              However, there are problems with this approach, as you will need to consider how, after each trade is closed, its volume is removed from the variable. Not impossible, but not straightforward.

              The difficulty is not an issue with fxDreema, but with MQL4 itself and even if one were to write a script in MQL4 directly you would need to create a loop to add the volumes of each trade individually as each is a seperate entity and, unlike say the Equity figure, MT4 does record the sum of the volume of all trades as a single value.

              I would be delighted to be proved wrong on the above, but I think it is a more challenging problem than it first appears.

              H 1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà last edited by

                You are right CPBonzo. I didn't consider the closed trades. Those lots would still be added to the "Lots" variable. Certainly not a trivial issue to deal with. More thinking is required.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                1 Reply Last reply Reply Quote 0
                • l'andorrà
                  l'andorrà last edited by

                  Try this (I didn't test it).

                  https://fxdreema.com/shared/NvFdh23Zb

                  (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                  (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                  (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                  1 Reply Last reply Reply Quote 0
                  • H
                    Hadees @CPBonzo last edited by Hadees

                    @cpbonzo i think this works if you build it on Tick
                    http://icecream.me/3667bc72f68bc9c5efd536c23df8b574

                    http://icecream.me/e4feab7dd0fd635399134880dbffbdd7

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      CPBonzo @Hadees last edited by

                      @hadees Yes, you're right and that is much more straightforward than the approach I suggested. Thank you

                      1 Reply Last reply Reply Quote 0
                      • B
                        brad 0 last edited by

                        Thanx a lot. Finally I had time to test this and it seems to work. Now I will try to make it work the way I want.

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

                        Online Users

                        S
                        G
                        B
                        F

                        28
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors