fxDreema

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

    Logic for "New top in trend" Block

    Questions & Answers
    2
    4
    905
    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.
    • T
      Trader3487 last edited by

      Let's say PastCandlesCount=7, is the current candle included as one of the 7 so that it checks candle 0 (current candle) through candle 6 or does it start checking from the previous candle through candle 7?

      Is iLow(SYMBOL,TIMEFRAME,PastCandlesCount) the low value for candle 6 or the low value over the last 7 candles (ex. if candle 3 is the lowest)?

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

        As I can see in the code it works with candles from 0 to PastCandlesCount-1, which is total of PastCandlesCount candles including current one.
        Most blocks in this category does what custom indicators should do, now I consider this as a mistake, so use them if you want but I will suggest to use custom indicators if you have 🙂

        1 Reply Last reply Reply Quote 0
        • T
          Trader3487 last edited by

          thanks that's what I understood from the code, just wanted to double check 🙂 This is a great block, I don't see any mistake.

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

            The mistake is that it does what a custom indicator should do, but EAs are not really the right place to do Indicator's job. You can see in the code how much stuff is in there and how complicated it looks - it's because of that. And I also think the performance is lower in this way. These blocks was some of my ideas that I wanted to try, and because I am not an indicator guy... this is the result 🙂

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

            Online Users

            V
            E

            17
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors