fxDreema

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

    how to draw middle horizontal between two horizontal line

    Questions & Answers
    2
    13
    1557
    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
      saeed 2 last edited by

      if i have two horizontal line .. how can i draw a third horizontal like exactly at middle of them ?

      thanks

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

        depends on the lines. Did you anchor them to something else? It may be easier to get the median data of the points you drew lines.

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

          without knowing what you pulled the data from, because I'd opt for that info instead. But the slightly cumbersome way you could do it would be to draw a fib, anchored to the 2 lines that you identified. Then use the 50 level of the fib as the median

          S TipsyWisdom 2 Replies Last reply Reply Quote 0
          • S
            saeed 2 @TipsyWisdom last edited by

            @tipsywisdom EA generating two horizontal lines when condition meet

            so i need to generate a third horizontal line at other condition

            i used formula as shown at pic

            but then im lost where to us the variable0_1627051750735_drawline.jpg )

            TipsyWisdom 1 Reply Last reply Reply Quote 0
            • TipsyWisdom
              TipsyWisdom @saeed 2 last edited by TipsyWisdom

              @saeed-2 if it works like that, get rid of the additional draw line block and just put in the formula block, "Adjust the result "/2

              But that may only work if the 2 lines are price lines....or some other value.

              It wouldnt be a candle, I believe you would select "Value" and just put the variable in the blank value spot

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

                0_1627052274944_c6f0a550-20c5-439a-b0f8-3d5964956d8f-image.png /2 in that adjusment

                1 Reply Last reply Reply Quote 0
                • TipsyWisdom
                  TipsyWisdom @TipsyWisdom last edited by

                  @tipsywisdom said in how to draw middle horizontal between two horizontal line:

                  without knowing what you pulled the data from, because I'd opt for that info instead. But the slightly cumbersome way you could do it would be to draw a fib, anchored to the 2 lines that you identified. Then use the 50 level of the fib as the median

                  this may be the better way to do it.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    saeed 2 @TipsyWisdom last edited by

                    @tipsywisdom thanks dude
                    i will try it and let you know

                    TipsyWisdom 1 Reply Last reply Reply Quote 0
                    • TipsyWisdom
                      TipsyWisdom @saeed 2 last edited by

                      @saeed-2 NP! I personally avoid trying to put lines into formula since its visual based. As far as using the fib though, instead of grabbing the lines, because there may be issues with lines sometimes, use the data those lines are linking to instead to help find the 50 level. You could also even get rid of the lines that way and just reference the 0 and 100 level of the fib....unless its the visual aspect you're looking for that must always be.

                      good luck, let me know how it goes!

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        saeed 2 @TipsyWisdom last edited by

                        @tipsywisdom its working perfectly using objects throw on chart ,, thanks dude

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

                          can you screenshot, which was the solution?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            saeed 2 @TipsyWisdom last edited by

                            @tipsywisdom 0_1627059681133_mid line.jpg

                            like this

                            TipsyWisdom 1 Reply Last reply Reply Quote 0
                            • TipsyWisdom
                              TipsyWisdom @saeed 2 last edited by

                              @saeed-2 ah sweet, it did work. good to know

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

                              Online Users

                              E
                              H
                              R

                              9
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors