It is easy, only two functions to use.
Draw the line on the chart, double click the line, give it a name, say : "line_up".
then in the EA look for the line : if( ObjectFind("line_up") > - 1 ) //line is found
Then, if( close > ObjecGetValueByShift( "line_up",0 ) // mean line is touched with price going up
Check for exact formulation of fonction, (this is MT4)
thanks a lot, that's very helpful