fxDreema

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

    ID 1 = 50% of ID 2

    Questions & Answers
    3
    19
    3686
    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.
    • S
      Setsuna last edited by

      0_1549921239081_cb760719-d021-445f-aec7-93a49b5e9da0-image.png

      I was trying to make the buttom condition. The "Close" part of ID 1 have to be in the middle of the ID 2. When it does. its going to sell

      0_1549921459170_f8b41d73-006d-433f-bd94-8bdd26500273-image.png

      but i cant find median close or do I need to use another way to reach this "condition"

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        Store the candle's middle price in a variable

        0_1549926882303_89e774c4-d50f-4ca9-8c35-bfd149c7410c-image.png

        Here you have an example

        https://fxdreema.com/demo/mt4-formula

        S 1 Reply Last reply Reply Quote 0
        • S
          Setsuna @josecortesllobat last edited by

          Thank you so much for your replay

          1 Reply Last reply Reply Quote 0
          • S
            Setsuna last edited by

            @josecortesllobat for some reason it doesnt work. The bottom part of ID 1 need to 50% shorter then ID 2 (just like the first picture). So I use "/2" on aditional setting (as you do). Then I type "CandleMiddleValue" on "put the result in this variable". When I press update there are appear a " you must select a variable". What does it means

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

              0_1550007560002_18aeab1c-d75c-43a4-8408-9a54902b6b04-image.png

              0_1550007630964_28328ed3-9a37-43e3-8bdb-fc6682a9386f-image.png

              0_1550007658352_3dcd00b5-a94e-4246-bd2b-086741aa04a7-image.png

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

                @fxdreema I still doenst work. The bottom part of ID 1 candle need 50% shorter then ID 2 (like picture 1). So the type: double, name is CandlemiddlValue, Value is /2. And it still ask for put variables.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Setsuna @Setsuna last edited by Setsuna

                  @setsuna 0_1550175732852_9038379a-82c6-42c0-a139-4323f7ee580b-image.png

                  I tried many way but still no results. could some one help me. its said select a variable

                  1 Reply Last reply Reply Quote 0
                  • J
                    josecortesllobat last edited by

                    I am not sure if it works as you expected because I have not gotten any signal backtesting it.

                    https://fxdreema.com/shared/KSrxkWrJ

                    0_1550302355818_35864942-a563-4e29-b362-08ed86c15e14-image.png

                    But it could be an inspiration for you.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Setsuna @josecortesllobat last edited by

                      @josecortesllobat Thank you for the efforts. I see you succeeded the "formula block"How did you did it? everytime when I tried it ask me to select a variable. What did i do wrong?

                      1 Reply Last reply Reply Quote 0
                      • J
                        josecortesllobat last edited by

                        0_1550388597940_8fb7d7ea-420d-44b3-872a-caadfae3b8a0-image.png

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Setsuna @josecortesllobat last edited by

                          @josecortesllobat 0_1550435029995_3e4171d8-a604-44dc-a7b8-7bd68d3aeaa4-image.png

                          To have the closing price of ID1 50% or lower then ID 2 I have the following setting.

                          0_1550435146262_ea5eae7b-5ce0-451b-ba0d-363cbaed5ee0-image.png

                          Candlemiddleprice or Candlemiddlevalue and /2 means a half of the preview candle. In this case candle ID 2. Am I right?

                          1 Reply Last reply Reply Quote 0
                          • J
                            josecortesllobat last edited by

                            0_1550475172618_37db727c-55d9-4f07-90d6-4e4a61913778-image.png

                            Previous Candle is ID = 1

                            You're taking the CandleOpen[2] and CandleClose[1]. It is not the CandleMiddleValue of the previous candle [1].

                            S 1 Reply Last reply Reply Quote 1
                            • S
                              Setsuna @josecortesllobat last edited by Setsuna

                              @josecortesllobat to making that's happen I need to make 3 separate formula? The first two is define ID 1 and 2? And the third is to make the connection betwine those two?

                              1 Reply Last reply Reply Quote 0
                              • J
                                josecortesllobat last edited by

                                You can use as many formula blocks as you need to achieve what you want.

                                By definition,

                                CandleMiddlePrice = (HIGH - LOW)/2

                                If you want to calculate that price level for any candle going backwards, you just need to type the candle´s ID number for which you want to know its MiddlePrice by following the ID rules given by fxDreema at the formula´s block Candle ID field.

                                CandleMiddlePrice [0] = (HIGH [0] - LOW [0])/2 -> MiddlePrice of the newest candle
                                CandleMiddlePrice [1] = (HIGH [1] - LOW [1])/2 -> MiddlePrice of the previous candle
                                .
                                .
                                .
                                CandleMiddlePrice [n] = (HIGH [n] - LOW [n])/2 -> MiddlePrice of the n-est candle

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  Setsuna @josecortesllobat last edited by

                                  @josecortesllobat I dont know what you mean with candle 0.

                                  0_1550696166321_8093018b-c29b-4172-8350-97728689f29e-image.png

                                  the first picture (upper part) is recognize by this condition:

                                  0_1550696620010_723e1f24-4f83-4638-b68d-239c5a5722f0-image.png

                                  ID 1 need to be higher then ID 2. So it can be set on "adjust" +1pips or +0.1pips

                                  0_1550696658165_95dc4aee-d6ee-4c3a-896e-50b2ca58ee88-image.png

                                  The second part (bottom part) is recognize by

                                  0_1550696944680_c1599b89-2f0a-45ea-b682-6e65d27aa3c5-image.png

                                  But its lack a connection between ID1 closing to ID 2. ID 1 closing need to be at the middle or lower of ID 2. So I put this variable to connect ID 1 and ID 2

                                  0_1550697327353_e5ffe3e7-8cbb-4ebe-b3b9-0935bd2a6009-image.png

                                  If the condition is a fact it will "sell" on the next candle.

                                  Or do I misunderstand you.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    josecortesllobat last edited by

                                    The candle [0] is the most recent and is being formed as the ticks arrive.

                                    0_1550734776917_8d3dc117-da3a-4d26-973b-1a78ae097212-image.png

                                    Condition 1 -> CandleOpen[ID = 1] > CandleClose[ID = 2]

                                    Does it matter if the candles are bearish or bullish?

                                    0_1550734943959_8ddff889-2218-4647-b969-173ef6f934c2-image.png

                                    Formula 1 -> CandleMiddleValue [1] = (CandleOpen[ID = 1] + CandleClose[ID = 1] )/2 --> Is this block required? I would say no because of your second condition.

                                    Condition 2 -> ID 1 closing need to be at the middle or lower of ID 2 --> What you want is that the CandleClose[ID = 1] is equal or below CandleMiddleValue [ID = 2] Then, you would need to calculate the middle price of the candle with ID = 2. Right?

                                    0_1550735320231_6ff784ed-2a44-4c46-b5d6-b460a413d271-image.png
                                    Formula 2 -> CandleMiddleValue [2] = (CandleOpen[ID = 2] + CandleClose[ID = 2] )/2

                                    Condition 2 -> CandleClose[ID = 1] <= CandleMiddleValue [2]

                                    S 2 Replies Last reply Reply Quote 0
                                    • S
                                      Setsuna @josecortesllobat last edited by

                                      @josecortesllobat Just adding 2 more blocks (formula and condition). I will try. thank you for reaction

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Setsuna @josecortesllobat last edited by

                                        @josecortesllobat In the last picture I dont see a relation between Candle ID 1 and 2. Its all about ID 2, And what does the plus mean

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          josecortesllobat last edited by

                                          "Condition" block with

                                          CandleClose[ID = 1] <= CandleMiddleValue [2]

                                          As you said

                                          Condition 2 -> ID 1 closing need to be at the middle or lower of ID 2

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

                                          Online Users

                                          S
                                          A
                                          M
                                          R
                                          G
                                          T
                                          G
                                          Y
                                          C
                                          S
                                          S
                                          S
                                          A

                                          24
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors