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 อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน