Simple Options Volume Indicator for ThinkorSwim

Here you go...

tNOJGkP.png


Options reversed...

KnXO8Lw.png
Darn it... was hoping to catch something obviously wrong on my settings or something.... still not seeing it and its driving me nuts.

unknown.png
 
@pritspat Have you tried a different chart panel, tried restarting TOS, deleted the usergui directory, cleaned up garbage, etc...???
 
@rad14733 Looks like something might be wrong with TOS on my main system.... the script is working fine on a diff machine. Will try deleting the usergui dir and check after hours today.

Update: deleting the folder did not work... might just have to reinstall TOS... what a pita.
 
Last edited:
Hello,

I've built a very basic study to show the volume of up to 2 specific chosen options. I don't know how useful this might be. If anyone has any suggestions or ideas I'm willing to listen. It would be cool if there were a way to sum of the volume of all calls or puts for a specific expiration. Or maybe add the volume for entered strike + 3 strikes above or below. I don't know if any of this is possible. Anyways just thought I'd share.

Code:
#Option_Vol - Simple Volume Histagram for up to 2 Options
#Created by Switchfire
#v1.0 08FEB2020


declare lower;

input Option1 = "";
input Option2 = "";

plot Vol1 = volume(Option1);
plot Vol2 = volume(Option2);

Vol1.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vol2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vol2.SetDefaultColor(GetColor(5));

#End Script

https://tos.mx/RIIAst4
This shows the calls (blue) and puts (red) for Monday, 10 Feb 2020 332c/p

unknown.png

(i've done a simple modification to the plot which anyone can apply in settings)
Hi, How does the TMO_2Timeframe indicator perform? Is that available somewhere? I have been looking for an indicator like it, but unfortunately can't seem to find it anywhere.
 
It seems like you get the options pricing when you are viewing the options symbol on the chart. If you are not, it is returning n/a until the day is closed. Is this what you are observing too?
 
Hi, I've been trying to do a cumulative option volume on this study but I´m having a hard time getting it running if anyone could take a look will be much appreciated. Thanks,

declare lower;

input Option1 = ".SPY231009P428";
input Option2 = ".SPY231009P427";
input Option3 = ".SPY231009P426";
input Option4 = ".SPY231009P425";
input Option5 = ".SPY231009P424";

input Option6 = ".SPY231009C428";
input Option7 = ".SPY231009C429";
input Option8 = ".SPY231009C430";
input Option9 = ".SPY231009C431";
input Option10 = ".SPY231009C432";


def Vol1 = -(volume(Option1)+volume(Option2)+volume(Option3)+volume(Option4)+volume(Option5));
rec putvol = putvol[1]+ Vol1;

def Vol2 = volume(Option6)+volume(Option7)+volume(Option8)+volume(Option9)+volume(Option10);
rec callvol = callvol[1]+ Vol2;

plot dataput = putvol;
plot datacall = callvol;

datacall.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
dataput.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
dataput.SetDefaultColor(GetColor(5));
 

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
373 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