Possible to implement a divergence strategy into EA?

 
Is it Possible to implement a divergence strategy into EA with the CCI indicator?
Reason: