Trade Two Instruments In One Strategy
Trade Two Instruments In One Strategy
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.
- 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
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).(...)Is there some parameter in SOrderParameters() that tells which instrument to trade? This would be like using BarsOfData(2) only for an Order.
If you Google search `trademanager site:http://www.multicharts.com` you'll come across multiple TradeManager examples.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times