OPEN-SOURCE SCRIPT
Samil Dogru SmartTrailing v1.1

📘 Samil Dogru SmartTrailing v1.1 – BTCUSDT Optimized Strategy (15-Minute)
Samil Dogru SmartTrailing v1.1 is an advanced trend-tracking and profit-locking strategy, specifically optimized for BTCUSDT on the 15-minute timeframe.
It integrates dynamic price following, intelligent trailing exit after trigger activation, and protective hard-stop loss logic to maximize profit while limiting downside risk.
⚙️ Core Strategy Logic:
Entry Signal: Based on a crossover of HMA100 and HMA200, filtered by the trend direction of HMA500 and HMA1000 (cloud logic).
Trigger Mechanism: When price moves a user-defined percentage (e.g., +1.2%) from the entry, the trailing logic is activated.
Smart Trailing Exit: Once triggered, the strategy tracks new highs (for long) or new lows (for short). A trailing stop is dynamically updated. If price pulls back by the defined margin (e.g., 0.8%), the position exits.
Hard Stop (Pre-Trigger): If price moves adversely by a defined percentage (e.g., 2.5%) before the trigger is hit, the position is forcefully exited to protect capital.
📊 Performance Note:
On BTCUSDT with 15-minute candles, historical testing has shown:
High directional accuracy
Optimized entry and exit timing
Improved profit retention with minimal user intervention
This setup is ideal for semi-automated swing scalping within structured trend conditions.
📎 User Controls:
All percentages are user-defined:
Trigger Threshold (%)
Trailing Margin (%)
Maximum Loss (%) before trigger
Trailing logic is active only after the trigger level is reached. One position at a time (pyramiding=0).
⚠️ Disclaimer:
This strategy is not financial advice. While historical performance is promising, future results are not guaranteed.
Always test in a simulated environment before deploying real capital. Use proper position sizing and risk management.
Samil Dogru SmartTrailing v1.1 is an advanced trend-tracking and profit-locking strategy, specifically optimized for BTCUSDT on the 15-minute timeframe.
It integrates dynamic price following, intelligent trailing exit after trigger activation, and protective hard-stop loss logic to maximize profit while limiting downside risk.
⚙️ Core Strategy Logic:
Entry Signal: Based on a crossover of HMA100 and HMA200, filtered by the trend direction of HMA500 and HMA1000 (cloud logic).
Trigger Mechanism: When price moves a user-defined percentage (e.g., +1.2%) from the entry, the trailing logic is activated.
Smart Trailing Exit: Once triggered, the strategy tracks new highs (for long) or new lows (for short). A trailing stop is dynamically updated. If price pulls back by the defined margin (e.g., 0.8%), the position exits.
Hard Stop (Pre-Trigger): If price moves adversely by a defined percentage (e.g., 2.5%) before the trigger is hit, the position is forcefully exited to protect capital.
📊 Performance Note:
On BTCUSDT with 15-minute candles, historical testing has shown:
High directional accuracy
Optimized entry and exit timing
Improved profit retention with minimal user intervention
This setup is ideal for semi-automated swing scalping within structured trend conditions.
📎 User Controls:
All percentages are user-defined:
Trigger Threshold (%)
Trailing Margin (%)
Maximum Loss (%) before trigger
Trailing logic is active only after the trigger level is reached. One position at a time (pyramiding=0).
⚠️ Disclaimer:
This strategy is not financial advice. While historical performance is promising, future results are not guaranteed.
Always test in a simulated environment before deploying real capital. Use proper position sizing and risk management.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.