Click here to Login





                                                   Use of Comp with Full Ranking System

  1

0
swalk10
2010-04-23 18:51:47


Thanks again for the "comp" command, it is helpful.

What is the syntax to refer to a full ranking system with "comp" (that is, one that has nodes, etc.,
and is too involved to directly define in the comp command).




QuantShare
2010-04-24 06:20:22

  0

Best Answer
Explanation for those who are new to the "comp" and ranking system features:
The ranking system and the "comp" function are not related.
The ranking system calculates a value (not a rank) for a specific stock given the formulas and nodes defined. It can then be used within the simulator to rank stocks.
The "comp" function calculates composites.

However, the "comp" function could be used as a ranking system, using the "Rank" or "Percentile" parameters.

If you have for example the following ranking system:
Node1 : roc(close, 10) - Weight: 40
Node2 : roc(close, 5) - Weight: 40
Node3 : sma(volume, 10) > sma(volume, 30) - Weight: 20

You can use the following formula to calculate a stock rank with the "comp" function:
comp( 40 * roc(close, 10) + 40 * roc(close, 5) + 20 * (sma(volume, 10) > sma(volume, 30)), "rank")

For long ranking systems, it becomes difficult to use the "comp" function.
Do you want to be able to do something like the following?
comp("ranking system name", "rank")



swalk10
2010-04-24 10:13:09

  0

Thanks for your examples, this helps. Yes, I would like to be able to execute comp("ranking system name", "rank") - is that syntax allowed?


QuantShare
2010-04-26 07:17:16

  0

It will be allowed in a next release


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
Intraday Trading System with Daily Ranking
Trading System with Sharpe-Based Ranking
Trading Rules to use with the Trading System Optimizer
RSI(3) Ranking System
Sharpe Ratio Ranking System to Lower Trading Strategies Volatilit...

How-to Lessons
How to use QuantShare with Metastock data
How to download and use U.S. stocks earnings data
How to set order type of a trading system programmatically
How to generate buy/sell signals from a trading system
How to debug a trading system using the money management tool

Related Forum Threads
Ranking System with Trading System Help, Revisited
Ranking System Optimization
Hysteresis in ranking sytem - reduce trading with time decay fact...
Ranking System optimization - how to interpret?
Ranking System - Intraday support

Blog Posts
How to Backtest an Intraday Stock Trading System with EOD Ranking
Ranking system calculation methods
How to Optimize a Trading System with Thousands of Billions of Co...
Ranking stocks based on their correlation with the S&P 500 Index
10 masks to create thousands of rules to use into your trading sy...









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.