Chart Plots and EntryPrice function

jrandydavis

New member
Plus
I've recently discovered the joy and utility of chart plots. I'm wondering if it is possible to plot a point, line, arrow etc. on the respective candle (5 min Agg) at the exact price point of purchase whenever I enter a trade/purchase a stock. So far I haven't been able to get this to work, and I'm starting to think "EntryPrice" doesn't mean what I think it means.
I've tried this, to no avail-

# Plotting Entry Price
plot Entry = EntryPrice();
Entry.SetPaintingStrategy(PaintingStrategy.horizontal);
Entry.AssignValueColor(Color.WHITE);
Entry.SetLineWeight(3);

Any other way to do this? Ideally I'd like to plot 3 lines together-- one at the entry price, and then one above and one below that price by some offset %, like this-

# Plotting Entry Price Offset
Input Percent_Offset = -10;
plot Offset = EntryPrice() + (EntryPrice() * (Percent_Offset / 100));
Offset.SetPaintingStrategy(PaintingStrategy.horizontal);
Offset.AssignValueColor(Color.YELLOW);
Offset.SetLineWeight(3);

Many thanks,
JRD
 
Solution
Ah ok, that explains part of it then. Is there no other way, such as a setting, that will show on the chart the entry price at the corresponding $ position on that chart? I'm thinking of the way Webull does it, and was hoping to set up something visually similar.
Thanks,
JRD
This is what you are looking for?
iNbX4zY.png

3dAcdcS.png


Here is a thread with 101 other ways to display trades:
https://usethinkscript.com/threads/...labels-of-owned-equities-in-thinkorswim.7089/

hope this helps
@jrandydavis Your use of EntryPrice() is part of TOS Strategy logic and is controlled by that logic... For real trades you would need to use Portfolio Functions, specifically GetAveragePrice()... The downside to that is that Portfolio Functions don't update in real time and some functions only update after RTH...
 
@jrandydavis Your use of EntryPrice() is part of TOS Strategy logic and is controlled by that logic... For real trades you would need to use Portfolio Functions, specifically GetAveragePrice()... The downside to that is that Portfolio Functions don't update in real time and some functions only update after RTH...
Ah ok, that explains part of it then. Is there no other way, such as a setting, that will show on the chart the entry price at the corresponding $ position on that chart? I'm thinking of the way Webull does it, and was hoping to set up something visually similar.
Thanks,
JRD
 
Ah ok, that explains part of it then. Is there no other way, such as a setting, that will show on the chart the entry price at the corresponding $ position on that chart? I'm thinking of the way Webull does it, and was hoping to set up something visually similar.
Thanks,
JRD
This is what you are looking for?
iNbX4zY.png

3dAcdcS.png


Here is a thread with 101 other ways to display trades:
https://usethinkscript.com/threads/...labels-of-owned-equities-in-thinkorswim.7089/

hope this helps
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
927 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top