fxDreema

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

    Indicator moves within limits block

    Questions & Answers
    2
    5
    1711
    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 there,
      I have been testing the block ''Indicator moves within limits" and I have found several inconsistencies. Backtesting this rough example, although in most occasions the EA seems to work fine, there are some cases in which although the condition is fulfilled, no order is being created (screenshot example). 0_1552582356696_examplefx.png
      I am trying to explain the problem as clear as possible, so feel free to ask for any clarifications regarding the example I posted above.
      Do I understand/use this block wrong?
      Thanks in advance for your time,
      A.S.

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

        This is how it looks like for me:
        0_1552913289590_ff98eec0-3816-4921-9906-93fa1d7af13f-image.png

        Are you sure that the backtest starts before 2nd of March? Do you see this problem in other days?

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

          Hello again and thanks for replying.
          Backtesting covered a full year, so there shouldn't be any problems regarding starting/ending dates. I tested the example I posted above once more and I encountered the same problem again (pic 1). Also I checked a few other years and I found some more cases (pic 2,3). It is strange that we have different results, I wonder why.

          0_1553096568803_Χωρίς τίτλο.png

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

            I think the calculation goes like this... here is a screenshot to help:
            0_1553531349542_658b83d0-2fbf-4e57-9503-037e87ad5884-image.png

            I numbered the candles from 0 to 15, candle 0 is where I got a trade and you didn't. So, at that time the upper level, which is Candle Close of candle 1 is the yellow line. We want that yellow line to be above each MA point for 10 candles, starting from candle 5. That MA actually shows High for each candle, so we are comparing High for each of these 10 candles with Close of candle 1. We are talking about candles 5 - 14. Count them, including candle 5, they are 10. My MA line is really below the yellow line for all of these candles. I notice that I have 2 extra candles - 5 and 11, they belong to Sunday days.

            These are your 5-14 candles:
            0_1553531818898_68fdd16e-5cee-4fca-b78d-6a8d6d460a41-image.png
            Here the High of candle 13 is higher than the yellow line.

            0_1553531953962_bc4629c8-17d7-4392-ba14-6d1baa4f97be-image.png
            Here High is too high in candles 10, 11 and 12

            0_1553532043796_d2705802-d0ac-4405-8bd9-fd44bef13bb0-image.png
            And here High is too high in candle 14.

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

              I actually understood the period of candles option in this block incorrectly, I can see my mistake now, thanks a lot for the answers, problem solved 🙂

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

              Online Users

              T
              A
              D
              F
              C

              9
              Online

              146.9k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors