possible to code ?

 
Hi,

I was wondering whether it's possible to code an alert based on an simple moving average crossing a trendline ?
There would be 2 trendlines (triangle). Is it possible for mq4 and/or mql language to identify a generic trendline?

Ideally I'd like the same script on a number of currency pairs, reposition my triangle for the day in readiness for a breakout and have a script alert on a SMA breakout, either long or short.

Possible?

Cheers
Martin
 
Anyone?
I'm no coding genius by any means. If someone can at least point me in the right direction, I can make my own feeble attempts at getting going.

Any help would be really appreciated.
Martin
Reason: