Simple Oscolator and 50 EMA EA

I have no idea how to program these things at all. I was wondering how complicated would it be to get someone to program using an oscillator (CCI, stoctachics , MACD) and a 50 period EMA.

Basically I would like the EMA to determine trend direction. So if we are in a bull trend only take signals when CCI is oversold and has created a hook and is starting to come up. or if we are in a bear trend only take over bought signals after a hook has been created and sell. Same concept with stocastics execpt it would be a crossover and new peak.

IDEAS anyone? its so simple really.