fxDreema

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

    Optional condition filter

    Questions & Answers
    2
    2
    654
    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.
    • C
      cfabian last edited by

      If have a set of conditions for a trade, how can I make it possible to use them as an "optional" setting? Something like if you are running your EA and if go to settings, you select "true or false" if want to use MA crossing, and same "true or false" to use the condition of MACD > 50, for example? So that the EA only looks for the conditions that are set to true in the settings?

      Thanks

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

        Set a Constand with "bool" datatype. Set it's value to true or false. Then put that Constant in Condition block (Value -> Numeric will work) and compare it with Value -> Numeric (values 1 or 0) or Value -> Boolean.

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

        Online Users

        F
        C
        A
        E

        11
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors