fxDreema

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

    Retrieving internal value of a specific counter (ID) in order to put it into another condition

    Questions & Answers
    2
    5
    1040
    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.
    • R
      robotdeforex last edited by

      Hello @fxDreema

      Is there a way, to retrieve the value of a counter, in order to do another condition depending on that value?

      Could you add this funcionality?

      Now I´m creating a parallel variable, that I keep adding "+1" in Adjust and using that parallel variable for checking other conditions, but it is not a clean, elegant way.

      I hope I was clear in what I mean. What I need to know is if a certain counter (ID = 2) has which counter value: 1,2,3,4,5, etc... in order to use that value for ANOTHER condition with the condition block.

      Thanks in advance!

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

        But incrementing a variable is not that ugly, I can say that it's pretty much the same story. I made those counter blocks before the variables. If I created the variables first, maybe the counter blocks would not exist.

        However, I see something in your project that I don't like:
        0_1547752107362_7cd2dcd3-b5a0-4b64-8f06-b0b394138d59-image.png

        It looks to me that the variable will be set to 2 every time (1 + 1).

        1 Reply Last reply Reply Quote 0
        • R
          robotdeforex last edited by

          You were right, corrected, hadn´t seen that one!

          ![alt text](0_1549018539971_FXDreema-corrected.JPG image url)

          Anyway I insist it would be very CLEAN to be able to retrieve counter values at some points into some blocks, saves duplicating logic, see what I mean?

          Best regards and thumps up for the great job you are doing with FXDreema!

          1 Reply Last reply Reply Quote 0
          • R
            robotdeforex last edited by

            It could be done with another "clear Green" block, such as Retrieving value of Counter, or may be you find another elegant way to solve this. I understand adding another type of variables is not clean, you may find a way to do that, as it is typical to count so many candles, or wait so many candles for a condition to happen, typical for trend systems, also breakout systems, but not only.

            Hope you see my point and thanks for having found that MEGA BUG in our bot!!

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

              So you wait many candles for a condition to happen. I know this is easier to imagine, we just see things better like this "wait for something to happen and then do this". But we already have candles in the past, so normally (and if possible) the EA should look at the past candles. I mean, why counting something every candle while waiting for a condition, when you can detect the condition at the present moment and count the candles in the past.

              But it depends what you actually want to do, because in the EA builder it's sometimes easier to increment variables. There are not many blocks who can look at the past multiple candles and extract some signal out of them.

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

              Online Users

              C
              H

              7
              Online

              146.8k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors