OPEN-SOURCE SCRIPT
已更新

Trailing TP Bot

538
• 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
發行說明
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。