Measuring trend on a single line on-chart indicator

 
I am not a programmer, hence this question. Does the Metaquotes language code have the ability to measure a trend based on a single line indicator on a chart to develop an EA or does it have to be a two-line cross over indicator?
 
Forexmadesimple:
I am not a programmer, hence this question. Does the Metaquotes language code have the ability to measure a trend based on a single line indicator on a chart to develop an EA or does it have to be a two-line cross over indicator?

Possible - just compare the line values between adjacent candles.

 
Seng Joo Thio:

Possible - just compare the line values between adjacent candles.

Thank you