Increase the historical data available for scans


Category:
0
0

Hey!

I’m using the code below to scan for stocks that have had their closing price close higher than the previous day’s closing price for 55 times or more. The scan references a year’s worth of data. How can I make it scan for 2 or 3 years?

 

def CloseTop = (close > close[1]);
def Cnt = TotalSum(CloseTop);
plot Scan = Cnt > 55;

Marked as spam
Posted by (Questions: 34, Answers: 56)
Asked on February 18, 2020 11:55 am
187 views
0
Private answer

I see that you are asking how to increase the amount of historical data you can reference when running a scan. The question title you entered really didn't express that. In fact it actually stated that you were trying to load data from the scan results: "Loading Data From Stock Hacker".

Once I read your actual request I updated the title of the question so that other viewers would know exactly what this post is about. Which is that you are trying to increase the amount of historical data the scan engine can use.

Unfortunately the amount of historical data available to the scan engine is locked and cannot be changed. You can get the full details here:

https://toslc.thinkorswim.com/center/howToTos/thinkManual/Scan/Stock-Hacker/studyfilters

This is probably the single most popular link I provide in the Q&A forum. The details relevant to your request are found at the very bottom, the section titled: "Data Limitations"

Here we find the amount of historical data available to the scan engine is strictly limited by the selection of the time frame for your Study Filter. There is no way to change this.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 18, 2020 1:34 pm