rounding of the nearest tick MQL5!

 
This EA is generating the error of the image below when placing a buy or sell order, probably because the EA is trying to place a take profit order and stop loss order in the digits that are not accepted, because of the image I see that it does not position TP and SL in the last digits with end 0 or 5.

Can someone help with this error ?!

EA is below!
Files:
error.jpg  434 kb
 

check code!

Files:
 

Check this article

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • 2016.08.01
  • MetaQuotes Software Corp.
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products. If any errors are identified by the Market...