TradingView
UnknownUnicorn17032407
18 juin 2022 21:01

unrealized pnl for btcusdt (or any linear perp) 

BTCUSDTPERP PERPETUAL MIX CONTRACTBitget

Description

haven't seen this published, so i made it to watch my position while looking at my TV chart

right now, code works for just linear contracts (base currency margined, not quote currency) and i will have to add the code for inverse perps soon in the next update

very simple tool... not much to explain

just enter
  • long or short
  • average entry
  • position size (designed for btc since i'm a maxi, but entering the amount of any base currency should work)
  • take profit


then you'll get candles for your position and a line for your TP (and its amount)

next version will add a feature to plot inverse perps

(sorry TV if this doesn't abide by the House Rules exactly)
Commentaires
UnknownUnicorn11630303
This is a fantastic script. Nothing I know of like this on TV. Great work!
UnknownUnicorn17032407
@Caseiko, glad you find it useful, it's a rough first draft, i'll make it more generally customizable with coloring and plot style, etc.
Plus