Conditions are :
1) For bull market :
i. Scan the stock which has open price of 1 minute bar above the high of the day.
ii. And the last price should be above EMA 14 days period.
iii. MACD shows buy signal.
2) For bear Market
i. Scan the stock which has open price of 1 minute bar below the low of the day.
ii. And the last price should be below the EMA 14 days period.
iii. MACD shows sell signal.