Premarket Volume For ThinkOrSwim

No need to apologize, you don't owe anybody anything bud. And thank you for sharing!

Premarket RVOL, exactly what I was looking for! We're obviously looking for stocks with volume in the morning.

EDIT: I made a scanner and watchlist column based on your code.

c4FEEd5.png


Add this as a study: http://tos.mx/NvAn3MK (or use code below). Click here for --> Easiest way to load shared links
Code:
#https://usethinkscript.com/threads/premarket-volume-for-thinkorswim.2383/post-116609
#Use 30min timeframe

Declare Lower;
Declare zerobase;
def Day0PMVol = If getday() <> GetDay()[1] then If SecondsFromTime(0930) < 0 then volume else 0 else If secondsFromTime(0400) >= 0 and SecondsFromTime(0930) < 0 then Volume+Day0PMVol[1] else Day0PMVol[1];

def pmvolplotted = If secondsFromTime(0400) >= 0 and SecondsFromTime(0930) < 0 then Day0PMVol else Double.nan;

Def PmBack1Day = If GetDay() <> GetDay()[1] then Day0PMVol[1] else PmBack1Day[1];
Def PMBack2Day = If GetDay() <> GetDay()[1] then PmBack1Day[1] else PmBack2Day[1];
Def PmBack3Day = If GetDay() <> GetDay()[1] then PmBack2Day[1] else PmBack3Day[1];
Def PMBack4Day = If GetDay() <> GetDay()[1] then PmBack3Day[1] else PmBack4Day[1];
Def PmBack5Day = If GetDay() <> GetDay()[1] then PmBack4Day[1] else PmBack5Day[1];
Def PMBack6Day = If GetDay() <> GetDay()[1] then PmBack5Day[1] else PmBack6Day[1];
Def PmBack7Day = If GetDay() <> GetDay()[1] then PmBack6Day[1] else PmBack7Day[1];
Def PMBack8Day = If GetDay() <> GetDay()[1] then PmBack7Day[1] else PmBack8Day[1];
Def PmBack9Day = If GetDay() <> GetDay()[1] then PmBack8Day[1] else PmBack9Day[1];
Def PMBack10Day = If GetDay() <> GetDay()[1] then PmBack9Day[1] else PmBack10Day[1];

Def PMAvgVol = (PmBack1Day + PmBack2Day +  PmBack3Day + PmBack4Day + PmBack5Day + PmBack6Day + PmBack7Day + PmBack8Day + PmBack9Day + PmBack10Day)/10;

plot PMRVOL = Day0PMVol/PmAvgVol*100;

And this as a watchlist column: http://tos.mx/fkbbmK5 (or use code below).

Code:
#https://usethinkscript.com/threads/premarket-volume-for-thinkorswim.2383/post-116609
#Use 30min timeframe

Declare Lower;
Declare zerobase;
def Day0PMVol = If getday() <> GetDay()[1] then If SecondsFromTime(0930) < 0 then volume else 0 else If secondsFromTime(0400) >= 0 and SecondsFromTime(0930) < 0 then Volume+Day0PMVol[1] else Day0PMVol[1];

def pmvolplotted = If secondsFromTime(0400) >= 0 and SecondsFromTime(0930) < 0 then Day0PMVol else Double.nan;

Def PmBack1Day = If GetDay() <> GetDay()[1] then Day0PMVol[1] else PmBack1Day[1];
Def PMBack2Day = If GetDay() <> GetDay()[1] then PmBack1Day[1] else PmBack2Day[1];
Def PmBack3Day = If GetDay() <> GetDay()[1] then PmBack2Day[1] else PmBack3Day[1];
Def PMBack4Day = If GetDay() <> GetDay()[1] then PmBack3Day[1] else PmBack4Day[1];
Def PmBack5Day = If GetDay() <> GetDay()[1] then PmBack4Day[1] else PmBack5Day[1];
Def PMBack6Day = If GetDay() <> GetDay()[1] then PmBack5Day[1] else PmBack6Day[1];
Def PmBack7Day = If GetDay() <> GetDay()[1] then PmBack6Day[1] else PmBack7Day[1];
Def PMBack8Day = If GetDay() <> GetDay()[1] then PmBack7Day[1] else PmBack8Day[1];
Def PmBack9Day = If GetDay() <> GetDay()[1] then PmBack8Day[1] else PmBack9Day[1];
Def PMBack10Day = If GetDay() <> GetDay()[1] then PmBack9Day[1] else PmBack10Day[1];

Def PMAvgVol = (PmBack1Day + PmBack2Day +  PmBack3Day + PmBack4Day + PmBack5Day + PmBack6Day + PmBack7Day + PmBack8Day + PmBack9Day + PmBack10Day)/10;

plot PMRVOL = Day0PMVol/PmAvgVol*100;

Set both to 30min timeframe. Then scan the study (the first code) with, for example >100 (for greater than 100%), or like so:
PM_RVOL() is greater than 100
The bold part is the default name of the study, so if you rename it, you will need to change that to whatever you named it.
Hi,
I included the PM_RVOL in my watchlist but some of the figures are not showing. just getting

Nan or "custom expression subscription limit exceeded"

can someone assist me please
 

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

Hi,
I included the PM_RVOL in my watchlist but some of the figures are not showing. just getting

Nan or "custom expression subscription limit exceeded"

can someone assist me please
Watchlist Column "custom expression subscription limit exceeded"
TDA purposely throttles any of your scripts that require a high use of TDA resources:
https://usethinkscript.com/threads/thinkorswim-custom-expression-subscription-limit-exceeded.1441/

Nan is a mathematical error. There is no premarket vol to display
 
Watchlist Column "custom expression subscription limit exceeded"
TDA purposely throttles any of your scripts that require a high use of TDA resources:
https://usethinkscript.com/threads/thinkorswim-custom-expression-subscription-limit-exceeded.1441/

Nan is a mathematical error. There is no premarket vol to display
It's also my understanding that there is a limit to how many custom expressions you can display at once too, so having too many tickers showing using a bunch of custom watchlist columns will have the same effect.
 
Hi,
I included the PM_RVOL in my watchlist but some of the figures are not showing. just getting

Nan or "custom expression subscription limit exceeded"

can someone assist me please
Does this need to be scanned only during pre-market? or can I run this can even after 930?
 
Does this need to be scanned only during pre-market? or can I run this can even after 930?
You can run it at any point through the day, but like @stormy77 said, there is a limit as to how much code you can use in headers, custom scans, conditional orders, etc.. Studies and Strategies do not have a limit, but they will give you a warning that data may be delayed.
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
427 Online
Create Post

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