Trade Two Instruments In One Strategy

Questions about MultiCharts .NET and user contributed studies.
User avatar
Analyst
Posts: 19
Joined: 09 Jul 2013
Has thanked: 3 times
Been thanked: 2 times

Trade Two Instruments In One Strategy

Postby Analyst » 15 Mar 2014

I am trying to code a strategy that buys one instrument and sells the other, based on a change in relative momentum. Is there some parameter in SOrderParameters() that tells which instrument to trade? This would be like using BarsOfData(2) only for an Order. Thank you.

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Trade Two Instruments In One Strategy

Postby JoshM » 16 Mar 2014

(...)Is there some parameter in SOrderParameters() that tells which instrument to trade? This would be like using BarsOfData(2) only for an Order.
Trading can normally only be done on the first data series, unless you implement the TradeManager which can trade any symbol from any chart (so also data series 2).

If you Google search `trademanager site:http://www.multicharts.com` you'll come across multiple TradeManager examples.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Trade Two Instruments In One Strategy

Postby Henry MultiСharts » 17 Mar 2014

Hello Analyst,

Please see MultiCharts .NET FAQ #11


Return to “MultiCharts .NET”