Highest volume occurence in 12 months


Category:
0
0

Hi Peter,

Can you help with a script that scan the highest volume when I occur on daily chart within 1year?

Marked as spam
Posted by Nathan Ngindu (Questions: 16, Answers: 12)
Asked on August 30, 2020 2:49 pm
209 views
0
Private answer

plot scan = volume > Highest(volume[1], 251);

Assumes the Study Filter is set to Daily time frame and your request was for the highest one day volume within the last year.

Marked as spam
Posted by Pete Hahn (Questions: 37, Answers: 4153)
Answered on August 30, 2020 4:00 pm
0
Yes daily for study filter; however, if I want to scan for 1h or 30min highest volume still within 12month the script will still be the same?
(Nathan Ngindu at August 30, 2020 6:55 pm)
0
First you must consider how much historical data is available for those intraday time frames: https://toslc.thinkorswim.com/center/howToTos/thinkManual/Scan/Stock-Hacker/studyfilters You will find that only the 1 hour time frame is able to look back 1 full calendar year. If you selected the 1 hour time frame, you would need to compute the average number of trading hours in a 12 month period. The adjust the value for 251 "trading days in a year" to x number of "trading hours in a year".
(Pete Hahn at August 30, 2020 7:31 pm)
0
so I did 6h30min time 251 days = 1631.5 hours then I took 1630 hours plot scan = volume > Highest(volume[1], 1630); with study time frame of 1 hour. I hope I did it right
(Nathan Ngindu at August 30, 2020 11:07 pm)
0
What about if i want the highest volume within the last 5bars?
(Nathan Ngindu at August 30, 2020 11:17 pm)
0
Change the value of 251 to a value of 5....?
(Pete Hahn at August 31, 2020 8:16 am)