- ago
Hi,
In my WL6 implementation I had a trader C# application that worked with a WL6 strategy. This code was able to place either real orders with TDA or dummy orders. In case of dummy orders code computed gain or loss based on option quotes. It was a filter basically.

I am wondering if this is possible with WL8?
In other words does C# code know which broker the order is going to and thus choose?
It appears that the current choice is via the Order Manager. But this is manual.
My backup is to create a C# dummy broker that computes potential gain or loss.
Thanks!
0
114
Solved
3 Replies

Reply

Bookmark

Sort
Cone8
 ( 4.98% )
- ago
#1
QUOTE:
does C# code know which broker the order is going to
No.
You select the Broker Account destination in the Account control next to the Position Sizing control in all trading tools (or on the Signals page when using the Strategy Window) .

However, in the single case that you're using the "Live Positions" Trading Preference, you can get the BrokerAccount in the Strategy code when operating in the Strategy Monitor or Streaming Chart (only) using Backtester.LiveAccount.
0
- ago
#2
It looks like I have to write a dummy broker.
Code gets to know which broker but does not set it?
0
Cone8
 ( 4.98% )
- ago
#3
The code doesn't "know" and cannot assign it.
There's only one case that you can get the BrokerAccount from the Backtester object (see above).
0
Best Answer

Reply

Bookmark

Sort