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
      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:1sxrzgl4]

      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:1sxrzgl4]

      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...[/quote:1sxrzgl4]

      yes you are right simultanously opening, so I checked your logic again and this is result:

      1. No trade (parameters Buy and Sell)
      2. if No trade == True --- Open Buy
        ... and here you have opened Buy trade, so new tick and next to logic:
      3. No trade (parameters Buy and Sell) ... and this is important, No trade will be true, if Buy or Sell not exist, it means that one of both can be enough to make "No trade" true, and you previous opened only Buy, so we continue:
      4. if No trade == True --- Open Buy ... next buy is opened ....

      and here can somebody say about parameter "Buy and Sell" means that "both of them make it true" but it seems be that one of them is enough, so better would be rename it to "Buy or Sell", admin, what you mean? ... but ... hard to say 😄

      so I suggest you to avoid using this negative form of logic and instead of that you can use this form of logic - positive logic and its output compare to true or false:
      https://fxdreema.com/shared/FeTuv9NL

      or if you will stay with block No trade, better if you set parameter in this block to "only buy" .. or "only sell" .. not both 😉
      https://ctrlv.cz/shots/2016/11/01/8fX1.png

      and again, in block is "Buys and Sells" and in code is "Buys Or Sells" - so I was not sure about this and for this reason I am using this block only for "only buy" or "only sell" ...

      https://ctrlv.cz/shots/2016/11/01/payc.png

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

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

        You might be right about what you have found, but there is one down side of this logic and I'll explain it like this;:

        No Trade (Buys) --> True --> Buy Trade opened

        During the buy position if my EA comes across sell condition then it will follow: No Trade (Sells) --> True --> Sell Trade Opened.

        Then I will have both sell and buy trades at the same time... Unless I have a logic which will close the opposite one as it opens...

        And besides "NO TRADE" means "NO TRADE" we shouldn't we debugging the codes or blocks, it should be working. I mean if there is no trade and if it returns true it should execute and do whatever I want it to do... Open buy or sell trades, nothing more or less...

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

          Now I've reduced the EA to this: https://fxdreema.com/shared/vkSszqtxb

          And this is the backtest result: 51 open trades...

          http://prntscr.com/d1vdnhhttp://prntscr.com/d1vdnh

          http://prntscr.com/d1vep0 http://prntscr.com/d1vep0

          Don't know what am I doing wrong anymore... I stop trying it...

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

            __Now I've reduced the EA to this: https://fxdreema.com/shared/vkSszqtxb

            And this is the backtest result: 51 open trades...

            http://prntscr.com/d1vdnhhttp://prntscr.com/d1vdnh

            http://prntscr.com/d1vep0 http://prntscr.com/d1vep0

            Don't know what am I doing wrong anymore... I stop trying it...[/quote:jwp3s2w6]

            this is my way how to "not use NoTrade block"
            https://fxdreema.com/shared/9oPSEuKB

            ... I think, it is also answer to your previous question ...
            I have not tried this change in your EA, but I believe, now it is without issue, try it 😉

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

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

            Online Users

            E
            A

            9
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors