fxDreema

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

    How to compare the price of two discontinuous candles? seek help!

    Questions & Answers
    2
    6
    621
    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.
    • ghq
      ghq last edited by

      I want to implement a process to compare the prices of a and B, in order to take some action when condition C passes.

      Please help. It may be a very simple question. I'm sorry I didn't succeed.

      These three candles don't need to be continuous, just happen in a period of time, such as 4 hours. Because I don't need it to be continuous.
      0_1609306794470_截屏2020-12-30 下午1.39.11.png

      这是我的尝试:
      https://fxdreema.com/shared/7ZztT3Tac
      Thanks in advance!

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

        @ghq
        Hi, the 2 first branches of your project are correct, not the 3rd one I think.
        I prefer to work with double values, like this :
        https://fxdreema.com/shared/AY2pjlGRc

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

          However this way you don't have any time limitation between each event, so if one happened 3 months before another, it will still be taken as a signal.

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

            Thank you. The setting of variables here is very interesting. These are very enlightening.

            I see what you mean. I'd like to come up with some ideas about the effective period and the cancellation of settings later.

            1 Reply Last reply Reply Quote 0
            • ghq
              ghq @seb 0 last edited by

              @seb-0 oh,But how can I compare the price between A and B? I mean:A price>B price. or B price > A price

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

                @ghq
                No problem.
                You could do it this way then :
                https://fxdreema.com/shared/AwD6kncwe

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

                Online Users

                D
                O
                A
                J
                M
                R
                F

                27
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors