Click here to Login





                                                   Compare Asset Function in Watchlist

  0

0
Marius van Wyk
2016-02-10 00:40:13


Good day
I'm plotting several symbols against each other using the Compare Asset function in a chart.
But I'm now trying to use a watchlist or Dashboard so that I can see a list of these symbols and their respective comparative values.
I can't seem to get it to work as the Watchlist returns no values. Here is my code for the watchlist. What am I doing incorrectly?

var1 = CompareAssets("AFE;AFX;AGL;AMS;ANG;AQP;ARI;ASR;BIL;EXX;GFI;HAR;IMP;KIO;LON;MND;MNP;NHM;OMN;PAN;RBP;SAP;SGL;SOL","01/01/2015");
addcolumn("Comp",var1);
filter = (var1);

Kind regards
Marius





Relative Performance/Return Chart - Compare Several Assets/Stocks - Update for automation (by Alexander Horn, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

QuantShare
2016-02-10 02:32:19

  0

The "CompareAssets" is supposed to plot a line for each security. It will return nothing when used in a watchlist.

What do you mean by "want to see a list of these symbols and their respective comparative values."?

Why don't you put these symbols as securities in your dynamic watchlist and just display the "close" price using the "AddColumn"?



Marius van Wyk
2016-02-11 07:24:27

  0

HI
AS per the CompareAssets definition I want to compare the rate of price change (return) of two or several assets . And I want to see this in a list not only on a graph.

kind regards
M





Relative Performance/Return Chart - Compare Several Assets/Stocks - Update for automation (by Alexander Horn, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

QuantShare
2016-02-12 09:49:01

  0

You can use the pivot table for this. Here is an example:
http://www.quantshare.com/how-254-how-to-create-a-correlation-matrix-of-several-securities

Instead of the correlation you can compare the rate of return of two different securities



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
Butler Adaptive Asset Allocation Model V1.0
Sortino Ratio of an Asset
News parser function
Dividend Yield Watchlist
Relative Performance/Return Chart - Compare Several Assets/Stocks...

How-to Lessons
Difference between the watchlist and the screener tools
How to create a watchlist
How to run a screen or a watchlist from a script
How to drag & drop a stock to a static watchlist
How to speed up watchlist and screener plug-ins when working with...

Related Forum Threads
Compare strategy total returns or benchmarks on a percentage scal...
Composite Function
Watchlist Column order
Creating Watchlist with Two Timeframes
Comp Function

Blog Posts
Compare stocks and securities by creating a relative performance ...
Create Your Own Tactical Asset Allocation Strategies
Compare Multiple Securities in a Single Chart
Advanced Tactical Asset Allocation Strategies
Industry Analysis - How to Compare Stocks with their Industries









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.