NexusFi: Find Your Edge


Home Menu

 





Multiple strategies on one instrument


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one kevinkdog with 3 posts (6 thanks)
    2. looks_two daniely with 3 posts (0 thanks)
    3. looks_3 Jura with 2 posts (3 thanks)
    4. looks_4 ABCTG with 2 posts (1 thanks)
    1. trending_up 6,715 views
    2. thumb_up 10 thanks given
    3. group 6 followers
    1. forum 14 posts
    2. attach_file 0 attachments




 
Search this Thread

Multiple strategies on one instrument

  #1 (permalink)
daniely
Taoyuan, Taiwan
 
Posts: 11 since Dec 2015
Thanks Given: 10
Thanks Received: 6

I just came to realize that it's technically infeasible for TS to run multiple strategies on one instrument on one account without any compromise.

Does anyone know if this is feasible on MultiCharts?

Thanks!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Are there any eval firms that allow you to sink to your …
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #2 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


daniely View Post
I just came to realize that it's technically infeasible for TS to run multiple strategies on one instrument on one account without any compromise.

Does anyone know if this is feasible on MultiCharts?

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.

Reply With Quote
Thanked by:
  #3 (permalink)
daniely
Taoyuan, Taiwan
 
Posts: 11 since Dec 2015
Thanks Given: 10
Thanks Received: 6



Jura View Post
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.

Hi Jura, thanks a lot for this!

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?

Thanks again!!

Reply With Quote
  #4 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,647 since Jul 2012
Thanks Given: 1,890
Thanks Received: 7,338


daniely View Post
Hi Jura, thanks a lot for this!

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?

Thanks again!!


This is the approach I am using these days. You give up some features, but I've found it useful for my own trading:

3 Part Article, here is part 1

Trading Multiple Strategies With The Same Instrument ? Part 1 - System Trader Success

Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
 solotrader 
Cyprus
 
Posts: 68 since Jul 2013


daniely View Post
Hi Jura, thanks a lot for this!

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?

Thanks again!!

I think you can label the entry and exit signals in the strategies so that different stops will apply to different signals.

Reply With Quote
  #6 (permalink)
daniely
Taoyuan, Taiwan
 
Posts: 11 since Dec 2015
Thanks Given: 10
Thanks Received: 6


solotrader View Post
I think you can label the entry and exit signals in the strategies so that different stops will apply to different signals.

Do you mean it's possible to "setstoploss" individual strategies? Or, just use "sell/buytocover" to exit?

Thanks!!

Reply With Quote
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

daniely,

I am sure he meant use different stop orders for the entries, as you can't use different setstoploss commands for multiple entries.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #8 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


daniely View Post
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.

Good luck; you've got quite a challenge here.

Reply With Quote
Thanked by:
  #9 (permalink)
 kecha1 
Thessaloniki, Greece
 
Experience: Intermediate
Platform: Multicharts, MT4
Broker: Interactive Brokers, LMAX
Trading: FX, Gold
Posts: 2 since Jul 2014
Thanks Given: 2
Thanks Received: 0

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.

Reply With Quote
  #10 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,647 since Jul 2012
Thanks Given: 1,890
Thanks Received: 7,338



kecha1 View Post
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.

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on May 27, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts