fxDreema

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

    Working with indicator values

    Questions & Answers
    2
    5
    1039
    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.
    • U
      uchiha last edited by

      Hello people

      My indicator assigns values to each candle different from the candle price.

      I want to compare two candles with their corresponding indicator values.

      Example:

      previous candle (1): close.price = 1.2 | indicator value = 1.4 [ close.price < indicator value ]
      current candle (0): close.price = 2.3 | indicator value = 1.6 [close.price > indicator value ]

      BUY Condition:
      current candle (0) : [close.price (0) < indicator value (0)] AND previous candle (1) : [close.price (1) > indicator value (1)]

      How can I do this??

      P.S: Values in Green are the Indicator Values. While the lines are the approx. close prices of each candle

      ......
      PRICE.JPG

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

        What about the crossover options in "Condition" block? They do this: https://fxdreema.com/documentation/proj ... er%20works

        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          Taken you advice and tried so many tricks (including changing the candle ID) to achieve the desired result, still no success.

          It would be great if you made a separate function, [on candle close], the [candle close] function is difficult to work with.

          Trying to find the right blocks to interpret this:

          ......
          Capture1.JPG

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

            "Candle Close" is the candle's close price, this is not an event.
            The crossover basically works, it's a little bit pain in the .... to control it 🙂

            Here https://fxdreema.com/shared/V1ekNf88 I decided to work when the new candle opens, so I shifted the Candle Close value and and the indicator value with 1 - to look at the previous candles, not the current one which is newly created and it's still just a point. But it depends.

            Are you sure that your indicator is giving you values at all? Check it with "Indicators tester". Sometimes indicators returns only 0 on the current candle, so it's needed to set Candle ID to 1 or more. Just make sure that you are using some values different than 0 or EMPTY_VALUE (which is some giant number).

            1 Reply Last reply Reply Quote 0
            • U
              uchiha last edited by

              Finally Solved 😄

              Used [Candle Open/Candle ID (2)]. It was a huge pain indeed !

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

              Online Users

              S
              M
              A

              7
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors