Invalid stops error!

 
Hi,ive created this pending order EA ,it was working well,all of a sudden it started returning the invalid stops error.Can somebody help please!
 
With this little info one can only guess. Either there is a minimal stops level which you have to keep, see SymbolInfoInteger (SYMBOL_TRADE_STOPS_LEVEL) or you have the stop on the wrong side of the price. Look at the price and stop of the order that the EA is trying to send.
 
Craig orca: Hi,ive created this pending order EA ,it was working well,all of a sudden it started returning the invalid stops error.Can somebody help please!

You have not shown your code, nor your logs, so we are unable to offer any other valid advice.

 
Craig orca:
Thank you so much guys i found the solution for this one,i had my stops on the wrong side of the price.

Thank you so much guys i found the solution for this one,i had my stops on the wrong side of the price.