Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
It's possible, and when the different signals (that is, trading strategy scripts) are added to the same chart then it's also easy to do: just add the different signals to the same chart and MultiCharts will combine them into one strategy.
Things will get more complicated if you trade the same instrument from different charts since then each signal will need to account for a range of conflicts that can happen (like an open position on chart A and a sell signal on chart B, or a stop-loss order on chart A while chart B triggers a limit order).
While this second situation is still possible in MultiCharts, I can't comment on how feasible it is for you since it does require a considerable amount of extra code and adds complexity.
I personally wouldn't try this second approach with multiple signals but instead copy all of the signals' code to a single script. That would make managing conflicts like those mentioned above easier, but your preference may differ.
As I know, there are trade-offs when combing multiple strategies into one script on one chart. For example, I can't use SetStopLoss, as such functions would treat all sub-strategies as one, and calculate open profit/loss altogether. Do you have any ideas how to go with your suggested approach without giving up any flexibility?
I don't think this is possible because combining several strategies into one file is by default a loss of flexibility. As you already note here, using different functions for the strategy's logic is also troublesome because functions don't have access to the same information and functionality as signals have. So if you want to combine several signals into one script (and not use the individual signal scripts), there's always a loss of flexibility. It's just a matter of if that loss of flexibility suits your workflow or not.
Perhaps the 'elephant in the room' is how you plan to deal with conflicting situations from the different strategies. Because combining different signals into one script is 'just' coding once you know how you want to combine them. But the biggest challenge might be how to combine them, because if you have a clear picture of that, writing the code to implement it becomes much easier.
In order to run 5 strategies on the same instrument, I had to divide my capital to 5 different accounts an run 5 charts, each one connected with a different account.
To add 5 signals on the same chart is possible, but if one strategy is long and the other short the position will be flat, so strategies will interact.
I do not know if it is feasible to overcome this problem by intergating all the strategies in the same signal and making use of a book keeping routine to handle the positions from the different strategies.
It is possible, but as @Jura says, it probably entails a loss of flexibility.
I do it in my own trading, and it works well where I've done it. The problem I have found is that unless you initially build the strategy with this in mind, it is a lot tougher (if not impossible) to do this.
So, almost all the strategies I develop going forward are going to employ the model shown in the article link given earlier.