OPEN-SOURCE SCRIPT
Smart Wick Risk Engine

Smart Wick Risk Engine is a precision trading tool designed for fast execution traders, especially on lower timeframes like M1.
This indicator measures the exact distance from candle wicks (high and low) to the closing price of each candle, helping traders quickly identify stop-loss distances based on real market structure.
Based on this wick-to-close distance, the tool automatically calculates the optimal lot size according to a user-defined risk per trade. This allows traders to maintain consistent risk management without manual calculations during fast market conditions.
Key Features:
* Automatic wick-to-close distance measurement (both upper and lower wicks)
* Real-time lot size calculation for Buy and Sell scenarios
* Adjustable risk per trade ($) for flexible account scaling
* Automatic pip calculation for Forex and Gold (XAUUSD)
* Clean label display directly on chart for instant decision making
* Designed for fast execution (ideal for scalping and intraday trading)
How to Use:
1. Wait for candle close
2. Read the wick distance (pip value)
3. Use the displayed lot size based on your risk
4. Execute trade immediately
This tool eliminates the need for manual lot size calculation, helping traders stay focused and consistent under pressure.
Note:
* Pip value is automatically calculated but can be adjusted depending on broker specifications.
* Best used with a solid trading strategy and proper discipline.
This indicator measures the exact distance from candle wicks (high and low) to the closing price of each candle, helping traders quickly identify stop-loss distances based on real market structure.
Based on this wick-to-close distance, the tool automatically calculates the optimal lot size according to a user-defined risk per trade. This allows traders to maintain consistent risk management without manual calculations during fast market conditions.
Key Features:
* Automatic wick-to-close distance measurement (both upper and lower wicks)
* Real-time lot size calculation for Buy and Sell scenarios
* Adjustable risk per trade ($) for flexible account scaling
* Automatic pip calculation for Forex and Gold (XAUUSD)
* Clean label display directly on chart for instant decision making
* Designed for fast execution (ideal for scalping and intraday trading)
How to Use:
1. Wait for candle close
2. Read the wick distance (pip value)
3. Use the displayed lot size based on your risk
4. Execute trade immediately
This tool eliminates the need for manual lot size calculation, helping traders stay focused and consistent under pressure.
Note:
* Pip value is automatically calculated but can be adjusted depending on broker specifications.
* Best used with a solid trading strategy and proper discipline.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.