NexusFi: Find Your Edge


Home Menu

 





Show average position on Chart


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one Massive l with 2 posts (1 thanks)
    2. looks_two rmejia with 1 posts (1 thanks)
    3. looks_3 jmflukeiii with 1 posts (0 thanks)
    4. looks_4 Sanosuke with 1 posts (0 thanks)
      Best Posters
    1. looks_one skyflare with 5 thanks per post
    2. looks_two rmejia with 1 thanks per post
    3. looks_3 kareninsc with 1 thanks per post
    4. looks_4 Massive l with 0.5 thanks per post
    1. trending_up 20,803 views
    2. thumb_up 8 thanks given
    3. group 9 followers
    1. forum 9 posts
    2. attach_file 1 attachments




 
Search this Thread

Show average position on Chart

  #1 (permalink)
Sanosuke
Edmonton, Canada
 
Posts: 3 since Jan 2015
Thanks Given: 1
Thanks Received: 0

Hi guys, feel like this should be easy but I can't figure it out.

If I am holding a position how do I get the entry price to show on the chart by default? For example, if I enter a trade long at 7.50 how can I always have the chart for that symbol display a line at 7.50 showing me that this is my position?

Any help is appreciated,
Sano

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

It shows up in mobile but not in the desktop. Have to manually draw a line.

Reply With Quote
Thanked by:
  #3 (permalink)
kareninsc
Walhalla, SC
 
Posts: 9 since Jan 2012
Thanks Given: 3
Thanks Received: 6


Not showing your position is the lamest thing ever. Why can ToS do it on mobile but not in their regular platform? Super weak.

Reply With Quote
Thanked by:
  #4 (permalink)
skyflare
Ormond Beach Florida
 
Posts: 1 since Jul 2019
Thanks Given: 0
Thanks Received: 1


kareninsc View Post
Not showing your position is the lamest thing ever. Why can ToS do it on mobile but not in their regular platform? Super weak.

I agree, it is super lame to not have this feature. However, I just learned how to do it with thinkscript as a chart study. You click create study on the edit studies window and paste in this code in the thinkscript editor, and then you can edit it to change the color afterwards with the gear icon. I know this is an old post, but it ranks for this question on google, so I wanted to share a possible solution for thinkorswim:

def averagePrice=GetAveragePrice();
plot AverageTradePrice=if(averagePrice > 0, averagePrice, double.NaN);

Reply With Quote
  #5 (permalink)
 
Massive l's Avatar
 Massive l 
OR/USA
Legendary /NQ Trader
 
Experience: None
Posts: 2,129 since Mar 2011
Thanks Given: 1,859
Thanks Received: 5,106

You can also click show trades in the chart settings and it will show every trade you've made on that chart with the price in a bubble.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
tlebouef
Richardson
 
Posts: 1 since Sep 2019
Thanks Given: 0
Thanks Received: 0

def averagePrice=GetAveragePrice();

plot AverageTradePrice=if(averagePrice > 0, averagePrice, double.NaN);


Is this working on TOS ? Looking for confirmation because I can't get it to work. I would like to plot a line accross the graph of my average holding price.

Perhaps something here > http: //box5176.temp.domains/~markexm8/dev/forums/topic/track-your-positions-on-your-charts/]Track your positions on your charts ?

Reply With Quote
  #7 (permalink)
jgn1055
Huixquilucan
 
Posts: 1 since Jan 2021
Thanks Given: 1
Thanks Received: 0


skyflare View Post
I agree, it is super lame to not have this feature. However, I just learned how to do it with thinkscript as a chart study. You click create study on the edit studies window and paste in this code in the thinkscript editor, and then you can edit it to change the color afterwards with the gear icon. I know this is an old post, but it ranks for this question on google, so I wanted to share a possible solution for thinkorswim:

def averagePrice=GetAveragePrice();
plot AverageTradePrice=if(averagePrice > 0, averagePrice, double.NaN);

Where did you learn this? It solves the issue.

Reply With Quote
  #8 (permalink)
 buy the dip 
Baton Rouge LA
 
Experience: None
Posts: 1 since May 2020
Thanks Given: 0
Thanks Received: 0


jgn1055 View Post
Where did you learn this? It solves the issue.

Could you tell me how you got the code to work?

Reply With Quote
  #9 (permalink)
jmflukeiii
Seattle, WA
 
Posts: 4 since Dec 2011
Thanks Given: 0
Thanks Received: 5

See below. Note that I think this only shows up once the bar closes that you entered on.

def averagePrice=GetAveragePrice();
plot AverageTradePrice=if(averagePrice > 0, averagePrice, double.NaN);

EDIT: realized someone already put this up above! Sorry

Reply With Quote
  #10 (permalink)
creos
Kansas City USA
 
Posts: 1 since May 2022
Thanks Given: 0
Thanks Received: 0


Thank you for posting this is great!!


skyflare View Post
I agree, it is super lame to not have this feature. However, I just learned how to do it with thinkscript as a chart study. You click create study on the edit studies window and paste in this code in the thinkscript editor, and then you can edit it to change the color afterwards with the gear icon. I know this is an old post, but it ranks for this question on google, so I wanted to share a possible solution for thinkorswim:

def averagePrice=GetAveragePrice();
plot AverageTradePrice=if(averagePrice > 0, averagePrice, double.NaN);


Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	188
Size:	99.2 KB
ID:	324706  
Reply With Quote




Last Updated on May 27, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts