NexusFi: Find Your Edge


Home Menu

 





Basket Trading - Slow fills at the Open


Discussion in Platforms and Indicators

Updated
    1. trending_up 4,018 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 9 posts
    2. attach_file 1 attachments




 
Search this Thread

Basket Trading - Slow fills at the Open

  #1 (permalink)
 hughesfleming 
Sliema+Sliema/Malta
 
Experience: None
Platform: Multicharts, Proprietary
Broker: IB,IQFeed,Barcharts.com
Trading: Stocks,Futures
Posts: 40 since Mar 2014
Thanks Given: 87
Thanks Received: 20

I have been testing a strategy that executes a dollar neutral Long/Short Basket of S&P100 stocks. These are being submitted as pending market orders before the open using SMART routing. They are closed a couple of minutes ahead of the 4:00pm close and then re balanced for the next day.

What I am trying to understand better is why these orders are taking a relatively long time to fill (about 1:40). It seems like there are many small time gaps between the orders.

Closing the orders at the end of the day is the opposite. Almost no delay at all. Does anyone have any suggestions how I might get these orders filled closer to the opening price? It seems like TWS is sending one at a time, getting confirmation and then sending the next. This seems like quite an inefficient way of doing things. Is there another way to set this up that works better?

regards,

Alex

Attached Thumbnails
Click image for larger version

Name:	Trades 15072016B.jpg
Views:	237
Size:	275.4 KB
ID:	212340  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
casacup
Rome, Italy
 
Posts: 8 since Mar 2015
Thanks Given: 3
Thanks Received: 0

Hi there.

I'm new, so excuse me if the question is silly, and I'm sorry if I can't help you, but I'm looking forward to create dollar neutral play with the basket trader as well.

So far tho, if i put in the box the 2 symbols i want to long and short, it just put 100 shares on both sides, making that everything but neutral.

I have read i have to change the settings in that very page regarding the order being weighted in dollars, but nothing changes, so either it doesn't work or i'm doing something wrong.

Sorry if i went a bit off topic, but there aren't a lot of people talking about the basket trading feature of TWS. And thank you in advance

Oh, one thing: check if the type of order entry. Seems like, even if the exit is a market order, the entry is not that type of order.

Reply With Quote
  #3 (permalink)
 hughesfleming 
Sliema+Sliema/Malta
 
Experience: None
Platform: Multicharts, Proprietary
Broker: IB,IQFeed,Barcharts.com
Trading: Stocks,Futures
Posts: 40 since Mar 2014
Thanks Given: 87
Thanks Received: 20


Hi Casacup,

Setup one long basket and then one short basket. Where you see "Quantity 100%", click the drop down and select the dollar amount that you want for each basket. You will have to "Transmit" each basket separately before the open. Basket trader will then calculate the position size. You will have to have the same number of positions in each basket if you want a neutral position.

I have now moved to an automated strategy using Multicharts Portfolio Trader but Basket Trader worked well while I was using it. I did eventually "solve" my open delays by executing slightly after the open using regular market orders. Now it takes me about 10-20 seconds to get filled on 20-30 orders which is fine.


Alex

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
casacup
Rome, Italy
 
Posts: 8 since Mar 2015
Thanks Given: 3
Thanks Received: 0


hughesfleming View Post
Hi Casacup,

Setup one long basket and then one short basket. Where you see "Quantity 100%", click the drop down and select the dollar amount that you want for each basket. You will have to "Transmit" each basket separately before the open. Basket trader will then calculate the position size. You will have to have the same number of positions in each basket if you want a neutral position.

I have now moved to an automated strategy using Multicharts Portfolio Trader but Basket Trader worked well while I was using it. I did eventually "solve" my open delays by executing slightly after the open using regular market orders. Now it takes me about 10-20 seconds to get filled on 20-30 orders which is fine.


Alex

thank you so much for the answer. Seeing your answer, probably tws was "smart" enough to wait for the liquidity to come in and reduce the bid and ask spread before taking your orders. But that can also not be true.

Regarding what i posted: unfortunately i still see this
EDIT: I can't post links or images yes. Basically i put
- first contract of the basket trader: XLK, long
- second contract: XLY, short
- quantity: 10000 usd
- I flag the option "use per-contract quantity percentage
"In my mind", if i put as value XLK, XLY and 10000 usd I'm saying to the system "buy me 10g of xlk and sell 10g of xly". The order tho is showing the same amount of shares.
Also, if i try to transmit the order it says "Sum of the % column must be 100%".

Reply With Quote
  #5 (permalink)
 hughesfleming 
Sliema+Sliema/Malta
 
Experience: None
Platform: Multicharts, Proprietary
Broker: IB,IQFeed,Barcharts.com
Trading: Stocks,Futures
Posts: 40 since Mar 2014
Thanks Given: 87
Thanks Received: 20

Casacup,

Keep all your long orders in one basket and then create a second basket for your short orders. The system will show you the same quantities because the market is closed. Once you transmit the orders the sizes will calculate if the market is open. It was confusing for me as well at first. Try testing everything using the IB paper trader after the weekend.

Alex

Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
casacup
Rome, Italy
 
Posts: 8 since Mar 2015
Thanks Given: 3
Thanks Received: 0


hughesfleming View Post
Casacup,

Keep all your long orders in one basket and then create a second basket for your short orders. The system will show you the same quantities because the market is closed. Once you transmit the orders the sizes will calculate if the market is open. Try testing everything using the IB paper trader after the weekend.

Alex

Thanks so much. If this work is gonna be a gamechanger for me. I trade synthetic pairs intraday and i just quickly do the math in my head to enter and exit, and this is gonna make everything easier.
I'm still not sure what do you mean when you say "create 2 different baskets". But i can probably figure that out.

If it's ok, i'm gonna post here the result (or the failure) of the process next week. And seeing the volatility that is coming in it should be fun.

Reply With Quote
  #7 (permalink)
 hughesfleming 
Sliema+Sliema/Malta
 
Experience: None
Platform: Multicharts, Proprietary
Broker: IB,IQFeed,Barcharts.com
Trading: Stocks,Futures
Posts: 40 since Mar 2014
Thanks Given: 87
Thanks Received: 20

There is tab labeled "+" which you can use to add multiple baskets. You can then save different baskets once you have created them.

Best of luck,

Alex

Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
casacup
Rome, Italy
 
Posts: 8 since Mar 2015
Thanks Given: 3
Thanks Received: 0


hughesfleming View Post
There is tab labeled "+" which you can use to add multiple baskets. You can then save different baskets once you have created them.

Best of luck,

Alex

ohhhh so i have to place the orders in different tabs. Ok that was not trivial to understand (at least for me), thank you!

Reply With Quote
  #9 (permalink)
 hughesfleming 
Sliema+Sliema/Malta
 
Experience: None
Platform: Multicharts, Proprietary
Broker: IB,IQFeed,Barcharts.com
Trading: Stocks,Futures
Posts: 40 since Mar 2014
Thanks Given: 87
Thanks Received: 20

Yes! Now go and enjoy your weekend! I had the same problem in the beginning.

Alex

Started this thread Reply With Quote
  #10 (permalink)
andy654
Milan + Italy
 
Posts: 2 since May 2020
Thanks Given: 0
Thanks Received: 1



hughesfleming View Post
I have been testing a strategy that executes a dollar neutral Long/Short Basket of S&P100 stocks. These are being submitted as pending market orders before the open using SMART routing. They are closed a couple of minutes ahead of the 4:00pm close and then re balanced for the next day.

What I am trying to understand better is why these orders are taking a relatively long time to fill (about 1:40). It seems like there are many small time gaps between the orders.

Closing the orders at the end of the day is the opposite. Almost no delay at all. Does anyone have any suggestions how I might get these orders filled closer to the opening price? It seems like TWS is sending one at a time, getting confirmation and then sending the next. This seems like quite an inefficient way of doing things. Is there another way to set this up that works better?

regards,

Alex

You could try this free script to convert the screener results into basket order files. The TWS should be faster at placing the orders.
Even a daily strategy is quite manageable with this tool and It just requires a couple of clicks to create the strategy/file and to execute the orders.
https://basketorderbuilder.wordpress.com/

Reply With Quote
Thanked by:




Last Updated on May 3, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts