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

      It seems there is a problem with a block after compiling my EA: "Grid-EA SF full-auto v2.4". Could you look over please.

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

        Hello together,

        maybe someone can help. I would like to know how to create a self updating/refreshing grid or virtual grid? The block "buy pending order in grid" and its features is almost what i need but i need pending orders on demand (virtual) and the grid should update for e. g. every 10 pips. There should be always a buy order 10 pips above and 10 pips below the current price and the other features of "buy pending order in grid" should also work.

        The other problem i have is how to compare two Group of Trades with each other. For example 111 is in loss 121 is in profit. Orders schould close if sum of all orders of these Groups is for e. g. > 50 pips. To use account is not possible because of the short side trades. I need a sum of only these two groups.

        regards
        ramsay09

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

          10 pips grid which is updated on every 10 pips? Why do I think that only the first (virtual or not) pending order in that grid will be used 😕

          There is a block "Round numbers detector" which passes on every few pips - one of it's outputs is active at a time, depending on the price movement (up or down). It goes up 10 pips - orange out is active. It goes down with 10 pips -the yellow one is active. Up, Down, Up, Up - orange, yellow, orange, orange.
          If you connect some "Buy/Sell now" blocks to this block, isn't this similar to what you want?

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

            thanks. I will experiment with the "Round numbers detector" block. But how can i prevent to buy on same price level again? For instance if price was trending up then comes down and trending up again to the price level was left before to the order did not hit take profit. How to prevent to buy there again but to buy on the next step?

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

              Something like this maybe: https://fxdreema.com/shared/3UEI50LSd
              This is the result: http://prntscr.com/407keu

              And this is very similar to placing some pending orders out there in equal distance

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

                Very nice, thank you.

                Adding TP its look like this http://prntscr.com/408fya . But what i really need is the EA is buying every 10 pips price is rising and not only if TP was hit (last order was closed). It should looks like on every rising branch of price is every 10 pips an open or closed buy order from bottom to its top and no stop loss.

                I also would like to use the blocks "add to volume" and "extend TP" but they seem not to work.

                Then, I think, the block "pips away from open-price" could be also used to increase the gap between two orders automaticly by a percentage value.

                Could you help and modify please: https://fxdreema.com/shared/K7NIc8qne

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

                  All these pink blocks with lowercase titles needs "For each Trade" in order to work, but I'm so tired to explain this 🙂

                  https://fxdreema.com/demo/mt4-loop-how-it-works

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

                    I tried different combinations on Init and on Tick but nothing was working properly. What am I doing wrong?

                    The easiest and for me most logical way to create what i need is to place a pending order 10 pips above and drag it down with "slide order" when market is trending down, if market moves 10 pips up the pending order will be turned into a market order and TP could be hit 10 pips later. And if there would be no "no pending order exist" orders will stay with no stop that part will be done.

                    I do not know what to change to make it working.
                    https://fxdreema.com/shared/z9HlBOvVc

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

                      Are you aware that all of the blocks are disabled? 😮 Look at that red glowing.

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

                        yes, of corse. I am working only at the left top corner the rest comes later if that part is working properly. I turned the other parts of to make sure they do not influence each other. The "on Init" part is because of your example but is not working. Sometimes there are calculations on mt4 backtest but no graf or results.

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

                          Ahhh, on Init...

                          No, these blocks does not work by themselves, they also does not work by chance. "For each Trade" gets the total number of trades and then starts to load them one by one, calling the next blocks. All pink blocks know what trade is loaded by "For each Trade", so they do something with that trade... depends on what is the name of the block.

                          "For each Trade" is not self-executed! When it is under "on Init" it will be executed once and forever. No block has internal "on Tick" functionality. All blocks are basically passive = they work when they are executed, they do whatever they has to do and stop forever, or until they are executed again.

                          Also, "For each Trade" works for trades, not for pending orders. I can see you have "Buy pending order", but this creates what - pending order. There is "For each Pending Order" for pending orders 🙂 All the other pink blocks are universal - they work with whatever is loaded using "For each....". Well, most of them, some like "slide order" are specific for pending orders.

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

                            I have rebuild but it is not working. The left upper tree is working fine but I need the condition for next trade an increase of 10 pips and not a close of the last trade beause there should be no stops. Exits will be controled by other means.

                            The solution with pending orders (upper middle tree) is also not working but logically it have to (tried different combinations on this tree). What i am expecting is a pending order allways active and waiting for execution and is draging down (slide order) when market is moving down.

                            What is wrong?

                            https://fxdreema.com/shared/NdJ0c1eNd

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

                              Ok, no stops for trades, pending orders needs to be moved down when the price goes down. Then what about this: https://fxdreema.com/shared/SriajFcge

                              1. When there is no pending order -> create one at 10 pips above the price.
                              2. When that pending order turns into trade we go to 1) because now we don't have pending order anymore.
                              3. We have pending order at 10 (or < 10) pips above the current price all the time, because when the price is going down the order is also moved down.
                              4. We have trades opened at ~10 (or < 10) pips from each other: http://prntscr.com/40yfdj
                              1 Reply Last reply Reply Quote 0
                              • R
                                ramsay09 last edited by

                                thank you, that is almost what i need. Unfortunately it is on becktesting very very slow and optimization will be almost impossible. Is there no way to use the left tree and get same results like in the middle tree provide?

                                Appart from above mentioned i definitely need on "buy pending order" price offset, volume size and take profit in percentage of the last pending order. I tried to solve this with the adjust field but it did not work.
                                What would you suggest?

                                https://fxdreema.com/shared/2QhEm8Hrc

                                p.s.

                                I do not know what happend but i can not run EA. After experimenting with "on Init" (and deliting everything) I could not start expert properties sometimes and now nothing works.
                                p.p.s.
                                It works again after deleting and loading the "buy pending order" bolck again.

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

                                  What is this now: http://prntscr.com/41c9na

                                  Adjust fields acceps something like "+10", "-20", "+10/100".
                                  "150%" does not mean 150% of the value, but you can try *150% or *150/100 or 1.5. notice the "" sign here.

                                  And these values are not something from the last pending order. To load data from the last pending order, "For each Pending Order" can be used with "Not more than...." parameter set to 1. And then use: http://prntscr.com/41cbyo

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

                                    I have figured out how to make a grid i need but the trees do not work together (the trees below). They only work together if I connect buy and sell to one pink block. How to make them work as two trees?

                                    https://fxdreema.com/shared/f3LjKAU3b

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

                                      https://fxdreema.com/demo/mt4-loop-how-it-works

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

                                        What am I doing wrong (lower left korner)? The active blocks are working properly. The left tree also should work but there is no graph on mt4 although there are calculation on mt4.
                                        As I did understand the light pink blocks are controled by the dark pink block, they are passiv and doing only something on active blocks (sell now) but the right active tree is working without dark pink block. How to make two of these trees working.

                                        https://fxdreema.com/shared/1quB6nhne

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

                                          It matters where "once per trade" is connected - before or after the action you want to do. Now you have it before, which means that block 140 will run once right after the new trade is created and will do nothing. If you wait for "pips away" and then "once per trade" you run "Buy now", this is another thing and will work.

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

                                            thanks, but this is also not working.

                                            https://fxdreema.com/shared/q1buRJOsd

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

                                            Online Users

                                            A
                                            D
                                            A
                                            E
                                            N
                                            N
                                            F
                                            M

                                            20
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors