fxDreema

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

    Big challenge... for me at least: Count candles crossed by a horizontal line

    Questions & Answers
    3
    6
    2438
    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.
    • M
      moreirajbn last edited by moreirajbn

      Hello guys,

      I'd like to count how many candles are crossed by a horizontal line, over a defined period of time (analogous to market profile TPOs). See image below. Is there any way to count how many candles are crossed by the yellow line over the last "X" hours, days etc?

      I thought of using condition blocks under "once per bar", to check if the line is within candle's high/low boundaries, then somehow count how many passes occurred, but I wasn't able to implement that.

      Any thoughts? @fxDreema @miro1360
      0_1523537489399_Screen Shot 2018-04-12 at 14.26.12.png

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        @moreirajbn said in Big challenge... for me at least: Count candles crossed by a horizontal line:

        passes occurred, but I wasn't able to implement that.

        which candles do you mean by "cross"?

        Between trading and gambling is a very small gap, be careful.

        M 1 Reply Last reply Reply Quote 0
        • M
          moreirajbn @miro1360 last edited by moreirajbn

          @miro1360
          Hi,
          I wish to count how many candles the yellow line "hits" (or touches, or crosses) in that period of time.... see new image below.... yellow line is hitting/touching/crossing 17 candles (red "X"es) within that time window

          Thanks...

          0_1523541771253_Screen Shot 2018-04-12 at 14.26.12.png

          1 Reply Last reply Reply Quote 0
          • M
            miro1360 last edited by

            ok try this:

            https://fxdreema.com/shared/eJV6UNH7b

            0_1523551844192_66250b0a-2423-4cd6-9de8-b5958a1963af-image.png

            Between trading and gambling is a very small gap, be careful.

            M 1 Reply Last reply Reply Quote 0
            • M
              moreirajbn @miro1360 last edited by

              @miro1360
              Excellent Miro, thank you so much.. I'll try it right now...

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

                Miro, you are a pro 🙂 I would say that this is a job for some custom indicator or a custom block.

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

                Online Users

                T
                A
                A
                M
                A
                M
                E
                E
                F
                E
                G
                M
                C

                30
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors