- ago
https://developer.tdameritrade.com/content/place-order-samples

Please add OCO orders for TD Ameritrade.

My WL6/Fidelity workflow for closing orders:

1) Update data
2) Get new signals. Strategy kept settings. Data was all updated.
3) Sort by name, then by type with sell on top. Name remained sorted. Stop/Limit always in the same order. It no longer does so orders are all out of order.
4) Open Orders window and see which trades actually executed and how many shares in case there was a partial fill.
5) Highlight the orders for the stock and update shares if a partial fill. Either a single order - still works. Or a conditional OCO Limit/Stop. For these I'd highlight both orders and right-click place. This doesn't work in WL7.
6) Have Active Trader open to make sure all orders place properly.

Time to do entire thing with up to 30 stocks: 3-5 minutes. It was fast and efficient.

My WL7/TD Ameritrade workflow:
1) Update data - hope it makes it to the strategy. If not do the historical data tab clear thingy since this doesn't always happen automatically.
2) Get new signals. Strategy sometimes keeps settings. If I try to use the workspace I lose the settings that were non-workspace and even the code for the strategy may be messed up if I tried something. Pray that nothing has changed that I miss and that data is correct.
3) Sort sell signals on top. Check REALLY CAREFULLY that I find All orders for a given stock given the random order. Sometimes there are 30-60 signals to sort through. Stop Losses are not always above or below Limits. The order of those is random too.
4) Open ThinkOrSwim since OCO orders are hard to find on the TDA website. Navigate the crappy interface and figure out what orders executed since the Orders in WL7 erase with a close.
5) Send single orders with a place order. Select every stock with an OCO order and MANUALLY enter in every OCO order and MAKE SURE prices are correct and that limit is on top since that's how it is in ThinkOrSwim.
6) Double check all the orders.

Time for 3 stocks today: 20 minutes.

I can't even imagine a busy day with 20 stocks.

Thanks for any help you can give when you have time. I may try one or 2 more trades but for now I think I'm done. Maybe I'll try to convert to a strategy monitor strategy and see if that can sell things but that's now a much bigger project that I'm not even sure I understand given that the buy signals are currently done in the quote window but the sell would be with the monitor. Ugh!
5
1,594
12 Replies

Reply

Bookmark

Sort
- ago
#1
QUOTE:
1) Update data - hope it makes it to the strategy. If not do the historical data tab clear thingy since this doesn't always happen automatically.


Currently, the Scheduled Data Update feature works if you leave WL7 running with Data Manager open. If either of the conditions isn't met (e.g. Data Manager is closed), scheduled data update cannot trigger the automatic update at the time when you set it e.g. at night. While it's off topic to find this user story here in "TDA Conditional orders" thread, here's linked feature request:

https://www.wealth-lab.com/Discussion/Support-Scheduled-Tasks-for-Auto-Update-5955
0
- ago
#2
Hi,

Do conditional orders on TD Ameritrade work yet? I know they allow them based on the documentation but have no idea how to update the WL extension to include them:

https://developer.tdameritrade.com/content/place-order-samples

CODE:
{ "orderStrategyType": "OCO", "childOrderStrategies": [ { "orderType": "LIMIT", "session": "NORMAL", "price": "45.97", "duration": "DAY", "orderStrategyType": "SINGLE", "orderLegCollection": [ { "instruction": "SELL", "quantity": 2, "instrument": { "symbol": "XYZ", "assetType": "EQUITY" } } ] }, { "orderType": "STOP_LIMIT", "session": "NORMAL", "price": "37.00", "stopPrice": "37.03", "duration": "DAY", "orderStrategyType": "SINGLE", "orderLegCollection": [ { "instruction": "SELL", "quantity": 2, "instrument": { "symbol": "XYZ", "assetType": "EQUITY" } } ] } ] }


They even allow other conditional type trades which would be nice to have access to.

I've gotten too busy with work and didn't have a chance to update my strategy to sell in real time and really want to start running it. The easiest thing that would allow me to do so would be to use conditional order placement like I did with Fidelity (highlight to 2 sides of a OCO and press place).

Thanks
0
- ago
#3
QUOTE:
Do conditional orders on TD Ameritrade work yet?

No. This is a feature request that is not being worked on. You can see requests currently marked as Active in the wishlist:
https://www.wealth-lab.com/wishlist

QUOTE:
but have no idea how to update the WL extension to include them:

Wealth-Lab's About dialog (Help menu) indicates currently installed version for all extensions and whether an upgrade is available. Alternatively you can check the Change Log:
https://www.wealth-lab.com/extension/detail/TDAmeritrade#changeLog
0
Glitch8
 ( 12.10% )
- ago
#4
To update an Extension, simply download from the Extensions page and run the install.
0
- ago
#5
Thanks. I have the most up to date extensions but I guess the conditional orders still aren't implemented.

Is there any way I can help implement them?

If there is, maybe I could do a Robinhood extension too since it's the same idea.
0
- ago
#6
QUOTE:
Is there any way I can help implement them?

You can upvote this feature request from the wishlist page:
https://www.wealth-lab.com/wishlist
0
Glitch8
 ( 12.10% )
- ago
#7
We're going to target Build 17 for general O-C-O order types for WL7!
1
arflouro828
 ( 7.31% )
- ago
#8
Will conditional orders sell after "N" bars too?

Also, do any other brokers (Alpaca, IQFEED, or interactive brokers) have OCO orders already built into them or will those need seperate OCO feature requests too?
0
Glitch8
 ( 12.10% )
- ago
#9
They work no different than any other order in terms of N Bars. Alpaca, IB, and TD all support native OCO, and brokers that don’t will leverage WL7’s software based emulated OCO.
0
arflouro828
 ( 7.31% )
- ago
#10
The reason I ask is the following: if the broker does not accept them internally, then a dynamic or changing dataset would not institute the sell order as that particular stock may not be in the data set the next day if it's a multi day strategy if we needed to utilize WL7's emulated oco process. Would that be a correct statement?
0
Cone8
 ( 6.32% )
- ago
#11
One thing's for sure - the Strategy must have data to execute. If that symbol's data is not present, then it there's no way to create a position for it or exit a position that was previously created. If you're changing your list frequently, then your logic should include the symbols that you own and intend to exit.

With respect to live positions, Wealth-Lab's upcoming Portfolio Sync options will cause Signals to automatically match the size of a brokerage position, but the Signal must be generated by executing the Strategy on the symbol for which you hold a position.

0
- ago
#12
Awesome! Thank you!
0

Reply

Bookmark

Sort