Join useThinkScript to post your question to a community of 21,000+ developers and traders.
!IsNaN(result)
or result != ""
.How about something like this? I am not sure how this works on futures etc. which has months /different expiry.I'm trying to tweak my profit/loss label and if it's an option I want to multiple the profit/loss to match the contract size. I've searched and I figure this has to be out there, but I can't figure out how to search for what I want.
How about something like this? I am not sure how this works on futures etc. which has months /different expiry.
def isStock = if (getUnderlyingSymbol()== getSymbol()) then yes else no;
AddLabel(yes, isStock);
https://usethinkscript.com/threads/...ol-is-an-option-or-an-equity.6569/#post-63518I had tried this with options, however the result still cannot distinguish between Stock and Options!
Start a new thread and receive assistance from our community.
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.
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.