SomeGuySolutions

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.
Release Notes:
  • Added ability to control the font size and line width separately
  • Added "barstate.islast" to speed up rendering.
Release Notes:
Added P&L percentage
Release Notes:
  • Added "equity" input to allow calculating P&L% more accurately when using leverage
  • Added ability to set label background color
Release Notes:
Added showing "Equity", including current profit/loss, taking into account any leverage
Release Notes:
Fixed formatting issue when profit is $0
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

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.

Want to use this script on a chart?