How to determine trend?

 
Is there a way to determine trend in MQL?

I just started to learn this language and can't figure out how to do it properly. Thanks in advance.
 
Cei: Is there a way to determine trend in MQL?
Once you define what you mean by trend, then you will be able to code it.
 
Cei:
Is there a way to determine trend in MQL?

I just started to learn this language and can't figure out how to do it properly. Thanks in advance.
Try indicator.
 
Fstrifoerr8:
Try indicator.
Thanks, but I need a code example or an algorithm. Compiled indicator is of no use for me.
Reason: