Really questioning how the trailing stop works in the backtesting framework of tradingview/pinescript, I am sure I would not get the same results with the same strategy in MT4.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. 您可以收藏它以在圖表上使用。