fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. scs9559
    3. Topics
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by scs9559

    • S

      How can I know the max price frome candle close above ma50 until it close below ma50?
      Questions & Answers • • scs9559

      4
      0
      Votes
      4
      Posts
      309
      Views

      S

      @roar
      Never thought one can DIY a loop with the condition block. You inspired me

    • S

      How can i to get the maximum price after the price crosses any moving average ?
      Questions & Answers • • scs9559

      6
      0
      Votes
      6
      Posts
      1417
      Views

      S

      @fxdreema
      https://fxdreema.com/shared/PNRrTSxjd

    • S

      How to get the maximum price after the price crosses the ma21.
      Questions & Answers • • scs9559

      2
      0
      Votes
      2
      Posts
      926
      Views

      fxDreema

      Here the question is how to calculate at which candle that cross happened. Here is some idea: https://fxdreema.com/shared/eHWR6SX5d

      But what do you mean by "price crosses the ma21" - it matters. Because in the history of prices you have 4 prices for each candle and these values.

      The idea in this example is that I have one variable that I set with value 0 before the calculation, then I check whether the Condition is true for candle 0, and if it's not, I increment its value and run Condition with the updated value... as a result Condition runs one or more times, until it passes. After that the value of the variable will have some value - the number of times that Condition passed minus 1, which is the same as the last CandleID used in Condition.

    • 1 / 1