This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
For Free - No Credit Card Required
Rebalance & Combine & backtest two trading strategies
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.
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.