Need help regarding combining 3 AFL strategies

#1
Hello Experts,

I am trying to combine 3 AFL.

For example:

When 1st AFL is buy and 2nd or 3rd AFL generates buy signal .. then it should generate BUY signal or should remain SELL. Similarly for sell signal.

my code is as follows but does not give expected results. Please need advise from experts.

for( i = 0; i < BarCount; i++ )
{
if( Buy2==1 ) // CORRECT
Buy=Buy1 OR Buy3;
else
if (Sell2==1)
Sell=Sell1 OR Sell3;
}
 

Similar threads