fxDreema

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

    Boxes EA

    Questions & Answers
    4
    8
    2568
    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
      alvarez last edited by

      How can I do to create an EA, in which:

      1.- Draw a box, and let me optimize the number of minimum periods (Candlesticks) so that the box is formed.

      2.- The range (height in pips of the box), this is other parametres to optimize.

      3.- Operate the rupture of the box.

      The order entry when the limit up or low is break + some pips that I must optimize.

      I Saw this, but I don´t understand it.: https://fxdreema.com/shared/Fdu0dU2Hd

      Can help me sombody, please?

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

        0_1507915004989_upload-4b6bc4b9-3282-44c9-b2da-93eded3f6a4d

        this is the estrategy, but I can not to programme this in fxdreema

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

          In this example I see Rectangle, which is placed at the chart. On the chart we don't work with pixels, we work with Time and Price values. Those objects that can be put at certain pixels from the top, they are placed over the chart and they appear static (they don't move when you move the candles).

          Otherwise all "Draw..." blocks are basically the native ObjectCreate() functions + all the possible parameters for the particular object. So in "Draw Rectangle" you specify all the parameters to draw a rectangle object. Such object has 2 Time and 2 Price coordinates, because it is made out of 2 points on the chart (Time1, Price1 and Time2, Price2).

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

            @alvarez Do you actually need rectangles?

            Actually I can't help with finding those 3 levels on the top and 3 levels on the bottom. This requires some algorithm and this is normally found in custom indicators, they are made for this.

            But you can find the maximum/minimum value in certain amount of candles or period of time. This is not exactly the same, but it is easier. http://prntscr.com/gx1f71

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

              check here, you might find the example given there useful at least to some extent. https://fxdreema.com/forum/topic/5108/boxes/11

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

                Thak you fxDreema, the rectangle only must have 2 level on the top and 2 level on the bottom (no is necesary 3 levels). I tried with https://prnt.sc/gx1f71, but you said, no is the same.

                thank you Adnermaiden2nd, I see the example, but I need 2 level on the top and 2 level on the bottom minimum. I see the post taht you recomended me, but when dont paint in the mt4 when y copy and paste in a EA.

                Andermaiden2nd 1 Reply Last reply Reply Quote 0
                • Andermaiden2nd
                  Andermaiden2nd @alvarez last edited by

                  @alvarez you can draw two blocks to have double top and double bottom. Remember though to remake by hand the constants as they do not translate well in the shared example. The details of said constants are on the topic.

                  1 Reply Last reply Reply Quote 0
                  • N
                    nickmccomb last edited by

                    Find an indicator that does what you are looking to do and use that instead

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

                    Online Users

                    G
                    Y
                    C
                    S
                    S
                    S
                    A

                    20
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors