Scan for stock pairs


Category:
0
0

First off….thank you for sharing TOS expertise.

Second…I’m, pretty handy with TOS, but I’m stumped on this one.

I would like to use a ‘Scan’ to compare multiple stocks against one another (think pairs…A-Z). So, lets say I want to see if stock A is making a new high and if stock B is as well, if so, the scan gives me A,B as a match…….the scan would then  compare A to C…..A to D etc….then B to C….D to D etc.  At the end of the scan I would like to see the pairs the met the criteria..

 

Is this possible ?

 

 

Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on January 16, 2019 1:44 pm
65 views
0
Private answer

Given your request, why would you select a title of: “TOS loops ?”.

It is possible to to read data from specific ticker symbols. For example you are scanning against a watchlist of stocks. The first one in the list is AAPL. The code can read the data from AAPL as the “Current” ticker symbol. Then additional lines of code can take care of reading from a number of other ticker symbols. And for each of the “other” ticker symbols you can have lines of code to compare whatever you computed for AAPL. Each of the “other” ticker symbols will need to be hard coded into the scan.

The scan can only evaluate true/false. So it’s not possible for any scan to output a pair of ticker symbols. In fact the only output possible is a list of ticker symbols that meets a set of true/false conditions. So in the case of your specific example, it’s not possible.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on January 16, 2019 5:07 pm