Click here to Login








Design and backtest a trading system with two strategies

by QuantShare, 3974 days ago
Share |


If you have two trading strategies and would like to measure the performance and profit of a trading system that combine these two strategies then this money management script can help you achieve this.
Each strategy, whether it is applied to stocks, FOREX, futures or options, is given an initial equity that corresponds to a percent of the total capital.

What you have to do is apply this script to a trading system, define the buy and sell rules and set the percent of equity to allocate to each strategy and then start the backtest.
Besides, this item allows you to enter a number of days as a rebalance period. On the rebalance day, the simulator will recalculate the capital allocation of each strategy and then scale-in and scale-out the portfolio's positions so that the new capital requirement for each strategy is met.

Example:
You would like to test whether the combination of two stock systems using different technical analysis rules is profitable. You design a trading system and add these strategies; each one gets 50% of the total equity.

On May 5, 2009, a rebalance is about to occur; your first strategy had a loss and its equity is equal to 10,000$ while your second strategy had a profit and its equity is equal to 20,000$. After the rebalance, strategy 1 will have an equity of 15,000$ (-5000$ in cash) and strategy2 will also have an equity of 15,000$ (+5000 in cash).

On that rebalance day, the backtester will scale-out (Sell shares of a stock) positions in strategy1 because it has a negative cash balance and scale-in (Buy more shares of a stock) positions in strategy 2 because it has a positive cash balance.

There are two differences between this money management script and the following script: Rebalance & Combine & backtest two trading strategies
- The first is that this item allows you to enter the percent of equity to assign to each strategy, while in the other script each strategy is given 50% of portfolio's equity.
- The second difference is that this item instructs the backtester, on the rebalance day, to perform scale-in and scale-out operations for all the positions in the portfolio. In the other script, the new equity of a strategy is reflected only after some transactions.




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




Type: Advanced Money Management

Object ID: 534


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.