Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Pairs analysis Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sasworldwide
Posted : Wednesday, April 8, 2009 7:52:52 PM
Registered User
Joined: 7/30/2008
Posts: 30

could you please tell me if it is possible to analyze pairs in SF ? 

For example, let us say I have got a set of pairs SMH and KLAC, XLF and ALL, STI and BAC, etc. I am the one who generates pairs. The next step is I want to analyze the pairs' difference such as SMH-KLAC, STI-BAC, XLF-ALL, etc. I want to analyze the differences as if they are individual stocks. I want to do it in a very simple manner, not like generating pairs manually every time per pair per layout.  

If the above is possible then I will need to analyze the weighted diffrences such as SMH-0.87*KLAC, etc. 
thank you 

StockGuy
Posted : Wednesday, April 8, 2009 11:17:24 PM

Administration

Joined: 9/30/2004
Posts: 9,187
Load the attached StockFinder indicator by clicking on the link and choosing Open.  This will plot the indicator in StockFinder.

Initially you will have to set each pair plot up individually by selecting the symbols to use and the multiplier for each symbol if you want one (like the .87 you mention above).  Once you get the pair plot set up the way you want it, right click on the plot name and select Save Indicator.  Give it a unique name like Pairs SMH KLAC and click OK.

You can recall any of the plots by pressing the / key and typing in the name.

Attachments:
Pairs SMH KLAC.sfInd - 5 KB, downloaded 652 time(s).

Michael_T
Posted : Thursday, April 9, 2009 9:14:11 AM


Worden Trainer

Joined: 10/7/2004
Posts: 710
Building on Stockguy's indicator, I added a couple of watchlists which you can fill with the stocks you want to compare...click on one symbol in the first WatchList, then one in the second, and SG's indicator will calculate for you automatically.

Load the attached StockFinder layout by clicking on the link and choosing Open.  This will load the layout in StockFinder.

Attachments:
PairsSAS.sfLayout - 52 KB, downloaded 703 time(s).

sasworldwide
Posted : Thursday, April 9, 2009 4:22:14 PM
Registered User
Joined: 7/30/2008
Posts: 30
thank you. I tried it but it is not exactly what I want. It gives some simplicity but not enough. the problem is that I can analyze only one pair at a time. 

I want to generate all pairs in one list and apply indicators to them, i.e. I  want to see all pairs SMH-KLAC, STI-BAC, etc. and I want to apply let us say MACD or other indicators to these pairs. 
thank you.
sasworldwide
Posted : Thursday, April 9, 2009 4:32:41 PM
Registered User
Joined: 7/30/2008
Posts: 30
I can simplify the task, if it helps. first, let us forget about the weights.  second, I can give you a list and SF will generate all permutations. For instance, the initial list is SMH, KLAC, INTC. the permutaitons list is SMH-KLAC, SMH-INTC, KLAC-SMH, INTC-SMH, KLAC-INTC, INTC-KLAC. I want to analyze the entire list of all permutations. I want to apply any indicator to all of pairs.
thank you.
StockGuy
Posted : Thursday, April 9, 2009 4:35:50 PM

Administration

Joined: 9/30/2004
Posts: 9,187
You can add the indicator I posted above to the chart as many times as you want and set the pairs up one time.  You can have them all on the same chart if you have the screen real estate.  If not, you can save and recall them at any time.  When they're on the chart  you can add MACD and any other indicators to them, just like you would a price graph.

There is no way to create those pairs and store them as symbols in a list.
sasworldwide
Posted : Friday, April 10, 2009 3:17:19 PM
Registered User
Joined: 7/30/2008
Posts: 30
ok, I can not have all the pairs at once, but if it is possible to assign weight to each stock in the second multiplier, that would be great. For instance, KLAC*0.8, BAC*1.46, ALL*0.46. If I can do it in advance then I can use PairsSAS layout one at a time by clicking once in one list and second time in the second list. 
I need the miltipliers because I need the numbers to be equal such as SMH=0.8*KLAC, STI=1.46*BAC, etc. 

If you can calculate this multipliers and add them to the second list that would be even better. 

Result will look like that I click on the fist stock SMH, then I click on the second KLAC then the system calculates the multiplier for the current price Mult= SMH/KLAC=0.8. Mult becomes the constant. The next step is the system presents the graph SMH-Mult*KLAC, where Mult does not change any more. 
Is it possible?
thank you.
 
StockGuy
Posted : Friday, April 10, 2009 3:47:33 PM

Administration

Joined: 9/30/2004
Posts: 9,187
There's no where to store the mulitipliers in the list.  If you'll follow my instructions above I think you'll be happy with the results.  You can add three pairs to one chart and three to another and add all of the indicators you want.  View the charts side by side and you can see them all at one time.
sasworldwide
Posted : Friday, April 10, 2009 9:30:01 PM
Registered User
Joined: 7/30/2008
Posts: 30

What I am searching for is to analyze 50 or more pairs for one indicator and choose the best 2-3. I am trying to save my time on entering the pairs with weights. I would be ok with typing the pairs in, but theare are too many clicks in setting up 50 pairs in this layout. do you know another piece of SW for this purpose?
I have got thinkorswim, for instance, I can type SMH-KLAC*0.8 (enter) and I will see the graph with an indicator. I was thinking to get something easier than that. 
thanks anyway.

 

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.