Useful Intraday Stats for ThinkorSwim

Sonny

Active member
VIP
@k8be P is current price (close), Ch is percent change from yesterday close, O is open price, C is percent change from open, and R is relative volume.
 

Ginu09

Member
Hey Sonny, I have a watchlist column that shows volume over the last 30 minutes to give a sense of morning liquidity. How would I modify this to look for the volume for the last 30 minutes including both regular volume and pre-market volume? Thanks!
 
Last edited:

Sonny

Active member
VIP
Hey Sonny, I have a watchlist column that shows volume over the last 30 minutes to give a sense of morning liquidity. How would I modify this to look for the volume for the last 30 minutes including both regular volume and pre-market volume? Thanks!
Please specify which time frames you want to measure volume, like 4am to 4pm?
 

CDJay

Member
VIP
Hi @Sonny,

Are there ways to add a second or third line to the labels?

For instance, I was thinking of putting all the derivations of volume — yesterday's volume, average volume, last tick, the one before, etc — on a second line, since there appears to be enough real estate and I think it would be easier to understand. Or perhaps all the pre-markets on their line. In a similar vein, is there a way to add spaces, so I could bunch them thematically?

Thanks for any help you can provide. Your codes have been fantastic!

Regards,
Jason
 

Sonny

Active member
VIP
Hi @Sonny,

Are there ways to add a second or third line to the labels?

For instance, I was thinking of putting all the derivations of volume — yesterday's volume, average volume, last tick, the one before, etc — on a second line, since there appears to be enough real estate and I think it would be easier to understand. Or perhaps all the pre-markets on their line. In a similar vein, is there a way to add spaces, so I could bunch them thematically?

Thanks for any help you can provide. Your codes have been fantastic!

Regards,
Jason

Which volume codes do you want? Just the ones listed here or more? You can add spaces by putting spaces in quotes and adding them in the Addlabel lines.
 

rviray9

New member
Hello @Sonny, new member here. Thanks for all the scripts really appreciate them. How can I have the premarket volume on my watchlist column? Thx.....ronald
 

Sonny

Active member
VIP
Hello @Sonny, new member here. Thanks for all the scripts really appreciate them. How can I have the premarket volume on my watchlist column? Thx.....ronald

Not sure how to make PM volume as a column but I can give you the code for chart label if you want.
 

CDJay

Member
VIP
Which volume codes do you want? Just the ones listed here or more? You can add spaces by putting spaces in quotes and adding them in the Addlabel lines.
Thanks for that idea, Sonny; that should be easy to do.

I had been referring to all of the volume algorithms I've seen posted here. I really would like a second line, but I think I might be out of luck. I did some searching and discovered \n works to create a new line in the hints area, but it doesn't seem like it works within a Study.
 

darkelvis

New member
VIP
Yo, @Sonny

I'm looking for a label on the top of the chart that just shows what the premarket high of a stock is that the color of the label is red when the stock is below PM high, Yellow when it is within 3% of the PM high, and goes green when it is trading above the PM high (or just red/green - below pm high/above pm high). Is this possible?
 
Last edited:

connorg

New member
Hi everyone i was wondering if there was any possible way someone could keep it really simple and just have RVOL with volume stats for intraday and daily. Thank you very much
 

uravgtrader

New member
@Sonny Thank you for the intraday stats. I am having one issue with it though. I noticed that it calculates everything using 9 am as open and not at 9:30. So the open price, the hi and lo and so on are all based on 9 am as the start. I am not sure if this is something from my side or part of the code. What am I missing? I'd appreciate any kind of help. Thank you again.

Edit: This only happens while running the on-demand feature. Any guesses on how I can go about fixing this issue?
 
Last edited:

Gatsby

New member
I copied ]Sonny;s script on page four but i am getting the error:
add label is not allowed in this context at line 87.

anyone have any idea how to fix?
 

Chence27

Member
I'm looking for a label that displays the dollar value of the previous and current bars from high to low of the bars. So let's say the current bar has a range of 2 dollars... That would be displayed in the label. Any help would be appreciated.
 

Similar threads

Top