Is it possible to close order using price action or indicator

 
What i mean is that i want my EA to close my position if a certain criteria occurs. For example, my EA works on stochastic operation and i want to close a buying position if stochastic is above 80, and vice versa on selling position 
 
Yuzayd:
What i mean is that i want my EA to close my position if a certain criteria occurs. For example, my EA works on stochastic operation and i want to close a buying position if stochastic is above 80, and vice versa on selling position 

Yes, of course it is possible. You just code the EA to do it.

 
Keith Watford:

Yes, of course it is possible. You just code the EA to do it.

please how will i do it. will i use orderclose or write a function... Example please
 
Yuzayd: please how will i do it. will i use orderclose or write a function... Example please

Both! You will find many, many examples in the CodeBase!