fxDreema

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

    Create EA based on vertical Line

    Questions & Answers
    2
    6
    398
    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.
    • Z
      zedeai2 last edited by

      Hello All,

      I wanna create an ea that triggered by vertical line :

      Color Lime = BUY
      Color Red = SELL

      as seen on below pic. But unfortunately it's not working yet. Any your help or comment are very helpfult!

      Please see the chart here https://prnt.sc/PP-eVOOvGPPe
      And the block is here https://fxdreema.com/shared/wtb84RmOd

      Are these blocks wrong?

      Thank you in advance

      R 1 Reply Last reply Reply Quote 0
      • R
        RGoo @zedeai2 last edited by

        @zedeai2
        You have to be a bit more specific.
        According to what you have explained, it would be enough to position the order blocks as below,
        but that is probably not the problem.
        And the objects should get a string variable and better not start with a number. (see example)

        https://fxdreema.com/shared/oLj4zDyP

        RGoo

        Z 2 Replies Last reply Reply Quote 0
        • Z
          zedeai2 @RGoo last edited by

          @rgoo Hello, thank you for helping me 🙂

          I tried your example of ea
          But why in same time both order buy and sell are happening together?
          Because it should be one order in one vertical line :
          Vertical line Lime : BUY, or
          Vertical line Red : SELL

          Something wrong or anything else?

          0_1656467856900_7eb7de4d-0320-43f0-905d-60e8f6674424-image.png

          1 Reply Last reply Reply Quote 0
          • Z
            zedeai2 @RGoo last edited by

            @rgoo Hello, sorry my bad explanation. Here is more detail explanation :

            BUY : if vertical line LIME is appear at candle current (id candle = 0)
            SELL : if vertical line RED is appear at candle current (id candle = 0)

            Thank you in advance! 🙂

            R 1 Reply Last reply Reply Quote 0
            • R
              RGoo @zedeai2 last edited by

              @zedeai2
              You are currently looking for objects that have the colour "lime" or "red".
              Then draw a vertical line. When the line is drawn, you want to buy or sell.
              Drawing the line is done by fulfilling one or more conditions. And you must also use this event for buying/selling. So do not draw a line first and then search for it. Because you want to buy / sell immediately when the line is drawn, don't you? The line is also not an indicator but an object.
              Currently, the EA buys and sells at the same time because both objects can be found on the chart.
              Which indicator do you use?
              0_1656486234301_61603e35-8edc-4708-a06c-c9fa483a075c-image.png
              You are looking for a green and red object, these are the arrows.
              When you have found them, draw the lines.
              Even if you delete the lines afterwards, the arrows are still on the chart.

              You have to use the indicator directly.

              RGoo

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zedeai2 @RGoo last edited by

                @rgoo Hello,

                Thank you for feedback.
                I will try it again!

                Best regards 🙂

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

                Online Users

                D
                V
                O
                J
                B

                13
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors