OPEN-SOURCE SCRIPT
Aggiornato

Trailing TP Bot

525
• 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
Note di rilascio
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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.