I currently have a ninja multibroker license and connect to Zenfire first for the datafeed then IB as the execution broker then TD Ameritrade as another broker.
I'm calling up ATM strategies in a main strategy and executing through IB but want more flexibility:
1. Issue 1
I have numerous ATM strategies that get called in a strategy. The first issue I notice is when I log in the account default in the ATM strategies are the AMP/Zenfire one. I want it to default to the IB account. Because it defaults to AMP/Zenfire I'm having to changing them once I log in. How do I make it so they default to say the second connection?
2. Issue 2
What I want to do is in the strategy tell it which broker to use. Some futures I will use AMP, some I will use IB, some stocks I will use IB and some stocks I will use TD. So I'd like something like:
if (Instrument.MasterInstrument.Name == "CL")
execute through AMP
{AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Stop, lineEntryone, lineEntryone,TimeInForce.Gtc, orderId1, "twotargets", atmStrategyId1);}
if (Instrument.MasterInstrument.Name == "AAPL")
execute through IB
{AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Stop, lineEntryone, lineEntryone,TimeInForce.Gtc, orderId1, "twotargets", atmStrategyId1);}
How could I do this?
Thanks in advance
DJ
Comment