fxDreema

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

    Multiple Trades

    Questions & Answers
    5
    23
    8762
    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.
    • M
      mustafaaydinol last edited by

      I'm working on this project and it opens multiple trades which I could not figure out why.

      https://fxdreema.com/shared/YXwAdPlgc

      There are two variables
      SLB: Stop Loss Buy
      CTB: Close Trade Buy

      And I don't know how to add SLB value to Buy block as stop loss level.

      Do I have to change the order like No trade-->Formula-->Condition-->Buy

      Or is there a way to add Dynamic Variables as an input when they are on different trees?

      Can anyone help?
      Thanks

      1 Reply Last reply Reply Quote 0
      • M
        mustafaaydinol last edited by

        No answers yet 😞

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

          Note that "on Tick" orange thing above the working field - it means that the blocks below run on every tick. "No trade" doesn't allow "Buy now" to run multiple times, but "No trade" passes when there is no trade. The problem is in the another group. What happens is that the trade is immediately closed by "Close trades" => there is no trade anymore => "No trades" passes on the very next tick => "Buy now" creates new trade again.

          What you can do is to stop "Close trades" to run multiple times. Maybe with "Once per bar", I can't say how. The idea is to not run "Close trades" so often

          1 Reply Last reply Reply Quote 0
          • M
            mustafaaydinol last edited by

            Thanks for your reply 🙂

            However Close trade block doesn't cause the trades to close immediately (It's something acceptable in real version which would allow trade to earn enough profit).

            I don't know if you tested the example: it opens nearly 30-40 trades back to back without closing any.

            1 Reply Last reply Reply Quote 0
            • M
              mustafaaydinol last edited by

              Here is another example which does not close trades with "close trade" block on another group/tree.

              https://fxdreema.com/shared/iK641W1ve

              I'll go crazy because of this multiple trades problem 😢 I can't figure it out. I want to use it in my real version (expanded version of the one I sent you) but it opens multiple trades there as well 😞

              1 Reply Last reply Reply Quote 0
              • M
                mustafaaydinol last edited by

                Does anyone have an idea?

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

                  I'm having the same problem with the indicator I'm trying to run. Check out my forum that I posted, "Just When You Thought You Had It".

                  https://fxdreema.com/forum/viewtopic.php?f=2&t=4098

                  if you can give me some tips and pointers I would really appreciate that.

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

                    Many many people are using fxDreema every day. Blocks like "No trade" and "Buy now" are used in virtually every project, and this happens for years. This means that they are rock solid and there is veeeery little chance for something to be wrong in them, especially in backtesting.

                    So, if you see multiple trades, there is one reason for that - Buy now/Sell now runs too often. Why? I have this: http://prntscr.com/czc6yd Obviously trades are opened and immediately closed. In your case you have. If I disable both "Close trades", the problem does not happen at all. This means that the problem is in "Close trades". Yes, what happens is that a new trade is created and then on the next tick this trade is closed. Because Condition 17 and 4 are true at the same time, or Condition 21 and 8. What you can do is to make sure that "Close trades" is not reached right after the creation of the trades. I can't say exactly how, it depends. Once per bar or whatever. And if you study this example (for example), you will see that I don't use special blocks: https://fxdreema.com/demo/mt4-buy-sell- ... conditions It depends 🙂

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

                      __Many many people are using fxDreema every day. Blocks like "No trade" and "Buy now" are used in virtually every project, and this happens for years. This means that they are rock solid and there is veeeery little chance for something to be wrong in them, especially in backtesting.

                      So, if you see multiple trades, there is one reason for that - Buy now/Sell now runs too often. Why? I have this: http://prntscr.com/czc6yd Obviously trades are opened and immediately closed. In your case you have. If I disable both "Close trades", the problem does not happen at all. This means that the problem is in "Close trades". Yes, what happens is that a new trade is created and then on the next tick this trade is closed. Because Condition 17 and 4 are true at the same time, or Condition 21 and 8. What you can do is to make sure that "Close trades" is not reached right after the creation of the trades. I can't say exactly how, it depends. Once per bar or whatever. And if you study this example (for example), you will see that I don't use special blocks: https://fxdreema.com/demo/mt4-buy-sell- ... conditions It depends :)[/quote:96dccz1u]

                      I kinda understand and still don't understand what you're saying fxdreema. I did exactly the same thing you did with my custom indicator and still no success.
                      http://puu.sh/rWSCP/72886cd27d.png

                      I even tried it with the INDICATOR APPEAR blocks and still was having no success. Matter fact, at least with the INDICATOR APPEAR block it was opening a buy trade to say the least, however, unfortunately it wasn't opening the sell and just hitting the take profit.

                      I want to ask you to elaborate more or give us better examples with different indicators rather than always using the moving average example, however, I fear that I have already over burdened you. I'm just trying to understand exactly what's going so I don't have to keep on asking the same questions over and over lol. Sorry 😳

                      1 Reply Last reply Reply Quote 0
                      • M
                        mustafaaydinol last edited by

                        I've tried many stuff with fxdreema but I still think that there are bugs especially with the "no trade" block. Because I have 6 different no trade blocks in my ea and still it opens multiple trades, or buy trades when there are short trades going on and vice versa.

                        I checked over and over again and I'll share what I did with screenshots when I'm avaliable.

                        I still think this site is one of its kind, but it needs some improvements...

                        1 Reply Last reply Reply Quote 0
                        • M
                          mustafaaydinol last edited by

                          This is what I'm talking about: I've 6 different "no trade" blocks and no matter what I've tried this EA opens multiple trades. Clearly something is wrong but I can't figure it out.

                          You can view the images by clicking on urls, all of them are uploaded and available for viewing.

                          This is my ea: https://fxdreema.com/shared/kgz1wC52d

                          This is the test result http://prntscr.com/d08i8z http://prntscr.com/d08i8z

                          And the list of the trades: http://prntscr.com/d08il4 http://prntscr.com/d08il4

                          Can anyone please explain me the situation?

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

                            mustafaaydinol -- try adding "once per bar" before the buy and "once per bar" before the sell... Im new here so just getting a lay of the land.. but limiting order amount per bar should limit the over buys and sells..

                            on the local app version of fxdreema its under filters/once per bar

                            1 Reply Last reply Reply Quote 0
                            • M
                              mustafaaydinol last edited by

                              I think the problem is 2 "buy now" blocks are parallel after no trade block. Because right after I write the stuff, I changed the "buy now" blocks to vertical, second one coming after the first one and it worked fine for now. Maybe it has to do with the code structure of the blocks...

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

                                very cool.. glad you got it figured out.. you working on the web version of the software or the local app for your computer?

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mustafaaydinol last edited by

                                  I'm using the browser based version...

                                  But I'm curious about why no trade block works that way. There is still much that we have to figure it out with the way that Fxdreema works...

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

                                    mustafaaydinol, if there are bugs, someone would tell me. Especially for blocks such as "No trade" that are used in almost every project. More than 220 people have active subscriptions at any given time, there are almost 11000 profiles created. Also, I'm very careful when touching something just because many people are using the system and I don't want to break something. Most of the time I'm not touching anything, because I'm working on my local system. I just don't believe that "No trade" is broken. Because you are a newbie, the chance is that you are missing something 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      miro1360 last edited by

                                      __Thanks for your reply 🙂

                                      However Close trade block doesn't cause the trades to close immediately (It's something acceptable in real version which would allow trade to earn enough profit).

                                      I don't know if you tested the example: it opens nearly 30-40 trades back to back without closing any.[/quote:1pk0kt1d]

                                      I am sure, that your idea with open/close trade is not ok. Because in other words, you are doing this: in the same time, you close trade when condition for close is true, and this situation make true your next condition for open trade (because no trade exist), so you open/close/open/close/open/close...trades .... what you need to do for your logic, can be add some condition before "open trade", this condition can be negative condition from close trade 😄

                                      Between trading and gambling is a very small gap, be careful.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mustafaaydinol last edited by

                                        ____Thanks for your reply 🙂

                                        However Close trade block doesn't cause the trades to close immediately (It's something acceptable in real version which would allow trade to earn enough profit).

                                        I don't know if you tested the example: it opens nearly 30-40 trades back to back without closing any.[/quote:p4xn1udc]

                                        I am sure, that your idea with open/close trade is not ok. Because in other words, you are doing this: in the same time, you close trade when condition for close is true, and this situation make true your next condition for open trade (because no trade exist), so you open/close/open/close/open/close...trades .... what you need to do for your logic, can be add some condition before "open trade", this condition can be negative condition from close trade :D[/quote:p4xn1udc]

                                        But if you look at the print screen you would see that there are open trades back to back regardles of no trade block. I mean they are not closed and opened back to back... Maybe my logic is wrong I don't know, but if there is a no trade block and and there are 40 trades something is definitely wrong. Maybe I don't know the logic behind the blocks completely...

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mustafaaydinol last edited by

                                          __mustafaaydinol, if there are bugs, someone would tell me. Especially for blocks such as "No trade" that are used in almost every project. More than 220 people have active subscriptions at any given time, there are almost 11000 profiles created. Also, I'm very careful when touching something just because many people are using the system and I don't want to break something. Most of the time I'm not touching anything, because I'm working on my local system. I just don't believe that "No trade" is broken. Because you are a newbie, the chance is that you are missing something :)[/quote:6an31yad]

                                          I'm definitely newbie and I think that you checked the stuff I posted. As the founder of this site and as a professional I assume that you have a minor possibility to miss something that I miss. So would you please spare your valuable time and kindly examine the ea design I posted and tell me what is wrong or why multiple trades are opened?

                                          Thanks

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

                                          Online Users

                                          A
                                          A
                                          X
                                          K
                                          F

                                          13
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors