fxDreema

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

    indicator rise (candles to rise)

    Questions & Answers
    2
    4
    1364
    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
      simakos 0 last edited by

      Hello,
      I built an EA containing the "Indicator rise" block. In the "candles to rise" option, I used "1" as value, while 2 is supposed to be the minimum value for that input. My question is what happens when I do this, why do I get results and not an error?
      Best, A.S

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

        There is no error, because the value is not checked in the block. When someone manually writes the value there, he will probably know what to write. But there is another possible scenario. Let's say that if the value is 0 or even negative, then nothing happens. This is still a way to control the block behavior via some Variable, indirect way of turning it off for a while. This makes it more flexible, because it allows you to use any value. But yes, at the same time it's probably not the best idea to do such things.

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

          I did some testing and I found out that this (1) works the same as this (2). Similarly, by including one more candle in the calculations we get this (3) being the same with this (4), and so on. Doesn't this mean that in order to calculate rise for two candles (the current one and the previous) requires "1" as an input in "candles to rise" and not "2" as stated in the explanation?
          Thanks again, A.S

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

            Why "1" for two candles... you even say the word "two". I think that while I was making this block I was thinking that 1 candle rise should be the difference between MA[0] and MA[1]. Technically we compare 2 MA values here, who belong to 2 different candles, but when you draw the line between them, the line itself has width of 1 candle. This is the yellow difference in levels in the picture below:

            0_1554118076659_bc52d462-ff32-4c8f-a0db-7d3c595f4cbb-image.png

            So I guess we are thinking differently - you think about how many points are connected, I think about the number of lines. Both ways are in the same time right and wrong 🙂

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

            Online Users

            W
            E
            U
            E
            J
            A

            19
            Online

            146.9k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors