This indicator takes (1) an entry price or average position price and (2) position size (denominator) to calculate current gain or loss and returns those as well as the position change in percent. It will also draw into the Chart and show relevant data in a table.
It is mainly supposed to help tracking an (average) spot position easily.
It is recommended to...
tracking highest and lowest with anchor point to track over dynamic periods, e.g. to track a Session HH/LL live and get the bar/time of the LTF wick that matches the HTF HH/LL
// DESIGN DECISION
// why anchored replacements for ta.highest / ta.highestbars / ta.lowest / ta.lowestbars:
// 1. they require a fixed length/lookback which makes...
Simple Library for tracking trades
tracks trade when called on every bar
Namespace types: Trade
this (Trade) : Trade object
Returns: current Trade object
Has the constituents to track trades generated by any method.
id (series int)
direction (series int) :...
Library contains few data structures and methods for tracking harmonic pattern trades via pinescript.
Creates and draws HarmonicDrawing object for given HarmonicPattern
Namespace types: HarmonicPattern
this (HarmonicPattern) : HarmonicPattern object
Returns: current HarmonicPattern...
This 'Average Cost' script allows the user to input and visualize profit or loss for different stocks (up to 50) with average cost and quantity data on a single chart. This is useful for tracking the profit or loss of each stock in real-time.
To use this script, the user should follow these steps:
1. Add the 'Average Cost' script to your TradingView...
This is an edit to an existing script. Original credits to pigloo and Ivturner for the slight tweak.
What's been changed:
This version allows Bitfinex $BTC longs/shorts to be viewed on any chart. It can be helpful when trading alts to find out why price is fluctuating.
I've added a price tracker that will show you BFX's BTCUSD value if you have...