Click here to Login





                                                   Ranking "Weak" stocks

  0

0
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






clonex
2013-03-27 18:56:53

  0

Best Answer
The correct solution is:

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

Clonex



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

  0

Thanks Clonex..Thats a much better solution:)


No more messages
0




Reply:

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"










QuantShare

Trading Items
Super Stock Screener Ranking System
Trading System with Sharpe-Based Ranking
Intraday Trading System with Daily Ranking
RSI(3) Ranking System
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 filter stocks in a market composite
How to download EOD quotes for active and valid stocks only
How to get stocks for a particular index using the global script

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









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.