Click here to Login





                                                   Comparing assets

  0

0
Christophe
2014-07-07 16:27:23


I reviewed trading objects posted on the site and it seems it is missing a feature. This feature is about comparing the performance of two assets over time in %.

I found on Quantshare two trading objects that come close to it.
- CompareAssets
- EquitySymbols

I will give an example to highlight the feature. In the graph below, we can see the performance of S&P500 and CAC40 over time using CompareAssets.
http://imgur.com/nYiSz2U

The output of CompareAssets is good but limited. For example, if one wants to buy S&P500 and sell CAC40 at the same time, it cannot visualise the evolution over time.
A valuable indicator would be the "green" minus the "red" line.

This indicator is useful to design market neutral strategy (long one asset and short another one at the same time).
It is also useful when there is a starting date to the comparison like in CompareAssets. Reason is that divergences often occur following an event.

What do you think? Is my understanding of existing Quantshare features fine?



QuantShare
2014-07-07 21:43:00



Hi Christophe,

You can implement this using the QS programming language. Right click on a pane, select "Edit Formula" then type the following formula:

a = getseries("GOOG", close);
b = getseries("AAPL", close);
day1 = 4;
month1 = 1;
year1 = 2012;
c1 = day() == day1 && month() == month1 && year() == year1;
a = (a / valuewhen(c1, a)) - 1;
b = (b / valuewhen(c1, b)) - 1;
d = a - b;
plot(d, "", colorBlue);



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
Sharpe Ratio of Two Assets
Relative Performance Chart - Dynamic assets and index
ETF Data: NAV - PE- Fees - Assets - Yield - Beta
Random Walk Index
Industry Relative Strength

How-to Lessons
How to create a strategy-based portfolio
Difference between the watchlist and the screener tools
How to plot the relative performance of several stocks/indices
How to calculate the average of a time series using the money man...
How to import trades into a portfolio

Related Forum Threads
Rules manager - comparing results - back testing vs rules analysi...
Compare strategy total returns or benchmarks on a percentage scal...
Dynamic Checklist to Compare Open to yesterday's Close
variance between two pairs graphically ?
Custom index/relative chart for TAA - Sector rotation

Blog Posts
Compare Multiple Securities in a Single Chart
Compare stocks and securities by creating a relative performance ...
Trading System: Buy stocks with the highest Sharpe ratio
Different Ticker Symbols for Each Data Source
3 Market Indicators based on Fundamental Data









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.