Click here to Login





                                                   Optimize weights of two symbols

  0

0
Patrik
2015-01-03 13:43:05


Hello,

I build trading system that selects 2 ETFs out of 6 ETFs. The software automatically allocates 50% into those 2 top ranked ETFs.
What I am trying to do is to use optimal weight (based on the best sharpe ratio of last 3 months). For that I want to use MMS.

I downloaded MMS "Custom Weight for Individual Securities" and I tried to get optimum weights for just 2 ETFs (not selected top 2 out of 6 ETFs), but just 2 ETFs (SPY, TLT) using
Walk-Forward Testing, where the In-Sample best sharpe ratio allocation (past 3 months) was used for out of sample weights (next 3 months), but the problem is that the used script does not keep total allocation to 100.
I used Optimize Weight 1 (from 0 to 100, step 10) and the same for Weight 2, but optimization process used sometimes weights 80 and 90 (leverage 170%).

Could you pls help me to adjust the script in a way that total weight for both ETFs will be kept at 100. Second step would be apply this to top 2 ETFs (from the list of 6), not just 2 ETFs (SPY, TLT).

Thanks.






Custom Weight for Individual Securities (by QuantShare, 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
2015-01-05 03:32:46

  0

Hi Patrik,

The next release will allow you to update position sizing easily and directly from the formula editor.



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
Number of Symbols in Watchlists
ETF Symbols - Hong Kong Exchanges
London Stock Exchange Symbols
BSE Symbols
US Options symbols A-M

How-to Lessons
How to optimize an indicator in your trading system
How to plot two different time frames in the same chart
How to optimize the number of positions in a trading system
How to optimize a neural network using a genetic algorithm
How to plot the ratio of two stocks

Related Forum Threads
How to draw two symbols on 1 chart
Intraday Data for NSE Symbols
Deleting no-data symbols
How to query quote database and bin symbols by some attribute
Add new symbols for download

Blog Posts
How to Optimize a Trading System with Thousands of Billions of Co...
Money Management: Optimize a trading system
Money Management: Optimize the scale-in strategy
Different Ticker Symbols for Each Data Source
Optimize a trading strategy using the Sharpe ratio









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.