EMA Cross, need code sample

 
Dear MQ4 coders..

I am newbie. Felt very happy to see power of MQ codes & indicators.

I would appreciate, if someone post a sample code for the following situations. Thanks in advance.

for ex. "MODE_EMA" values 10, 20.. I need a code sample with alert, if possible when EMA 10 (value1) crosses EMA 20 (value2).

Also, another sample code: When current (ticking) value of a symbol reaches a target, I would like to create an alert.. (for ex. current value of EURUSD 1.1750, along ticking.. moving UP & DN, when it reaches, 1.790.. I want to raise an alert).

I hope, I am not asking for too much here. Please help/post.

Regards
 
I've wrote a Cross Alert Function sample in www.forex-tsd.com
http://www.forex-tsd.com/showthread.php?t=357&highlight=cross
Give it a look.
 
I've wrote a Cross Alert Function sample in www.forex-tsd.com
http://www.forex-tsd.com/showthread.php?t=357&highlight=cross
Give it a look.


Appreciate it. I have checked out the link, and got the answer.. waiting to witness the alert, when cross over occurs.. thanks again.

Waiting to see a code sample for my 2nd request, anyone.. please!!
Reason: