OPEN-SOURCE SCRIPT
已更新 Position calc

Current script was created to help faster calculate possible gain or loss from a furure trade. Making money management a bit simpler, by changing values you can adjust proper trade leverage and see possible target values
發行說明
Changed shares precision, updated interface發行說明
Added Entry price display and adjusted display layout發行說明
emoji updated for position size field發行說明
Added volatility indicator, giving credits to HomelessLemon for this part from his script.Added shares input, in case you want to type specific amount of shares for your position, and adjusted calculations accordingly.
發行說明
Adjusted stop loss text based on short/long positions發行說明
Added stop loss field and created optional section for all optional fields. Tooltip info updated as well發行說明
- Converted label to table view, for better alignment options.- Fixed some decimimal calculation
發行說明
- Added ATR option, changed some fieldsHow to use this indicator
By default 10k is hardcoded for future trade position. This field can be ignored if you want to open position based on shares or coins amount. Proper position size will be visible in the table. Same rule applied with risk percent which is set by default to 2% and it shows stop loss values for both long and short position. But if it's needed you can put custom stop loss, target values and risk will be calculated accordingly. Keep in mind what current price is used by default to calculate future trade, you can change this in 'Entry price' field.
I also added ATR indicator which can help you to decide which stop/profit values to put for current timeframe. It also has multiplier and other adjustable fields.
There is also sentiment column which can be hidded to save amount of space.
Table position and size can be changed as well.
Enjoy.
發行說明
- Changed atr logic.- Added atr loopback period parameter to see how many times for given period atr was crossed.
發行說明
Added ATR based stop loss amount which is visible on the label發行說明
Added posibility to hide table.Added another type of stop label, now it's a bit smart and tries to adapt direction based on current price and to which part of the atr band it's closer.
Future plans:
Add smart target label
Adjust visual settings
發行說明
You can use position size calculator in a 2 ways, either rely on the table and you can adjust all values, either you can adjust atr band and rely on the price labels. Soon i will update the readme with more examples發行說明
Added small visual adjustments發行說明
now manual position reflected on the label as well發行說明
bug fixing發行說明
bugfixes and cleanup發行說明
label text changes發行說明
fixed risk reward label value發行說明
Label size change added發行說明
Converted to v5Alert added if price touches atr level
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。