|
allan nathan
2013-03-27 18:48:38
|
|
Hi,
Have a question regarding the Rank function.I have no problem ranking "Strong" stocks
rank1=Comp(perf(close, 1),"Rank",1,close>2);
If I wanted to rank the weakest stocks in a screen or for a system,is this how you would approach it?I am curious if one is better off buying the strongest stocks vs the
weakest stocks.
rankweak=Comp(100-perf(close, 1),"Rank",1,close>2);
var1 = rank1 <= 10;
//The above trading rule returns the top 10 stocks that have the highest one-bar rate of return.
filter = var1;
AddColumn("PROC", perf(close, 1));
Addcolumn("rankweak",rank1);
thanks,
Allan
|
|