Condition based on user-input in the EA
-
I want to have user-input fieds in the EA-settings like "take only long trades yes/no?" and the value of this parameter should be used as a condition in the strategy. If the parameter is "no" or false, then also the shorttrades-part of the strategy should be executed.
I think this should be simple, but I can't figure out how to do this. Any help will be appreciated. -
create bool constants, then use these for true/false in a condition
-
@jstap , that surely makes sense, but my real issue is that I cannot find out how to setup a condition block so that it compares a constant or a variable with the value it should test for.
-
Create the constant
type=bool
name=what you want
value=true/false
right click and add to your condition block