Click here to Login





                                                   Automatic screener for checking Equities against the index trend

  0

0
Marius van Wyk
2016-01-11 09:49:41


Hi guys
I have a list of equities/shares and the corresponding indices that they are part of loaded in my site database. I have two questions:
1. Does anyone have any idea on how to automatically create a composite for all the indices I have (about 130) without manually having to create a composite for each index.
2. Then to check each of these equities against the composite for that index to show if any of them are going against the trend say in the last 3, 5 or 7 days

I hope my question is understood!

Kind regards
M van Wyk



QuantShare
2016-01-12 02:49:34

  0

Hi,

1/ You have to use the script editor (Tools -> Script Editor) to automate that. Use the "Composite" variable.

Example:
CompositeItem item = Composite.CreateComposite("", "Index1");
item.SetSymbols(....

2/ Once each composite is created, just reference it in your formula and compare it with each equity
Say, the composite name is in the following formula ~[IndexName], you can call:
a = getseries("~".index(), close);



Marius van Wyk
2016-01-13 16:37:39

  0

Hi
Once again thanks for this and apologies to bother again, but I'm struggling to get the scripting working. I got the second formula working but not the script as per your suggestion.
May I ask that you expand the example using the following?

Index name is Banks,
Share name are BGA,CPI,FGL,FSR,NED,RMH,SBK

Really would appreciate if you could help.


Thanks



QuantShare
2016-01-14 03:35:53

  0

Marius, this is C# programming. Adding symbols is just the simple part. You would not be able to create hundreds of composites unless you know c# programming very well. You can contact us by email if you want us to implement this for you (we do provide paid coding services).


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Leading Index for the United States
Tweet Sentiment Index for the Forex and Stock Market
Market Index for the Gold and Silver Industry
ADX Composite Indicator for the Stock Market
Volume Trend Index - Market Indicator

How-to Lessons
How to get stocks for a particular index using the global script
How to screen for stocks having a high correlation with the Dow J...
Difference between the watchlist and the screener tools
How to display the bar index of a stock on a chart
How to display the number of stocks per day for different RSI gro...

Related Forum Threads
Historical intraday data for the AEX index
Issue in Trend Strength Index Formula?
use of screener for applied rules
Arrow has the same properties as a trend line
Aggregate PEG Ratio for the S&P500 overall?

Blog Posts
How to Pick the Best Trend Indicators
How to Select the Best Market Indicator for your Trading System
Create a stock index or a trading indicator using the composite t...
Create a Pivot Table that displays the Relative Strength Index - ...
Ranking stocks based on their correlation with the S&P 500 Index









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.