fxDreema

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

    Help with this counter, dont work properly

    Questions & Answers
    2
    2
    490
    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.
    • L
      Luisen last edited by

      https://fxdreema.com/shared/ouNxjI1M

      I shared the EA, its really simple, i did to make proofs with the counter function

      the idea is:

      1. cross of emas
      2. when the distancie between emas will be greater than 5 pips, open sell

      i put a reset for the counter every "n" bars, the number of bars I put 500 to be sure that reset work ok, but as you can see in the screenshot below, the counter dont reset, because the EA make consecutive operations

      0_1555963272898_Sin título.png

      I have done this proof too, but don´t make operactions

      https://fxdreema.com/shared/tpF3Bw8Hc

      Or the counter dont work properly, or i do something wrong

      Some help pleased

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

        Here is my simple test for the counter blocks: https://fxdreema.com/shared/gD1k3Y8db
        If there is no Pass once, there will be one arrow for each candle. If blocks 4 and 5 are not there, there will be only one arrow in the beginning. But since I reset the counter every 5 bars, I got this expected result:
        0_1556386699744_d5e43e9d-dfd7-4a8c-b740-af1ae1adaaa3-image.png

        Your problem is logical. You have a Condition for cross between two MAs, but at that time the distance between them is probably very small.

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

        Online Users

        M
        C
        E
        R
        S
        M
        N
        E
        T
        J

        22
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors