How to determine the cross of two overlay indicators ?

 
Dear all,
I have a problem in mql4.
The image below consists 2 overlay indicator.
RSI(2) and CCI(6).
By visual I can determine the cross between cci and rsi ( pointed by red circle), but I don't know how implement in the ea (coding mql4).
I think cci value must be transformed to rsi value or vice versa. Is it possibe or any idea ?
Please I need your help.

Regards
Hans
 
determine the cross between cci and rsi
double RSI1= iRSI(..., 1),
       RSI2= iRSI(..., 2),
       CCI1= iCCI(..., 1),
       CCI2= iCCI(..., 2);
if ( (RSI1-CCI1)*(RSI2-CCI2) < 0 && newBar) Alert("cross");
 
WHRoeder:



thanks sir for your help
Reason: