Click here to Login








Rebalance & Combine & backtest two trading strategies

by QuantShare, 5069 days ago
Share |


Using the simulator you can easily create and combine two different trading strategies, one long strategy and one short strategy.

However, if you want to create two long trading strategies, you will have to create your own money management script or use this object.

This money management script allows you to create two different long strategies and generate backtesting results of a trading system that combine these strategies.
You can specify buy and sell rules for each strategy and also a rebalance period.
This period is used to rebalance the equity associated with each strategy at a constant interval.

At the beginning, the simulator gives 50% of the initial equity and 50% of the number of positions to each strategy.
After a number of days equal to the specified value in the rebalance field, the backtester rebalance the portfolio and give each strategy 50% of the current equity.

Example:
After 30 days, strategy1 produced a 20% return and has an equity of 12,000$, and strategy2 had a -10% return and has an equity of 9,000$.
The current total equity is equal to 21,000$. After the rebalance day, each strategy's equity will be equal to 10,500$. Strategy1 will have a negative cash balance while strategy2 will have a positive cash balance and therefore can buy larger positions.
Note that Strategy1 positions will not be scaled-out and strategy2 positions will not be scaled-in. In order to scale positions after the rebalance period, you can add a trading order in the "UpdateCategorySettings" function.

If you don't want to rebalance your portfolio, simply set a very high value.




You have to log in to bookmark this object
What is this?




Type: Advanced Money Management

Object ID: 529


Country:
All

Market: All

Style:
All

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Create a trading strategy using the money management tool - Part 2

Create a trading strategy using the money management tool - Part 1

How to create a market timing system - Part 3

Correlation of market indicators

How to create a market timing system

Backtesting Process

Trading software new features

Money Management: Optimize a trading system

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






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.