Click here to Login





                                                   2 rank engines

  0

0
clonex
2012-05-18 06:00:47


Hello,

it is possilbe to have two rank systems in one strategy

comp1 =comp(Roc(20),"rank");
comp2 = comp(perf(close,20),"rank");

SetSimLongRank( max(comp1,comp2));

buy = DayOfWeek() ==1;

if yes it is possible use it correctly with more then 1 number od positions?


Thank you



QuantShare
2012-05-18 07:55:08

  0

Best Answer
Yes, it is possible however you have to made few changes:

"comp-rank" returns 1 for the security with the highest value (then 2, 3...) and therefore you have to use the "-" sign in "SetSimLongRank".
You must also set "min" instead of "max"

SetSimLongRank(-min(comp1,comp2));

Please note that the indicator you have specified are exactly the same: Roc(20) and perf(close,20)



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 - Percent Rank of a Trading Indicator
CloseHL Percent Rank Oscillator
Rank Industries based on the average Relative Strength Index
Trading System Based on the CloseHL Percent Rank Oscillator
Percent Rank Market Indicator

How-to Lessons
Difference between the watchlist and the screener tools
How to quickly select stocks based on the last value of a databas...
How to create histogram charts
How to create a composite index/indicator
How to create and trade a Neural Network model

Related Forum Threads
Rank using simulation
Percent Rank Function Needed
Composite rank vs SimLongRank
Comp and rank
Ranking System with Trading System Help, Revisited

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









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.