Good day to you.
I was asking if anyone here can help me out and code this.
For example
I have 10 conditions c1, c2,c3…c10.
If 6 of these conditions are met I want to buy.
This actually looks simple, but I can’t translate this into code.
Can one of you do this for me?
Hi,
assuming your conditions are boolean (=1 when true, =0 when false), you can create your overall new boolean “6 out of 10” condition like this:
atleast6 = (c1+c2+c3+c4+c5+c6+c7+c8+c9+c10 >=6)
if atleast6 then
buy... // your buy statement
...
endif
Please have a thank you from me