Portfolio Functions Not Working

EddieM

New member
Plus
I have this working in paper money it shows me the PL live as I am trading. Shows my money up or down in green or red and my buy in amount I am at. Th gray area title on the end.
But now I moved to live trading and it is not working? Even the time in is not working but it all still works in paper trading.

How can I get it working in live trading?
 

Attachments

  • Screenshot 2024-11-14 at 10.10.56 AM.png
    Screenshot 2024-11-14 at 10.10.56 AM.png
    94.6 KB · Views: 48
  • Screenshot 2024-11-14 at 10.27.31 AM.png
    Screenshot 2024-11-14 at 10.27.31 AM.png
    93.1 KB · Views: 215
  • Screenshot 2024-11-20 at 9.31.20 AM.png
    Screenshot 2024-11-20 at 9.31.20 AM.png
    26.6 KB · Views: 69
  • Screenshot 2024-11-20 at 9.31.57 AM.png
    Screenshot 2024-11-20 at 9.31.57 AM.png
    43.3 KB · Views: 68
Last edited by a moderator:

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

Thanks Pete. I reported the problem (again) to customer support just now. I'm able to use portfolio functions on tickers other than futures (i.e., "/ES:XCME") in live trading. On futures, I get 0 for GetQuantity("/ES:XCME"). Here is the word I got from development:
TOS portfolio functions.jpg


Clearing out the cache did not resolve my issue.
 
Last edited:
Whenever I try to use GetAveragePrice(), I get a value of zero. Any thoughts?

I have try the following code samples with the same results:

Code:
def entryPrice = GetAveragePrice();
addLabel(yes,entryPrice);

Code:
def entryPrice = if IsNaN(GetAveragePrice()) then entryPrice[1] else GetAveragePrice();
addLabel(yes,entryPrice);


Getting zero on all portfolio functions...
I appreciate any help.

2024-11-13 11_30_42-Main@thinkorswim [build 1982].png
 
So the issue is not related to onDemand users!

The problem seems isolated to no portfolio functions available on open trades of futures.
@epete, thank you for the update!

@Wstar
 
Last edited by a moderator:
Solution

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
310 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