|
QuantShare
2010-04-24 06:20:22
0
|
|
Best Answer
Explanation for those who are new to the "comp" and ranking system features:
The ranking system and the "comp" function are not related.
The ranking system calculates a value (not a rank) for a specific stock given the formulas and nodes defined. It can then be used within the simulator to rank stocks.
The "comp" function calculates composites.
However, the "comp" function could be used as a ranking system, using the "Rank" or "Percentile" parameters.
If you have for example the following ranking system:
Node1 : roc(close, 10) - Weight: 40
Node2 : roc(close, 5) - Weight: 40
Node3 : sma(volume, 10) > sma(volume, 30) - Weight: 20
You can use the following formula to calculate a stock rank with the "comp" function:
comp( 40 * roc(close, 10) + 40 * roc(close, 5) + 20 * (sma(volume, 10) > sma(volume, 30)), "rank")
For long ranking systems, it becomes difficult to use the "comp" function.
Do you want to be able to do something like the following?
comp("ranking system name", "rank")
|
|