Please help ,

am trying to make EA to do this:Making EA Open Position at particular time-ea-png

1- checking the 10:40 candle in 5 minutes chart if this candle close in Bullish Candle will open
Buy Position and take profit after 20 pips no StopLoss.

if it's not a Bullish candle go to condition number 2

2- checking the 10:40 candle in 5 minutes chart if this candle close in BEARISH Candle will open
Sell Position and take profit after 20 pips no StopLoss.