OPEN-SOURCE SCRIPT
Cập nhật 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
Phát hành các Ghi chú
Changed shares precision, updated interfacePhát hành các Ghi chú
Added Entry price display and adjusted display layoutPhát hành các Ghi chú
emoji updated for position size fieldPhát hành các Ghi chú
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.
Phát hành các Ghi chú
Adjusted stop loss text based on short/long positionsPhát hành các Ghi chú
Added stop loss field and created optional section for all optional fields. Tooltip info updated as wellPhát hành các Ghi chú
- Converted label to table view, for better alignment options.- Fixed some decimimal calculation
Phát hành các Ghi chú
- 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.
Phát hành các Ghi chú
- Changed atr logic.- Added atr loopback period parameter to see how many times for given period atr was crossed.
Phát hành các Ghi chú
Added ATR based stop loss amount which is visible on the labelPhát hành các Ghi chú
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
Phát hành các Ghi chú
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 examplesPhát hành các Ghi chú
Added small visual adjustmentsPhát hành các Ghi chú
now manual position reflected on the label as wellPhát hành các Ghi chú
bug fixingPhát hành các Ghi chú
bugfixes and cleanupPhát hành các Ghi chú
label text changesPhát hành các Ghi chú
fixed risk reward label valuePhát hành các Ghi chú
Label size change addedPhát hành các Ghi chú
Converted to v5Alert added if price touches atr level
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.