fxDreema

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

    enable / disable routines

    Questions & Answers
    3
    4
    874
    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
      rfaust last edited by

      how can i enable or disable certain routines in the ea using an input-constant like true/false or 0/1 ?
      i would like enable or disable different filters (each consisting of a few condition blocks): enable filter1 or disable filter2 ...

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

        How do you want to enable/disable these?

        If the EA itself needs to to that automatically, I can suggest Turn ON blocks and Turn OFF blocks. There are also few blocks in "Flags category". Also, Variables can be used.
        It this needs to be done manually, define some Constant (input parameter) and check it's value in some Condition.

        1 Reply Last reply Reply Quote 0
        • M
          MIKEIKE last edited by

          I was curious of the same thing. I want to turn a condition block requirement on or off for strategy testing in the parameters selection. I need to see the impact of excluding a condition in an EA strategy. If I use On Block and Off Block, how would this appear in setup? I believe this is supportive of the initial question? Thanks!

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

            Input parameters are something that must have some meaning. I will always recommend to define and use some Constants, there are actually input parameters for the EA, and you must give them meaningful names.
            Then, these Constants can be used inside the code in various ways. For example: https://fxdreema.com/shared/L3ZklD28c

            If someone have good idea of how to make this in easier and more intuitive way, let me know.

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

            Online Users

            L
            S
            A
            F

            15
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors