fxDreema

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

    One market trade cancels the other at a given level

    Questions & Answers
    reverse cancel opposite candle crosses multiple trades multiple tp
    2
    10
    1357
    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.
    • Sleek
      Sleek last edited by

      Hello team, thanks for all your help in the previous threads.
      Can somebody please help me compile a working EA with the following intended goal.

      When min1 candle crosses above the hourly candle open - buy and (close sell ) if any.
      When min1 candle crossess below the hourly candle open - sell and (close buy) if any.

      No SL for both as one market entry cancels the other but can have TP.

      The intention is to have trades in a given hour with different TP options i.e with ATR, Trail SL and close of day.
      All trading activity begins at 0200 and ends at 2300 server times.

      Here's a link of my incompete work, THANK YOU!
      https://fxdreema.com/builder

      Images of project and error warnings here:0_1644873341597_Screenshot 2022-02-14 at 21.09.30.png 0_1644873357740_Screenshot 2022-02-14 at 18.49.21.png

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @Sleek last edited by jstap

        @sleek Your shared link just opens builder, open shared link in a web page, copy from there.
        Warnings wont stop the EA working, only errors will.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

          Thx@jstap
          Sorry about the link, everytime I click on it, it takes me directly to the project. Tell me where you land when you click on the link above and here https://fxdreema.com/builder. It's the same in all browsers.

          Am aware the warnings are not broken code and hence to not affect the workings of the EA, however for all the backtests I have run this has refused to do its intended task which is; To open trades when the min candle crosses above or below the hourly open. and close the opposite trade.
          It takes one trade and stops or takes loads of fleating minute trades which close as soon as they are openned or it does nothing at all.
          This is a REAL tried and tested startegy that we used at my old prop firm and would like to automate it.

          Can U help?
          Thx

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

            0_1644882899212_Screenshot 2022-02-14 at 23.54.14.png

            Does nothing at all on testing.

            What am doing I wrong?? It's similar to FxDreema examples!!!

            Just want this strategy automated.....

            1 Reply Last reply Reply Quote 0
            • Sleek
              Sleek @jstap last edited by

              @jstap Phew! Finally got what you meant. Got the link.
              https://fxdreema.com/shared/KRNPzGg6d

              Let me know what I need to do to get this to work. Thank you 🙂

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @Sleek last edited by

                @sleek You don't need a blue block above pink but you do need a pink for each trade, do you need your type to close trades?

                0_1644923049693_cf6fd752-57ff-4a6a-a422-13d518c5f8c0-image.png

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                Sleek 1 Reply Last reply Reply Quote 0
                • Sleek
                  Sleek @jstap last edited by

                  @jstap Thanks for that, I've changed it as you can see. YesI would need "type to close trade", infact upon your promt I went ahead and changed both, however I don't understand why upon testing it, it produces numerous open and closed trades???

                  All I need is (open a buy when min1 crosses above H1 open and close all sells, do the opposite when min1 crosses below H1 open)
                  0_1644940817190_Screenshot 2022-02-15 at 14.47.57.png
                  Please see image of backtest:
                  0_1644940890997_Screenshot 2022-02-15 at 15.47.55.png
                  Thx @jstap You are a STAR!!!

                  jstap 1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap @Sleek last edited by

                    @sleek I would think this is only opening one of each type maximum, may be share the no trade block, so can only place a buy or a sell, if it's still not doing as required put a shared link here.

                    Learn fxDreema Without the Wait!

                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                    Don’t miss out

                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                    Enjoy! 😊

                    Sleek 1 Reply Last reply Reply Quote 0
                    • Sleek
                      Sleek @jstap last edited by

                      @jstap Bummer! I shared the No position block as suggested and it went berserk.
                      Link to project here:
                      https://fxdreema.com/shared/L5XXS5kpc

                      I've included the "everytick backtest screenshot too so you can get a visual.
                      It's taking buy and sell trades every tick and closing them, random!

                      0_1644949190173_Screenshot 2022-02-15 at 18.12.12.png

                      I do appreciate you taking time to help out, really!

                      Also, probably needs a different thread, can I incorporate a script I made with FXdreema (Hourly open line) in the EA without getting over 20 something errors?? How?
                      Ta.

                      jstap 1 Reply Last reply Reply Quote 0
                      • jstap
                        jstap @Sleek last edited by

                        @sleek This is working as expected, it places a trade then when it closes it places another, on back test you cannot compare 2 timeframes to view if things are doing as wanted, maybe add a once per bar block to limit it to one trade per candle.

                        You can add all from a FX script providing it is from a corresponding tab, if not may still work if put in the right place, Maybe you just need the logic involved, put here what exactly the script does.

                        Learn fxDreema Without the Wait!

                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                        Don’t miss out

                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                        Enjoy! 😊

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

                        Online Users

                        M
                        C
                        K
                        T
                        K
                        D

                        24
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors