fxDreema

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

    Low and High of last x candles

    Questions & Answers
    2
    3
    1310
    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.
    • B
      BlueMoon last edited by

      I would like to get the price value of "high" and "low" of the last "x" candles. I need to use this value in the condition block. What is the quickest/easiest way to accomplish this?

      Abade69 2 Replies Last reply Reply Quote 0
      • Abade69
        Abade69 @BlueMoon last edited by

        @yalgaar Hi, create a loop with "x" as limit, every round add +1 to the candle ID counter, a condition checks the number of candle ID being checked at that round and after it stores the high/low info it in a separate variables (using the modify variable blocks).

        You must think what is the max number of candles you are willing to check beforehand.

        Hope this helps 🙂 If not i am sure savy coders may have a better solution.

        1 Reply Last reply Reply Quote 0
        • Abade69
          Abade69 @BlueMoon last edited by

          @yalgaar If you want the mean of the high/lows just add the formula blocks at the end of the loop (the yellow conection).

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

          Online Users

          K
          A
          D
          S
          G

          19
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors