Need help regarding combining 3 AFL strategies

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;
if (Sell2==1)
Sell=Sell1 OR Sell3;

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Are you a day trader?