OPEN-SOURCE SCRIPT
Diupdate Show Position

Basic script that represents your position on the chart as a line along with your position size, price, change in price, and P&L.
Catatan Rilis
- Added ability to control the font size and line width separately
- Added "barstate.islast" to speed up rendering.
Catatan Rilis
Added P&L percentageCatatan Rilis
- Added "equity" input to allow calculating P&L% more accurately when using leverage
- Added ability to set label background color
Catatan Rilis
Added showing "Equity", including current profit/loss, taking into account any leverageCatatan Rilis
Fixed formatting issue when profit is $0Skrip open-source
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pernyataan Penyangkalan
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Skrip open-source
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pernyataan Penyangkalan
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.