fxDreema

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

    Enter trade when price hits a rectangle

    Questions & Answers
    5
    12
    794
    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.
    • A
      adamghous last edited by

      Hi,

      I'm trying to create an EA that will place a trade when price moves into a rectangle chart object that has been manually drawn. The idea is I draw my areas of interest in a morning and the EA does the rest. The EA will place buy trades when price moves down into blue rectangles and then change their colour after a trade is entered so a second trade can't be placed on the same rectangle. I couldn't find any other threads with something similar.

      My attempt doesn't seem to be working so i'd really appreciate some help. The example is for a buy only.

      Many thanks
      Adam

      Screenshots attached
      1_1672870356506_Capture2.PNG 0_1672870356504_Capture1.PNG

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @adamghous last edited by

        @adamghous Is the reactangle created manually or automatically? IMHO you should use variables to store the price levels instead of an object.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • A
          adamghous last edited by

          Hi L'andorra,

          Yes the rectangles will be created manually. I set the area (marked by the rectangle) I think will create a reaction in price and the EA places the trades on my behalf. Including the SL which is the bottom of the rectangle.

          Can explain more about using variables to store the price levels? Currently if price enters a rect from above it stores the rects price 1 and price 2 values in variables and then enters a buy trade including SL and TP based on those variables.

          Thanks
          Adam

          l'andorrà 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @adamghous last edited by

            @adamghous There was a wonderful thread explaining how to do that by I can't find it on the search tool now. Not sure if the hacking crippled that tool too. I cannot provide a reply on how to do it on rectangles but if you know the upper and the lower limits of the proce levels used to trigger a trade you can manually insert them into variables via buttons, for example.

            I hope the search too can be fully recovered soon. There you'd find a lot of useful info.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            1 Reply Last reply Reply Quote 0
            • P
              Pascal 0 last edited by

              @l-andorrà Hello, the google search directed me to this post. Do you think the tutorial you had mentioned could be recreated? IMHO it would be a killer feature to draw into the chart "valid-zones" and the EA does only there what it is intend to do 🙂

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

                Yeah, someone has already done it and use it. Great idea.

                1 Reply Last reply Reply Quote 0
                • P
                  Pascal 0 last edited by

                  @biztet Hey body, do you know where I can find an instruction on how to build this?

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

                    Sorry i don't know about any instruction about that. But i think the logic is just use condition when price crosses the object, your rectandle box, then execute whatever you want. Use price level for above and below box.... I guess..

                    1 Reply Last reply Reply Quote 0
                    • P
                      Pascal 0 last edited by

                      Any idea to read out the begin and end time of an rectangle? I used before the logic to draw lines and use them later in the script to put pending orders on it, but the usage of rectangles is pretty new to me 😕

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

                        You can get the time and price values like this: https://fxdreema.com/shared/yJf4kkjnc

                        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
                        • P
                          Pascal 0 last edited by

                          @jstap Many thanks for the hint!

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

                            @Pascal-0 👍

                            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

                            A
                            F

                            8
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors