1 Answer
<p id="isPasted">This should do what you want, just set the input " Cancel_Level " to the distance you want the cancel level to activate at above or below the Pending order, use only a positive number and the EA will automatically allow for any of the 4 Pending order types. For example if you input 50 the cancel level will set 50 pips below a BUYSTOP or 50 pips above a SELLSTOP.</p><p>Give it a go and let me know if it needs any changes.</p><p>File Type: ex4 <a href="https://www.forexfactory.com/attachment/file/1303325?d=1383219028">Cancel Pending level.ex4 </a></p>