Click here to Login

                                                   Ranking "Weak" stocks


allan nathan
2013-03-27 18:48:38

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));



2013-03-27 18:56:53


Best Answer
The correct solution is:

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


allan nathan
2013-03-28 00:47:03


Thanks Clonex..Thats a much better solution:)

No more messages


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"


Trading Items
Morningstar Annual Fundamentals 2.0 for US and International Stoc...
Super Stock Screener Ranking System
Sharpe Ratio Ranking System to Lower Trading Strategies Volatilit...
Stocks Sharp Decline Strategy
Industry Rotation Strategy - iShares ETF Dow Jones Stocks

How-to Lessons
How to display the number of stocks per day for different RSI gro...
How to quickly download the most recent EOD data for your stocks
How to download EOD quotes for active and valid stocks only
How to associate an index with a list of stocks
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
Need Simple Example of Ranking Stocks Implemented in Trading Syst...
Ranking Stocks By Dollar Liqudidty
Ranking systems
Ranking System Optimization
ranking output in simulation

Blog Posts
Improve your trading system performance by ranking stocks
Ranking stocks based on their correlation with the S&P 500 Index
How to Backtest an Intraday Stock Trading System with EOD Ranking
Fundamental Stock Analysis: Rank stocks based on a valuation rati...
Trading System: Buy stocks with the highest Sharpe ratio

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2020
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.