P&L Measurement, POS

K

kalyan

New member
Hello all,

I noticed some useful features on my Webull app that are missing in Thinkorswim. I have attached an image to check if its possible to add these feature on TOS windows program.

1. I would like to see: Profit/Loss dollar estimate on the chart. This changes dynamically as I move the stop loss or take profit level (OCO order).



2. I also want to see my Point of sale (POS) listed on the chart. Once my order fills, there is no mark on TOS chart to see at what level my stock was purchased at. I have to go to monitor tab or order entry to see my Trade price. I attached an image of how POS appears on Webull.



Thank you
 
BenTen

BenTen

Administrative
Staff
VIP
1. Not possible
2. Try enabling "Show trades" in your chart's settings

 
K

kalyan

New member
Thanks for the quick reply.
I have tried Show trades before but its not accurate. It places a price bubble with arrow pointing to candlestick but its not the actual price level. I have to go back with price level tool to place a line at point of purchase. For example, I bought AAPL at 379.87 but the arrow points no where near 379.87. Also it shows all my previous trades which clutters up the screen if I buy and sell multiple times in a day. I have attached a screenshot of my TOS. It will be nice if it showed only the current POS price level on the chart.
Thanks.
 
P

Pensar

Member
VIP
@kalyan Try this code by Mobius -

Code:
# Plotting Average Actual Entry
# Mobius
# 01.01.2018

input HardStop = 3.00;
input Dir = {default long, short};

plot hide = double.nan;
     hide.setDefaultColor(Color.Black);
def c = if isNaN(close[-1]) then close else c[1];
def Entry = if isNaN(GetAveragePrice())
            then Entry[1]
            else GetAveragePrice();
def LastEntryBar = if Entry != Entry[1]
                   then barNumber()
                   else LastEntryBar[1];
plot Entry_ = if barNumber() >= HighestAll(LastEntryBar) and Entry > 0
              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();
def PL = if Entry > 0 then Entry - c else 0;
AddChartBubble(barNumber() == HighestAll(barNumber()), Entry_, "AVG " +AsDollars(Entry), Entry_.TakeValueColor());
#Alert(c crosses below Entry, "", Alert.Bar, Sound.Chimes);
#Alert(c crosses above Entry, "", Alert.Bar, Sound.Ring);
plot stop;
switch (Dir)
{
case long:
    stop = Entry_ - HardStop;
case short:
    stop = Entry_ + HardStop;
}
#Alert(close crosses stop, "STOP", Alert.Bar, Sound.Bell);
# End Code
Also, try creating a watchlist and select "current account positions". Then, choose your desired columns, such as "Avg Price", "P/L %", "P/L Open", etc.
 
K

kalyan

New member
Thank you for the code. It is working great for the POS.
I dont see "current account positions" under New watchlist.
Thanks again
 
P

Pensar

Member
VIP
@kalyan Perhaps a picture can explain better. It is just above the "company profile" and "Social Sentiment" selections.

 
Top