Jump to content

Back testing and order modify error


huuu

Recommended Posts

Hi there,

 

Just wondering if any of the techinical experts here have a way of avoiding "OrderModify error 145" when backtesting ea's? After all, if this error is encountered when running back tests, the results cannot be all that accurate, can they?

 

ERR_TRADE_MODIFY_DENIED 145 Modification denied because order too close to market.

Link to comment
Share on other sites

Thanks for the clarification as to how this error is triggerred, but my concern is that does this not make back tests unreliable?

 

if it's an error when modifying SL the failure of the modification should not lead to an advantage for the outcome of the trade in general.

If the broker's STOPLEVEL is like 10pips or so and you are running with a TS of 5 pips you never get the mod accepted. This could be a disadvantage for the EA

On the other side a trade could run up to TP without being stopped out

For sure the 145 doesn't add reliability

Edited by iwjw
corrected some bulls..t
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...