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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。