@l-andorrà , it seems that almost everyone here refers to pending future orders but not really buy/sell stops, or buy/sell limits.... which is it? This is the sole reason why I don't use these options because I am not typically doing stops and limits...
No. A script will be executed just once, at the exact moment you put it on the chart. Then it will never work again. That means the trailing stop will be inoperative. If you need a real trailing stop, you need an EA.