I am trying to achieve the following:
I have two Sim accounts which I am trying to back test before going live.
I will use one account to run my strategy and create orders which would include entry, exit, target, stop loss orders. And only entry and exit order will be sent to other account.
I am able to connect to different account using the following script
account1 = Account.All.FirstOrDefault(a => a.Name == AccountName);
account2 = Account.All.FirstOrDefault(a => a.Name == AccountName2);
....
My problems are few
1. When I back test via strategy analyzer I see the order goes to real-time data
2. I am using createOrder Method as I dont see how can I attach UnmanagedOrder to different account (an example would be appreciated if possible). But it seems CreateOrder is deprecated. I am creating OCO orders for my stop loss and profit target.
3. is it possible to backtest multiple accounts
Please let me know if you have any solution, I am asking the question after going through help manual and forum posts, but can't seems to find the answer I am looking for.
regards,
Avi007

Comment