HIDDO v2.0 with Trailing & Final TP

Once a signal is detected, the system places a trade entry and applies a dynamic trailing stop. This trailing stop is designed to follow the price as it moves in favor of the position and exit when a reversal is detected. In addition, the strategy includes a predefined final take profit (TP) level per asset, aiming to close trades when a certain price target is reached. Existing positions are automatically closed when an opposite signal appears, ensuring only one position is active at a time.
Key Features:
● EMA-based trend identification
● Price impulse filtering to reduce weak signals
● Trailing stop logic for dynamic trade management
● Final take profit target per trading pair
● Automatic position reversal based on signal direction
⚠️ Disclaimer: This tool does not guarantee profits or future performance. It is intended solely for educational and analytical purposes. Use of this strategy should be paired with your own risk management and trading judgment. All trading decisions are the sole responsibility of the user.
Once a signal is detected, the system places a trade entry and applies a dynamic trailing stop. This trailing stop is designed to follow the price as it moves in favor of the position and exit when a reversal is detected. In addition, the strategy includes a predefined final take profit (TP) level per asset, aiming to close trades when a certain price target is reached. Existing positions are automatically closed when an opposite signal appears, ensuring only one position is active at a time.
Key Features:
● EMA-based trend identification
● Price impulse filtering to reduce weak signals
● Trailing stop logic for dynamic trade management
● Final take profit target per trading pair
● Automatic position reversal based on signal direction
⚠️ Disclaimer: This tool does not guarantee profits or future performance. It is intended solely for educational and analytical purposes. Use of this strategy should be paired with your own risk management and trading judgment. All trading decisions are the sole responsibility of the user.
✅ Removed all take profit logic
✅ Removed TP tracking variables
✅ Exit is now done exclusively via trailing stop
✅ No more double exits — 1 clean exit per trade
✅ Trailing stop is based on:
🔹 Low of the candle when in a Long position
🔹 High of the candle when in a Short position
✅ This makes the strategy more trend-following and avoids premature exits
✅ Clean and lightweight structure — no unnecessary code blocks
✅ Ideal for automation and long-term optimization
✅ Reorganized internal logic
✅ Hardcoded key functions to protect strategy integrity
✅ Minor performance improvements
✅ Enhanced parameter labeling for clarity and strategic protection
✅ Updated trade exit control input
✅ Ensured that exit labels and executions match actual strategy results.
✅ Matched the version number in both the script and the description for clarity.
✅ Removed plotshape signals (Buy/Sell) for a cleaner chart visualization.
✅ Focused on entry and exit markers only, based on actual strategy execution.
✅ Simplified visuals to avoid distraction and enhance clarity during analysis.
✅ Cleaned up trailing-only exit logic
✅ Removed unused input variables
✅ Added custom MA High and MA Low lines for visualization
✅ Renamed script to "Trailing Exit (Clean Version)"
✅ Code structure cleaned for clarity and readability
Version 4.7
✅ Added input: Enable Force Close at Bar Close
✅ Added logic to force close long/short at bar close if trailing exit did not trigger
✅ Made forced close behavior optional via input toggle
✅ Ensured position resets properly for next signal
✅ Final version stable for auto-reset and re-entry after full position close
✅ Reverted script title back to original name
✅ Simplified chart by removing custom moving average line
✅ Removed pane labels to improve chart clarity
✅ Not Publish Changes
HIDDO v4.7.2 – Update Log
✅ Added real-time trailing stop detection (low/high vs entry price) instead of relying on historical closed trades.
✅ Automatically disables force-close if trailing stop exit is already triggered.
✅ Improved chart visualization: exit arrows now properly match trailing exit instead of showing forced close lines.
✅ Alerts and Trades-on-Chart now match 100% with actual execution behavior.
✅ Minor code optimizations for faster strategy processing.
✅ Change Style
✅ Added input option to limit trades and display to the last 30 calendar days
✅ Time-based filter ensures strategy tester shows only 1-month performance
✅ Compatible with low timeframes (5min, 15min, etc.)
✅ Wrapped all strategy.entry/exit/close in visibility and execution checks
✅ Option can be disabled to show all trades (full strategy history)
✅ Maintained all logic from previous HIDDO trailing stop system
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi neilyanto_official secara terus.
Ambil maklum bahawa skrip peribadi dan jemputan sahaja ini masih belum disemak oleh moderator skrip dan pematuhannya dengan Peraturan Dalaman adalah belum ditentukan. TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.
Arahan penulis
Penafian
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi neilyanto_official secara terus.
Ambil maklum bahawa skrip peribadi dan jemputan sahaja ini masih belum disemak oleh moderator skrip dan pematuhannya dengan Peraturan Dalaman adalah belum ditentukan. TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.