Click here to Login





                                                   Comp and rank

  0

0
allan nathan
2015-07-02 16:05:03


Hi,
I am running 2 different backtests to test the comp and rank function.
One buys the strong stocks,the other the weak..


rankstrong=Comp(perf(close,21),"Rank",1,close>2);


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

no sell rule,just a time stop



Somehow,I am getting the exact same results.

formulas work in screener

What am i doing wrong?

Thanks,

Allan






QuantShare
2015-07-02 19:40:13

  0

What "buy" rule are you using?

It should be something like this:

buy = rankstrong < 5; // Buy to 4 stocks



allan nathan
2015-07-03 12:22:10

  0

Hi,
It appears it is working correctly,but there is one issue.If I use your formula,I must set the number of positions to 4 in the simulator.If I choose 10 stocks for number of positions,while using the formula

Buy=rankstrong< 5;

the results look to be incorrect,if you look at the actual trades that take place.

Am I correct that one must make sure the number of positions selected must equal the stocks per the entry formula,i.e rankstrong<5; ?

Thanks,

Allan



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
Percentile Rank of PEG, Price/Free Cash Flow and Price/Sales
Top 20 stocks with the highest 10 day rate of change - Current an...
Trading System Based on the CloseHL Percent Rank Oscillator
CloseHL Percent Rank Oscillator
Rank Industries based on the average Relative Strength Index

How-to Lessons
Difference between the watchlist and the screener tools
How to download EOD quotes for active and valid stocks only
How to create trading rules based on Put and Call volume data
How to plot support and resistance lines automatically
How to create and trade a Neural Network model

Related Forum Threads
Why cannot see COMP results on chart and in debugger
Rank using simulation
Percent Rank Function Needed
Basic Backtesting and Systems
Composite rank vs SimLongRank

Blog Posts
Trading Indicators using the Rank and Percentile functions
3 ways to rank stocks in a trading system - Simulator and Potfoli...
Fundamental Stock Analysis: Rank stocks based on a valuation rati...
Intermarket Analysis - Correlation and Trading Strategies
Buy the best/top rated stocks or how to create powerful rank base...









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.