Multiple conditions
-
Ive been trying to figure out how to have a trade go through if 2 of 4 conditions are met.
I dont care what 2 conditions are met or if more than 2 are met -
I thought about it for a bit and this looks like it would work. I am open to other ideas also
-
heres another way to think about doing it, a weighted system using variables. Call it shortvar and longvar.
If the value of shortvar = 4, enter short. If the value of longvar=4, enter long.
How to achieve the system of math?
If condition1 is true, modify variables, value longvar=value longvar adjust +1
If condition2 is true, modify variables, value longvar=value longvar adjust +1
If condition3 is true, modify variables, value longvar=value longvar adjust +1
If condition4 is true, modify variables, value longvar=value longvar adjust +1
If condition5 is true, modify variables, value longvar=value longvar adjust +1
If condition6 is true, modify variables, value longvar=value longvar adjust +1Dont forget that after each buy trade entered, you should reset the values down to whatever you want them to be at with another, modify variables, value longvar= value, numeric, 0
-
@tipsywisdom This is exactly what I was looking for, much more elegant than what I was trying. Thank you so much.
-
@iagnew said in Multiple conditions:
@tipsywisdom This is exactly what I was looking for, much more elegant than what I was trying. Thank you so much.
also dont forget to subtract if the condition is false!
-
Sorry for drawing you back, if you can show a sample of the multiple condition connected by modify variable, the explanation will be much clearer. please help a friend. Thank you in advance.