Does the code I posted some posts ago work for you (I assume it is bug-free because it worked for me)?
Does your broker support pendingorder-expiration (as i know some do not allow)?
Maybe some problems with the price (see http://forum.mql4.com/45425#564188 , that is the reason I use normalizeprice-functions) ...
btw - Error 130 is invalid stops:
Stops are too close, or prices are ill-calculated or unnormalized (or in the open price of a pending order). The attempt can be repeated only if the error occurred due to the price obsolescense. After 5-second (or more) delay, it is necessary to refresh data using the RefreshRates function and make a retry. If the error does not disappear, all attempts to trade must be stopped, the program logic must be changed.