Number of new highs during last week/month


Category:
0
0

I would appreciate any help, pointer, example that would let me scan on ToS to find the number of new highs set

during a particular timeframe i.e. this/last week or this/last month.

Following is the code to count new highs but do not know about setting timframe

def newhigh = high;

def highup = newhigh > newhigh[1];

def countnewhigh = CompoundValue(1, if highup then highup + 1 else highup + 0, 0);

Thanks in advance

Marked as spam
Posted by (Questions: 4, Answers: 1)
Asked on February 5, 2020 12:05 pm
70 views
0
Private answer

What you have requested cannot be accomplished using the Scan tool on Thinkorswim. The Scan tool returns a list of stocks meeting the specified criteria. The criteria for the scan is created by adding various filters and setting the time frames for any Study Filters.

So a scan can return a list of stocks having a specified number of new highs within a specified time period. But a scan is NOT able to give you the number of new highs within a specified time period.

There are only two tools in Thinkorswim that can display the number of new highs within a specified time period. This is a label on a Chart Study or a Custom Watchlist Column.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 5, 2020 1:38 pm
0
Hi Pete Thanks for the prompt response and explanation. As per your suggestion, I can filter the stocks through watchlist, so can you provide me a pointer to filter though specified time frame i.e. last week or month. Thanks again … Ratilal
( at February 5, 2020 5:30 pm)