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!
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!
Rename
QUOTE:No.
does C# code know which broker the order is going to
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.
It looks like I have to write a dummy broker.
Code gets to know which broker but does not set it?
Code gets to know which broker but does not set it?
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).
There's only one case that you can get the BrokerAccount from the Backtester object (see above).
Your Response
Post
Edit Post
Login is required