Two indicators crossing in the same data window

 
Can someone show me some code that will demonstrate how to capture a crossing of two indicators inside the same data window?
Example: I need to identify when the stochastic crosses the CCI in the same data window.
 
Hi!
1. Add Stochastic to chart
2. Add CCI to chart
3. Create template eg. "MyTemplate"
4. Find "My template " file on disk
5. Edit in notepad ( or better editor) template file
6. Find lines <window>, <indicator> etc. and change it... Short example:
Before:
<window>
<indicator>
</indicator>
</window>
<window>
<indicator>
</indicator>
</window>

After:
<window>
<indicator>
</indicator>
<indicator>
</indicator>
</window>

7. Attach template to chart

Best Regards !
 
rixder:
Hi!
1. Add Stochastic to chart
2. Add CCI to chart
3. Create template eg. "MyTemplate"
4. Find "My template " file on disk
5. Edit in notepad ( or better editor) template file
6. Find lines <window>, <indicator> etc. and change it... Short example:
Before:
<window>
<indicator>
</indicator>
</window>
<window>
<indicator>
</indicator>
</window>

After:
<window>
<indicator>
</indicator>
<indicator>
</indicator>
</window>

7. Attach template to chart

Best Regards !

I am looking for an example of MQL code that identifes the cross of the Stochastic and CCI lines without having to read the indicators displayed in the chart window. Sorry, I should have been more specific.
Reason: