In my watchlist I'd like to add a column for the P/L % but have it in a specific color based on what the percentage is at. For example, if my % is higher than 75 then I'd like to change the color to green.
In theory it should be something like
def avg = GetAveragePrice();
def mark = GetMark();
then I'd do the calculations.
My problem is simply starting off. I cannot figure out how to get my average price and the mark. Does anyone know the function for that?? Thanks!
Hi, I am new to ThinkScript and can't find a way to do this. I would like to put a calculation in a custom column in the Position Statement section of the Monitor Tab that simply calculates 20% of the trade price. I think I've learned that I can use GetAveragePrice() in my calculation as the Trade Price. But I entered def TradePrice = GetAveragePrice() and got an error saying there is no such function. It also said I need at least one plot, but I'm not suing this for a chart.
Can anyone point me in the right direction. Also, where is the best place to learn thinkscript syntax, such as tutorials, websites, etc.
In a cash account. GetNetLiq/GetTotalCash aren't quite what I was looking for and couldn't find anything that would show 'Available Funds For Trading'. Thanks in advance.
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.
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.