OPEN-SOURCE SCRIPT
已更新 Trailing TP Bot

• Crossover-based Trend Strategy using two simple moving averages (SMAs)
• Includes Take Profit and optional Trailing Take Profit
• Trades both long and short
• No pyramiding, i.e., one position at a time
• Includes Take Profit and optional Trailing Take Profit
• Trades both long and short
• No pyramiding, i.e., one position at a time
發行說明
Core Idea• Trend-following SMA crossover strategy that:
• Enters long when the fast SMA crosses above the slow SMA.
• Enters short when the fast SMA crosses below the slow SMA.
⸻
Exits
1. Take Profit (TP)
• Configurable fixed % target for both long and short trades.
• Optional trailing take profit that moves in your favor as price moves.
2. Stop Loss (SL)
• Fixed 3% (configurable) protective stop for both long and short trades.
• Runs independently of TP/trailing logic so either can trigger first.
⸻
Execution Rules
• Only trades within the configured date range (fromDate to toDate).
• One position at a time (pyramiding=0).
• Commission set at 0.07% per trade.
• Positions sized at 100% of equity for each trade.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。