OPEN-SOURCE SCRIPT
已更新 Advanced Position Tool by yegeinal

This indicator is a risk-management tool that displays an on-screen panel calculating position size in real time, based on your total portfolio value and the risk percentage you're willing to accept (the "riskometer"). It automatically pulls two stop levels — the current day's low/high (STOP 1) and the previous day's low/high (STOP 2) — and calculates how many shares you can buy (or sell, for short positions) using the formula "Risk Amount ÷ Distance to Stop" for each one. You can switch between Long and Short position types; when Short is selected, the reference stops automatically flip to the day's high points instead of the lows. It also includes a hard cap mechanism: even if the stop distance is extremely tight, position size can never exceed a maximum percentage of your portfolio that you define (e.g., 15%), and any position hitting that cap is flagged with a "[MAX]" tag in the table. Overall, the indicator combines risk-based position sizing with a capital-protection limit in a single visual panel.
發行說明
Changed the name of it.Added MaxLookBack for lower days possible before the previous day.
Added Smallest view edition.
發行說明
%ADR has been added to the calculation.If the ADR is bigger than the current price to stop loss range its okay to take trade.
On the contrary indicator will show it to you.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。