fxDreema

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

    self updating/refreshing grid, compare two groups of trades

    Questions & Answers
    10
    449
    423928
    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.
    • R
      ramsay09 last edited by

      Hi, it seems EA is working fine so far but I have to move some lines on the chart. Is there a way to make the Lines "auto-update". What I mean is after a line has been moved the new value will be updated and EA will use the new one. I would like to avoid to open EA's properties to edit Line value manually. Is there anything to make that?

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

        With the same block that is used to create the line. Once a line is created, it can then be modified(updated). When and how often - depends on the two options at the top. Play with "Draw Line" at a separate temporary project to see how it's working.

        1 Reply Last reply Reply Quote 0
        • R
          ramsay09 last edited by

          I have tried all variations on this:

          https://fxdreema.com/shared/BnDgoCUXd

          but it was not working.
          When Line has been moved above buy-order price-level, EA have to close order. Could you explain in more detail how that could work, please.

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

            In this project you have 2 variabled (1 is not used) already set with price valued. The one that is used is not modified at all, it stays 1.267 forever. Then, that variable is used in the condition before closing trades, and also as a price level for a horizontal line. As expected, the horizontal line stays at this level because the variable is nowhere updated.

            Maybe you want to read the price value from the horizontal line? Or move the line sometimes. I don't see nothing from both cases, but it is possible.
            To move the line up-down, modify that variable somewhere. Or move it manually.
            To read it's price value, one of these situations - the two blocks on the left or the single block on the right: https://fxdreema.com/shared/VAIPQGHHd

            1 Reply Last reply Reply Quote 0
            • R
              ramsay09 last edited by

              "Maybe you want to read the price value from the horizontal line? Or move the line sometimes". Of corse, the test was something to verify EA is getting new line value. Thanks. This is working: https://fxdreema.com/shared/eEk0f3gWd

              Unfortunately there is "ones per object", that means Lines will disapear after mt4's restart. But I can life with that for now or do you see a better solution.

              But there is an another problem I am looking for an eficient solution. I would like to place lines 50, 60 and 70 pips away form current market at first time when EA starts. Therefor I have to use the adjust field. But there are different markets like 1.23043 and 132.231 for instance. What is an efficient solution to make the "Draw Line" blocks working on all forex markets.

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

                Never expect from me to know what is in your mind. Every time you (anyone) show me some project, it's something new for me. I don't know what you want to do, especially when you don't tell me!

                "ones per object" is not properly used anyway.

                You can try something like "+50pips". The word "pips" is then converted to something that depends on the market and the point settings of the EA. Also, I think it can be done with "Formula" -> Value -> Pips (as price fraction)

                1 Reply Last reply Reply Quote 0
                • R
                  ramsay09 last edited by

                  OK, I will try to be more precise in my descriptions of what I want or the problem is. Thanks, 50pips is working.

                  Is there also something to detect on what kinde of market EA is going to start (1.2024 or 182.032)?

                  It would be nice, EA could draw a line that shows the avarage current profit or loss of current open trades. Is that realizable?

                  I would like the EA to delete text after line has been crossed but this is not working:
                  https://fxdreema.com/shared/4qVd2V5lc

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

                    Condition -> Market properties. There are things like "Digits count" and "Point size" and they depend on the market. As you know, fxDreema has some options to play with the point format, which basically makes the EA to believe that these values (Digits count and Point size) are the ones you specified, not the original ones. That's why you will find select menu with 2 options - Original and Customized.

                    It is not impossible to draw the average current profit, the little problem is that this value cannot be get from the tools in "Condition". It can be calculated using few blocks and variables, or with a custom block.

                    These: http://prntscr.com/4wg2n2 are options for the name of the object. By default text object names looks like this: fxd_text_%some numbers here% but you can define your own object name in "Draw Text" - look at the third option from the top.

                    1 Reply Last reply Reply Quote 0
                    • R
                      ramsay09 last edited by

                      it seems everything is working correctly. Thanks so far.

                      1 Reply Last reply Reply Quote 0
                      • R
                        ramsay09 last edited by

                        it seems I need the profit value to display on the chart of all open buy and all open sell trades. I didn' find a block or something that delivers the profit value of, for instance, all open buy trades. How could I realize that?

                        Are key combinations possible? Something like "shift + s == close all open sell trades".

                        1 Reply Last reply Reply Quote 0
                        • R
                          ramsay09 last edited by

                          Could something like this working?

                          https://fxdreema.com/shared/fsitlrP4e

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

                            If you only want to see the value, there is an indicator called "ïExposure" that comes with MetaTrader. I will add some functionalities to get values like this in future, but I also have other things to do, so... Otherwise you can always set some Variable and make some loop to collect data from multiple trades. The idea is:

                            • define your variable, for example "myvar"
                            • on every tick...
                            • set the variable to 0
                            • start a loop, so on each trade...
                            • set the variable like this: myvar = myvar + whatever
                            • use that variable after the loop
                            1 Reply Last reply Reply Quote 0
                            • R
                              ramsay09 last edited by

                              Ok, thanks, I will try to create something according to your suggestion.

                              iExposure is very useful to get an overview what is going on on the other markets but unfortunately the profit is a sum of buy and sell positions. What I need is profit of all buy orders and all sell orders as separate values but, OK, I will try to create something as mentioned.

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

                                I understand. Now there is only one block (Check current unrealized profit) that can check these values, but it collects and uses that data inside, it can't be used from outside.

                                Otherwise I have idea to make some block similar to the pink "For each..." blocks, but to create list of trades, and then in "Condition" to use that list to calculate various things, like the sum of all profits.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  ramsay09 last edited by

                                  Thanks, I will try that later.

                                  I came to different answeres in the internet, but do you know if it is possible to trade on mt4 nano-lots. There are brokers that offer that but I read something that mt4's minimum lot size is 0.01. Is that right? What I am looking for is a broker where I can trade 1 cent/lot on mt4 instead of 10 cent/lot on micro accounts.

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

                                    The minimum value comes from the broker, I have seen minimum values of 0.01, 0.1 or even 1. Also the lot step. So I guess it depends on the broker only, I don't know if there is some hardcoded limit in MetaTrader itself. But I set it to take the minimum available lot if lower is requested, so if you put 0 as a lot size, you should see what is the minimum.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      ramsay09 last edited by

                                      Could you help, please. I would like to create the following:

                                      If profit of trade 510 is bigger than X pips then close 510 and the two first (oldest) trades of group 110. Ideally I would like to compare if profit of trade 510 is bigger than the two oldest trades of group 110. The schematic below is not working (it is only a part of something bigger and only for illustration). What should I change to make it working as mentioned above?

                                      https://fxdreema.com/shared/rQOYKEsCd

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

                                        It is 511 in the project, not 510.

                                        The profit of a single trade can be get. To compare that to the sum of other two is a little bit more complex, as some variable should be used to collect that profit.

                                        From what is it now, It must close some trades anyway.

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

                                          And again. Please, when you want to show something, just make brand new temporary project clear from weird stuff. I do this for many people, it's not that hard. I always use the same project name ".fxDreema", so it is alway there in the folders. Like this one that I just created to demonstrate that the trade is closed on 10 pips profit: https://fxdreema.com/shared/EA6fwpDVb

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            ramsay09 last edited by

                                            OK, I will try to keep your advice in mind, but my last posting become obsolet because I have a better idea to protect grid.

                                            What I need now, is the lot size of all open buy and sell trades as seperate values. On fxdreema I have found "(in loop...)" -> "volume size (lots)" but there is not possibility to select buy and sell values or even better the net lots value as modulus (no minus or plus). iExposure is delivering what I need. Is it possible to extract these values on using iExposure on custom indicators and define new buffers? How could I do that (what values) or what would you suggest?

                                            By the way, your idea to integrate the values from iExposure in fxdreema or create some blocks with these values was a very good one :).

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 22
                                            • 23
                                            • 6 / 23
                                            • First post
                                              Last post

                                            Online Users

                                            R
                                            F
                                            S

                                            10
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors