enum ECond { ECnd_AND=0, //AND ECnd_OR, //OR }; input be1 BuyEntry_1 = bb1_b1__1; input ECond Conditionb1= ECnd_AND;//Condition input be2 BuyEntry_2 = disable_b2; input ECond Conditionb2= ECnd_AND;//Condition input be3 BuyEntry_3 = disable_b3; input ECond Conditionb3= ECnd_AND;//Condition input be4 BuyEntry_4 = disable_b4; input ECond Conditionb4= ECnd_AND;//Condition bool Combine(ECond cond,bool A,bool B) { if(cond==ECnd_AND) return A&&B; return A||B; } bool CheckSignals() { bool entry = Combine(Conditionb1,signal1(),signal2()); entry = Combine(Conditionb2,entry,signal3()); entry = Combine(Conditionb3,entry,signal4()); entry = Combine(Conditionb4,entry,signal5()); return entry; }
lippmaje #:
Amazing .. Thanks bro!! i really appreciate your effort!!
enum ECond { ECnd_AND=0, //AND ECnd_OR, //OR }; input be1 BuyEntry_1 = bb1_b1__1; input ECond Conditionb1= ECnd_AND;//Condition input be2 BuyEntry_2 = disable_b2; input ECond Conditionb2= ECnd_AND;//Condition input be3 BuyEntry_3 = disable_b3; input ECond Conditionb3= ECnd_AND;//Condition input be4 BuyEntry_4 = disable_b4; input ECond Conditionb4= ECnd_AND;//Condition bool Combine(ECond cond,bool A,bool B) { if(cond==ECnd_AND) return A&&B; return A||B; } bool CheckSignals() { bool entry = Combine(Conditionb1,signal1(),signal2()); entry = Combine(Conditionb2,entry,signal3()); entry = Combine(Conditionb3,entry,signal4()); entry = Combine(Conditionb4,entry,EMPTY_VALUE); return entry; }
i guess once no more conditions!!.. last value should return EMPTY_VALUE!!
It takes 1 condition to combine 2 values, 2 conditions to combine 3 values, and so on. Your example was short of 1 signal and so I added one. Up to you how to fix this.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I was able to make 2 options..
i have no idea to make multiple input param
is there any possible way to make an operand as input.. ?