For the mt5 version you need to build more complex conditions. The ea is trading as per your logic so it trades once and tp is activated, then the logic to trade is still true so it enters the market again.
More complex conditions are crossover types not simple comparisons. In your case you may want to see if a crossover fits the Heiken_Ashi_Smoothed logic to trade.The manual for the mt4 version shows how to create crossover - also take a look at the examples at
http://www.molanis.com/products/expert- ... visors-mt5