 |
swalk10
2014-09-24 16:28:23
|
|
I am doing a simple ranking process, for example buying the stock with the highest price.
So, X = close.
Then, given a basket of 50 tickers . . .
Rank1 = comp(x, "rank");
I note that rank #1 is set to the highest close price, rank #2 is next, etc., so far so good.
I then tell the system I want to use Rank1 as my criteria, hence
SetSimLongRank(rank1 );
However, the system then buys the lowest rank #50, next buys #49, etc.
Which has reversed the logic of how "comp" does the ranking.
Seems illogical, or did I make an error? How to I do SetSimLongRank to buy rank #1?
Thanks!
|
|