There are multiple ways to show your entry price on a ThinkorSwim chart.
You can display it as a line on the chart to show the average price at which you entered your long or short position.
In addition, a sidebar widget is available to help you track multiple positions at the same time.
Method #1: Use GetAveragePrice() Function
The GetAveragePrice() function in thinkScript returns the average trade price for a specified instrument.
ThinkorSwim computes all your entry prices automatically and displays the average on the chart.
def averagePrice = GetAveragePrice(); plot AverageCostBasis = If(averagePrice > 0, averagePrice, double.NaN);
Here’s an example:
Alternatively, you can use the indicator below to plot the average entry price from the last entry bar.
# Acutal Trade Price # Mobius # V01 input ShowEntry = yes; def Entry = if IsNaN(GetAveragePrice()) then Entry else GetAveragePrice(); def LastEntryBar = if Entry != Entry then BarNumber() else LastEntryBar; plot Entry_ = if BarNumber() >= HighestAll(LastEntryBar) and Entry > 0 and ShowEntry then HighestAll(if IsNaN(close[-1]) then Entry else Double.NaN) else Double.NaN; Entry_.SetStyle(Curve.LONG_DASH); Entry_.SetLineWeight(3); Entry_.SetDefaultColor(CreateColor(255, 215, 0)); Entry_.HideBubble(); Entry_.HideTitle(); AddChartBubble(BarNumber() == HighestAll(BarNumber()), Entry_, AsDollars(Entry), Entry_.TakeValueColor()); # End Code
Method #2: Enable Show Trades
In your chart settings, there’s an option called Show trades. Select the checkbox and click Apply.
This setting will display your trade order history on the charts.
Method #3: Current account positions widget
In ThinkorSwim, add a new Watchlist widget on the left sidebar.
Click on the menu dropdown and select Current account positions.
This watchlist can display the average price for multiple positions/trades.
Having your positions and the average entry price displayed in ThinkorSwim make trade management easier.
Luckily, with ThinkorSwim’s built-in features and a custom indicator, the task is easily achievable.
You can track your positions in ThinkorSwim by showing the average price on your chart and following all your current positions via a Watchlist gadget.