Can EA get coordinat of a line that user draw by herself? - page 2

 
ffoorr:

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[0] > 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

Reason: