OPEN-SOURCE SCRIPT
Telah dikemas kini

Trailing TP Bot

542
• 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
Nota Keluaran
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.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.