Hi
I want to go long one stock and short another, rebalancing monthly.
1. The obvious way to do that is with a Combination Strategy, but I find the Combination Strat allocates capital at the START of the backtesting period, then doesn't change it. On that point, can the Combination tool please be changed to size new trades based on the equity at the point in time of the trade, rather than at the start of the backtest? For example, if there is $100k allocated to Strat1 and Strat2 $50k each. If the total capital increases to $150k a few years later, but Strat2 has made no money, can the trade sizing for Strat2 be based on 50% of the $150k, rather than just the $50k?
2. Alternatively, in a script is there a way to say something like (in English), if stock = AAA then buy, if stock = BBB then short? And likewise for closing them after one month, to rebalance and start again?
3. Third alternative, which I do now, is to copy the chart data to Excel and do it manually.
Any ideas welcome please.
Thanks and regards
Rod
Size:
Color:
Size:
Color:
Thanks Eugene
Size:
Color:
At your service.
Size:
Color: