fxDreema

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

    Stop making orders after closing previous one

    Questions & Answers
    5
    11
    2961
    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.
    • T
      Traderz last edited by

      Hello ,
      Does anyone know how I can make the EA stop placing another order for specific time just after closing the previous one
      I tried with on trade function then put " skip ticks ' block after it but that doesn't work , I don't know why

      Thanks

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

        That block doesn't work right now. I have exactly that same problem. fxDreema is fixing it now (I hope).

        T 1 Reply Last reply Reply Quote 0
        • T
          Traderz last edited by Traderz

          There's a new block called no trades nearby
          I'd like to have some time filter in that block @fxDreema Like I don't want any trade near that one regarding price or near the last closeed trade regarding time , so after a trade is close , no more new trades for 5 minutes in example and the option to chose if that was a running trade or closed trade

          Thanks mate for your efforts

          1 Reply Last reply Reply Quote 0
          • T
            Traderz @isp00rt last edited by

            @isp00rt
            all On Trade blocks stop working just now even the one I used to use in my robots , I just put a simple log message after them and it doesn't work at all

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

              Sounds weird. I tried a few 'On Trade' blocks a few weeks ago and they worked perfectly. Maybe if you share your project we could help.

              T 1 Reply Last reply Reply Quote 0
              • T
                Traderz @isp00rt last edited by

                @isp00rt
                No mate I used them all the time in all my project , it just from the past week they stop working , Can you try with yourself , just put a log message block after " Trade Created " or " Trade Closed " block and it won't pass

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

                  You can check the age of the previous trade. Something like:

                  For each Closed Trade (with "not more..." set to 1) -> check age

                  And after that you can continue to buy or sell.

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Traderz @fxDreema last edited by

                    @fxdreema
                    That what I thought at the first , I did what you said the very first thing but it didn't pass at all , then I though maybe it check for the last closed trade and at start there's no last closed trade so I made a flag which only be true after the closing of the first trade Under " On Trade " tab , if that flag become true , it will start to check for the last closed trade so I only skipped the first trade but there I found that On Trade block don't work although I used to use it all the time , I put two simple blocks under onTrade tab to check , the first is " Trade Created " with the require magic number and then a simple log message to check but it didn't pass and nether for " Trade Closed " block , that's why I report that in Bug reports section but you just told me it works properly which is very strange situation now

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

                      This may meet your requirement
                      https://fxdreema.com/shared/CIXCfRk8

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

                        @traderz I saw the report in the Bugs forum, but I tested these blocks and they work for me. I don't see problems with this. I also tested your latest project where you have 3 "Trade closed" blocks. They work only for groups 2 and 1 and you have many different groups, but I can change the number and it works.

                        But I don't know what is going on there. I see you calculate the difference between two Open prices, but you are doing this over trades from group 2 only. And then you are using the calculated values (GapAuto1 and GapAuto2) for other groups.

                        For the Tester you can just open and close some trade. Sometimes I do that. There is a block to check if the EA is working in the Tester.

                        The biggest problem I see is in the name of the project, it contains the word "Hedging". And no wonder that in the project you have the same group of blocks copied multiple times. Those hedging strategies only lead to such complexity and nothing good đŸ™‚

                        1 Reply Last reply Reply Quote 0
                        • C
                          capitalfreedom last edited by

                          Please help. I am having this same issue.

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

                          Online Users

                          M
                          P
                          S
                          A
                          E
                          M
                          F

                          21
                          Online

                          146.6k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors