PROTECTED SOURCE SCRIPT
Telah dikemas kini

HMA Trend Scalper [wjdtks255]

602
๐Ÿš€ HMA Trend Scalper V1: Ultimate Precision Strategy
1. Overview
This indicator captures immediate market trend reversals based on the high-responsiveness of the HMA (Hull Moving Average). It doesn't just show direction; it simultaneously calculates ATR-based volatility to generate optimal Take Profit (TP) and Stop Loss (SL) lines in real-time.

2. How to Trade
๐Ÿš€ LONG Entry:

The HMA line must be Green, and the price must be positioned above the line.

Enter when the price breaks above the high of the last 5 bars and the ๐Ÿš€ LONG label appears.

๐Ÿ’€ SHORT Entry:

The HMA line must be Red, and the price must be positioned below the line.

Enter when the price breaks below the low of the last 5 bars and the ๐Ÿ’€ SHORT label appears.

๐ŸŽฏ Exit (TP/SL):

Close the position immediately when the price touches the Aqua line (TP) or the Yellow line (SL).

3. Key Features
Smart Cleaning: By enabling the 'Hide Past Records' option, the indicator automatically removes previous labels and lines when a new signal occurs, keeping your chart clean and focused.

Real-time Tracking: TP and SL lines extend candle-by-candle as the price moves, providing superior readability for active trades.

High Visibility: Status panels like ๐ŸŽฏ TP Hit or โš ๏ธ SL Hit are generated upon trade completion, allowing you to intuitively track your trading results.

4. Recommended Settings
Sensitivity: 15 (Optimized for Scalping).

TP/SL Multipliers: Fully customizable to fit your personal risk-to-reward strategy.
Nota Keluaran
[V1.1 Update Logs]

Global Multi-language Support: English has been added to the settings menu, allowing international users to configure the indicator with ease.

Real-time Alert Functionality: Added 4 distinct alert conditions. You can now receive instant notifications not only for Long/Short entry signals but also when the price hits your Target (TP) or Stop Loss (SL) levels.
Nota Keluaran
V1.2 Update]
Integrated Unified Alerts: Added the alert() function, allowing you to receive all signals (Long, Short, TP, SL) with a single "Any alert() function call" setup.

Customizable Alert Messages: Added new input options to customize all alert text directly in the settings menu without modifying the source code.

Improved User Experience: Resolved previous feedback regarding alert flexibility to ensure a more seamless trading workflow.
Nota Keluaran
"Updated script preview image and optimized alert functions."
Nota Keluaran
"Updated script preview image and optimized alert functions."
Nota Keluaran
This update focuses on professional risk management and trade stability.

Position Sizing: Automatically calculates "Recommended Qty" based on your risk settings.

HTF Trend Filter: Integrated Higher Timeframe analysis to filter out false signals.

Trailing Stop: Added profit protection logic that moves SL to breakeven/profit.

Live Dashboard: Real-time tracking of Win Rate and Cumulative PnL ($).

V5 Optimization: Complete code refactoring to Pine Script v5 for maximum stability.
Nota Keluaran
This indicator is a comprehensive scalping solution that leverages the high responsiveness of the HMA (Hull Moving Average) to capture market reversals while performing advanced risk management. This latest update grants users full control over chart readability.

[v1.5.2 Key Features]

Customizable Display (New): You can now individually toggle the visibility of Entry Price, Quantity, TP, SL, and Risk/Reward labels in the settings to keep your chart clean.

Intelligent Risk Management: Automatically calculates the optimal 'Recommended Quantity (Rec. Qty)' for every trade based on your account balance and risk percentage (%).

MTF (Multi-Timeframe) Trend Filter: Analyzes trends from higher timeframes and provides instant reliability cues with โœ… (Aligned) or โš ๏ธ (Caution) icons.

Real-time Performance Dashboard: Live tracking of your Win Rate, Cumulative Profit ($), and total Risk/Reward ratio (R/R) in the top-right corner.

Integrated Alert System: Fully automated alerts are triggered for entry signals, as well as when the price hits your Take Profit (TP) or Stop Loss (SL) levels.

[Recommended Trading Guide]

Configuration: Optimize your chart by selecting only the essential information in the DISPLAY OPTIONS menu.

Entry: Maximize your win rate by entering trades only when the background color aligns with the MTF trend icon (โœ…).

Execution: Follow a mechanical trading approach based on the Aqua (TP) and Yellow (SL) lines generated by the indicator.
Nota Keluaran
## ๐Ÿš€ HMA Trend Scalper Pro v1.5.2 (Update)
This update focuses on user-centric interface improvements, providing full control over chart visibility to ensure a clean trading environment.

โœ… New in v1.5.2: Individual Display Toggles

Customizable Labels: You can now individually toggle the visibility of the Entry Price, Recommended Quantity, Take Profit (TP), Stop Loss (SL), and Risk/Reward (R/R) labels in the settings.

Clean Chart Management: Tailor the on-screen information to match your personal trading style and reduce visual clutter.

๐Ÿ”ฅ Core Features

HMA-Based Precision: Utilizes the high responsiveness of the Hull Moving Average for trend following and reversal detection.

Smart Risk Management: Automatically calculates the 'Recommended Quantity' based on your account equity and risk percentage.

MTF Trend Filter: Built-in Multi-Timeframe analysis ensures you trade with the higher timeframe trend, marked by โœ… or โš ๏ธ icons.

Real-time Performance Table: Tracks your Win Rate, Total PnL ($), and Total R:R live on the chart.

Integrated Alerts: Fully automated alerts for entries, TP hits, and SL hits.

๐Ÿ’ก Quick Start Guide

Open the "DISPLAY OPTIONS" group in settings to choose which labels to show.

For the highest probability, enter trades when the background color matches the MTF trend indicator (โœ…).



Author's Note
To be honest, I hesitated for a long time before deciding to make this code open-source. Out of all the scripts Iโ€™ve developed, I consider this my finest work, and I was naturally concerned about others imitating or copying my logic. However, Iโ€™ve decided to share it because I believe in the power of the community. I hope this tool helps you in your trading journey as much as it has helped mine. Please respect the original work.
Nota Keluaran
HMA Trend Scalper Pro v1.5.2 [Official Release]

[Notice regarding Source Code]

To protect the original logic, the source code will remain Protected on TradingView.

If you would like to request the source code for personal or educational use, please send me an email. I will review your request and send the code individually.

๐Ÿ“ง Contact for Code Request: wjdtks255@gmail.com

[What's New in v1.5.2]

English Default: No more language barriers! Settings and labels now default to English.

UI Customization: Individually toggle labels (Entry, Qty, TP, SL, R/R) via settings.

No Subtitles Needed: As promised, the language barrier is gone! ๐Ÿ˜‚
Nota Keluaran
[English] ๐Ÿš€ Version 1.5.3 Patch Notes

Fixed TP Line Alignment: Based on feedback from Parabolic, I have fixed the issue where the TP line did not visually match the price label. Lines are now perfectly synced in real-time.

Enhanced SL Signal Management:

Added a "๐Ÿ’€ SL" label that appears precisely when the stop-loss is hit.

Improved the "Hide Past Records" feature: Now, when a new signal is generated, all previous SL labels are automatically cleared for a cleaner chart.

Stability: Fixed syntax errors (e.g., 'then' input error) to ensure smooth operation on all timeframes.

[Korean] ๐Ÿš€ ๋ฒ„์ „ 1.5.3 ํŒจ์น˜ ๋…ธํŠธ

์ต์ ˆ์„ (TP) ์‹œ๊ฐ์  ์˜ค๋ฅ˜ ์ˆ˜์ •: Parabolic ์œ ์ €์˜ ์ œ๋ณด๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ, ์ต์ ˆ ๋ผ์ธ์ด ๊ฐ€๊ฒฉ ๋ผ๋ฒจ ์ˆ˜์น˜์™€ ์ผ์น˜ํ•˜์ง€ ์•Š๋˜ ํ˜„์ƒ์„ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด์ œ ๋ผ์ธ๊ณผ ์ˆ˜์น˜๊ฐ€ ์‹ค์‹œ๊ฐ„์œผ๋กœ ์™„๋ฒฝํžˆ ๋™๊ธฐํ™”๋ฉ๋‹ˆ๋‹ค.

์†์ ˆ ์‹œ๊ทธ๋„ ๋ฐ ๊ด€๋ฆฌ ๊ธฐ๋Šฅ ๊ฐ•ํ™”:

์†์ ˆ๊ฐ€ ๋„๋‹ฌ ์‹œ ์ฆ‰์‹œ "๐Ÿ’€ SL" ํ•ด๊ณจ ๋งˆํฌ๊ฐ€ ํ‘œ์‹œ๋˜๋„๋ก ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.

'์ƒˆ ์‹ ํ˜ธ ์‹œ ์ด์ „ ๊ธฐ๋ก ์ˆจ๊ธฐ๊ธฐ' ์˜ต์…˜ ์ตœ์ ํ™”: ์ƒˆ๋กœ์šด ์ง„์ž… ์‹ ํ˜ธ๊ฐ€ ๋‚˜์˜ค๋ฉด ์ด์ „ ๊ฑฐ๋ž˜์˜ ์†์ ˆ ๋งˆํฌ๊นŒ์ง€ ํ•œ๊บผ๋ฒˆ์— ์‚ญ์ œ๋˜์–ด ์ฐจํŠธ๋ฅผ ๊น”๋”ํ•˜๊ฒŒ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค.

์•ˆ์ •์„ฑ ๊ฐœ์„ : ์ด์ „ ๋ฒ„์ „์—์„œ ๋ฐœ์ƒํ•˜๋˜ ๊ตฌ๋ฌธ ์˜ค๋ฅ˜('then' ๊ด€๋ จ)๋ฅผ ์™„์ „ํžˆ ์ˆ˜์ •ํ•˜์—ฌ ์•ˆ์ •์„ฑ์„ ๋†’์˜€์Šต๋‹ˆ๋‹ค.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.