OPEN-SOURCE SCRIPT
已更新

Advanced Position Tool by yegeinal

3 473
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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。