 |
QuantShare
2010-08-05 11:14:31
0
|
|
Best Answer
The best way to do this is to use the Composite function.
Buy Rule:
comp(perf(close, 25), "rank", 1, close > 2) <= 10
- Buy the top 10 stocks that have the highest perf(close, 25) value.
- Filter stocks using the following rule: close > 2
Sell Rule:
comp(perf(close, 25), "rank", 1, close > 2) > 10
- Sell stocks that are no longer in the top 10
|
|