Used Constant / Variable in Conditions
-
How to used variable / constant in conditions?
Let say I have extern input by user :
- Rebound_Trade will be using Limit Order (Buy & Sell Limit) block
- Breakthrough_Trade will be using Stop Order (Buy & Sell Stop) block
Extern Input which will be filled in by user shall be Boolean type :
- Rebound_Trade = True / False
- Breakthrough_Trade = True / False
In case user take Rebound_Trade = True and Breakthrough_Trade = False
I need to take this conditions to activate Limit Order (Buy & Sell Limit) BlockIn case user take Rebound_Trade = False and Breakthrough_Trade = True
I need to take this conditions to activate Stop Order (Buy & Sell Stop) BlockIn case user take Rebound_Trade = True and Breakthrough_Trade = True
I need to take this conditions to activate Limit Order (Buy & Sell Limit) Block also Stop Order (Buy & Sell Stop) BlockPlease help with this matters?
-
@aeivan It will be much easier to understand if you share your project. Initially some of them should be Constants whereas other should be variables, but I prefer not to speculate until I can see it.
-
Sorry for that, here is the link :
link text -
@aeivan What you need to do is creating two variables (not two constants) and position them in those same places the constants are now. Then you need a structure telling them when they are true or false, ie, what needs to happen for any of them moving from true to false and the opposite.
Constants can be selected by the user but can never change. However, variables can be modified, but cannot be chosen by the user.
-
@l-andorrà --> Constants can be selected by the user but can never change. However, variables can be modified, but cannot be chosen by the user.
Well noted, i'll try it. Thank you for your reply.
-
@aeivan You're welcome.