Click here to Login





                                                   Composite Function

  1

0
allan nathan
2013-03-23 00:02:16


Hi,
I am working with the composite function and Rank/Rank!

rank1=Comp(perf(close, 1),"Rank",1,close>2);


can someone tell me what the 1 following "Rank" and before close >2 does?

I noticed if I remove it the output changes.

Are there other variables one can use as well?

Where could I find an explanation

I will check the CHM docs

Thanks,

Allan





clonex
2013-03-23 07:59:52

  0

Hi,

If im not wrong logic is:
rank by 1 day performance those instruments where close >2

Clonex




QuantShare
2013-03-23 11:03:58

  0

Hi,

The third parameter is used for grouping.

Example:
"1" => means rank all stocks
close > 20 => Rank stocks that have a price higher than 20 separately from stocks that have a price lower or equal to 20

In the last example, you will get two stocks with a rank of "1" and two stocks with a rank of "2"...

Another example:
http://www.quantshare.com/sa-447-fundamental-stock-analysis-rank-stocks-based-on-a-valuation-ratio




allan nathan
2013-03-23 20:27:46

  0

Thanks...I understood the formula except for the grouping,i.e. "1".If I do not include the "1",will it still rank all stocks? Are there any other groupings such as 2,3,4?

Why would I get 2 stocks with a rank of 1,two stocks with a rank of 2?
I am not seeing that in my screen with the formula above.

I understand the difference between RANK and RANK!,but am not following you..

Thanks,

Allan



QuantShare
2013-03-25 10:14:42

  1

QuantShare will rank stocks that have the same group value.

If you put "1" or any other static number/text then all stocks will have the same value (and thus will be placed in the same group). There will be only one group and stocks of this group will be ranked by the application.

If you put something like "industry()" then QuantShare will create several group of stocks (one for each industry) and then it will rank each group individually. If there are 10 industries then you will have ten stocks with a rank of 1.

If you put "Name()" then there will be as many groups as stocks and thus each stock will have a rank value of "1".



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
Number of IPOs per Day - Trading Composite
Maximum Drawdown Composite Indicator
Short selling composite
Market Composite Index based on the Sharpe Ratio
Keltner Channel Market Composite

How-to Lessons
How to filter stocks in a market composite
How to create a composite index/indicator
Difference between the watchlist and the screener tools
How to import trading items from other accounts
How to plot arrows below/above candlesticks on a chart

Related Forum Threads
Composite Function
Problems with the Composite Function
Stock or industry relative strenght : Indicator or composite ?
Percent Rank Function Needed
Creat a Composite Index from few stock symbol

Blog Posts
How to create market indicators using the composite function - Pa...
How to create market indicators using the composite function - Pa...
How to create market indicators using the composite function - Pa...
Create a stock index or a trading indicator using the composite t...
How to create a trading system, screen and composite using earnin...









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.