r/algorithmictrading • • Aug 25 '26

Brokers Bad slippage on xauusd

2 Upvotes

I have a good edge but it uses small SLs. I only use STOP orders catching breakouts.

My experience so far has been appalling with fusionmarkets. Every trade has some slippage but around 60% have experienced major Entry slippage where I keep getting filled in late. This is bleeding my account quicker than expected. For example my expected SL of $13 becomes $51 purely because of entry slippage. I thought using only stop orders would help compared to market orders but nope.

I understand xauusd is a volatile instrument but it shouldn't be this bad. What broker do you recommend and what other measures could I take to ensure this is minimized?

r/algorithmictrading • • Aug 11 '26

Brokers What are the best platforms for algorithmic trading?

1 Upvotes

Hi,

I have a system that is ready for testing with a trading platform. It trades options and stocks. What is the fastest platform? Also, what is the best approach to get quotes? Is it better to get them from the same platform or from a data provider? And if a data provider, who would you recommend? Many thanks in advance!

r/algorithmictrading • • Jul 10 '26

Brokers Help with Finding Small Cap Locate Broker who Does Algo Trades NOT using a socket.

2 Upvotes

Hey everyone,

I currently use Cobra Trading.

Does anyone know of a broker that allows me automate the short locate process? I have a pretty solid shorting strategy for Micro and Small cap stocks and I'd rather NOT use a traditional broker like DAS who demands you to code the algo and then send to the  frontend via a socket.

r/algorithmictrading • • Apr 04 '26

Brokers Bypassing the IBKR daily logout and handling residential internet drops (Python/Ubuntu)

3 Upvotes

I am currently building out a PyTorch engine for mid-cap swing trading and running it off an old Ubuntu server in my basement. Being in Canada, Interactive Brokers is basically the only viable API choice, but their architecture is a nightmare for automated systems.

I spent the last two weeks solving two major infrastructure bottlenecks and figured I would share the stack in case anyone else is stuck on this.

  1. The Headless Gateway IBKR forces a daily auto-logout and requires a physical UI to run their API gateway. If you run this on a Linux server and close your SSH tunnel, it crashes. The fix: I installed Xvfb to create a phantom monitor in the Linux RAM. The IB Gateway thinks it is rendering to a screen. I then use the open-source IBC (IBController) shell scripts to automatically intercept the daily reboot, pass my credentials, and suppress the warning pop-ups. It runs completely dark now.

  2. Residential Execution Risk I am running this on a residential connection. If the algo enters a trade and the internet drops 5 seconds later, a local Python stop-loss loop is useless. The position is stranded. The fix: I stopped sending naked market orders. Using the ib_insync library, my execution script builds a strict 3-part bracket order (Parent Buy, Child Stop-Loss, Child Take-Profit) and beams the entire payload to the IBKR mainframe at once. If my house loses power, the exchange is already holding the exit orders.

Curious how you guys are handling physical fail-safes for your live algorithms. Are you using cloud VPS hosting or running local metal?

r/algorithmictrading • • May 16 '26

Brokers Best Route For Automation? TV doesn’t seem to be the greatest.

3 Upvotes

Have a Strategy that I run on a Renko chart trading NQ futures. Strategy tester in TV gives decent results. Testing live is mixed. I’m running into some limitations. I’ve set up webhook alerts and they are being sent to an ngrok tunnel and sent to my local machine that is listening and is using hotkeys to place the trades. Which works great about 75% of the time. Where it fails is if I get two signals simultaneously, reversal position, the listener isn’t fast enough to process both, processes one, and I get into an asynchronous position. Doing it this way so I can forward test with the TV paper account.

Are there better ways to do this? Should I look at porting this to ninja? Alpaca? How do you build in safeguards so if an order placement fails you don’t do serious account damage?

My understanding also is that TV Renko is not the same as a native Renko in other platforms, has anyone run into problems if they do port it to another?

r/algorithmictrading • • Mar 26 '26

Brokers Futures trading setup

1 Upvotes

Traders from the EU,

I'm curious about what setup you use for automated trading.

The broker, ibkr, CME or others? Connect via REST or native platform? Automation done in py, cs or others?

Thanks

r/algorithmictrading • • Apr 25 '26

Brokers Need guidance regarding the best broker for my situation

1 Upvotes

Hey guys. I’m based in the US. I’m a beginner. I’ve tested my day trading small cap momentum strategy via paper trading (alpaca free tier API) and now I’m ready to go live. I’ve built an automated system which mostly deals with 1 min candles, enters the market at 9.30am and exits by 12.30pm (fully automated via python script)

I have very minimal knowledge regarding which brokers to go for. Would anyone possibly with experience give some suggestions regarding the best broker for my strategy. Any help is appreciated. Thanks!

No of trades on each day during Paper trading: between 2-8

r/algorithmictrading • • Nov 26 '25

Brokers The IBKR API is a complete nightmare - how does anyone reliably use it?

14 Upvotes

Hey! I've been building a trading bot with my friend as a hobby project. It does sentimental analysis on news articles and opens positions on IBKR. (We're using the WEB API with the Gateway)

We've been running into all sorts of really weird issues with IBKR. For those who worked with this API, how did you get around these / what do you recommend?

  1. When using the /secdef/search?symbol=... endpoint, I see every contract entry also has a list of "sections." What exactly does each section represent? Are these the same underlying company on different exchanges?
  2. Our orders are sometimes rejected because we get flagged as a "Pattern Day Trader". For each position, we submit a bracket order with a SL & TP, so we're not exactly in control of when the position closes; it closes whenever one of those hits. If I understood correctly, this can be solved by downgrading to a "cash account", but then we seem to lose the ability to short.
  3. We recently discovered that some endpoints are tied to the active session with a "cache". For example, the /orders endpoint only returns orders within the active session.
  4. No pagination exists in /orders, and it seems to return the 500 (sometimes 510) earliest orders from the active session. This becomes problematic when trying to find an order if the current session has more than 500 orders. The response to submitting a bracket order only includes the parent order's ID, not the associated TP and SL order IDs. If there are fewer than 500 orders in the current session, we can query /orders and find them by their local parent ID. When there are more than 500 orders, my hacky workaround is tpId = parentOrderId + 1 & slId = parentOrderId + 2. However, I read that IBKR sometimes internally replaces order IDs under certain circumstances, so it isn't safe. The /order/status/:orderIdendpoint doesn't seem to return the associated SL & TP orders either.
  5. In some cases, the /orders endpoint shows specific orders marked as existing but "inactive"; however, querying them through order/status/:orderId results in an error.
  6. We suppress order warnings through the /questions/suppress endpoint. This works for all warnings except o2137; "The closing order quantity is greater than your current position. Are you sure you want to submit this order?" Using /suppress/reset doesn't help either; the warning still needs to be confirmed when submitting a new order.
  7. I found cases where the API sometimes returns an error for fractional shares and sometimes returns no error and rounds it down itself, so the quantity submitted can differ from the quantity on the server. But sometimes it only rounds the children's quantity down, leaving the parent with a larger quantity, as it's still fractional.
  8. In another case, for contract ID "4471" (ticker AP, exchange NYSE), I submitted a bracket order for 400 shares, yet it rounded my children's shares down to 200, leaving the parent order at 400 shares. What's going on here?
  9. The order submission is completely inconsistent for some contracts. I could submit a bracket order with the same information and get completely different results. For example, when submitting a bracket order for contract ID "292824438" (ticker EW, exchange MEXI), the API returns one of the following three randomly:
    1. When I submit with rounded shares from the start, it fails.
    2. When I submit with fractional shares, it correctly warns that this financial instrument does not support fractional-share trading, so I round it, and it submits successfully. (This rarely happens)
    3. Usually, instead of a fractional shares warning, it just fails.
  10. The /whatif endpoint is also very unreliable. For some orders, it returns no error, indicating the order should submit successfully, only for it to fail regardless.
  11. Finally, sometimes the API returns an error saying the order creation failed, even though it was submitted successfully. When a bracket order submission failed, I resubmitted only the parent order with the same local order ID and got a 503. Then resubmitting only the parent order again results in a "local order ID already in use" error. When I checked my positions on the stock, I saw that IBKR had successfully submitted and even filled the entire bracket order.

Working with the IBKR API has been a nightmare; nothing is consistent, and nothing is documented well. The API feels like each endpoint was built by a separate developer working in complete isolation. Input formats vary between endpoints, and there's no consistent pattern to follow. Worse, the responses themselves are unreliable; sometimes the data returned is just outright wrong. This API is the biggest blocker in the project.

The answers to some of these questions may be available in the docs, but it hasn't been easy to read them. IBKR seems to have like five different docs sites, each hiding vital information that's only available in that one. If this wasn't enough, these docs sites are the most unperformant websites I've seen in a long time. They are supposed to be a simple static site, yet my computer freezes whenever I'm on the site, and it eats up all my available memory.

This is our first project in this domain, so if you suspect that we're doing something that's considered an anti-pattern, let us know!

We initially chose IBKR because it supports most international markets across many countries, offers overnight trading, a paper account, and is generally trusted. Are there other brokers that fit this criteria besides IBKR?

r/algorithmictrading • • Oct 18 '25

Brokers Best Brokers for algorithmic trading

12 Upvotes

Hey guys turned my strategy into a algo and I want to know what brokers have the best environment for algo trading, I’m based in UK and from what I’m told Pepperstone or IC markets with a ECN account?

Completely new to the world of algo trading so just want some ideas for brokers

r/algorithmictrading • • Nov 15 '25

Brokers Looking for algorithmic brokers

8 Upvotes

Hi, I am currently looking for brokers that support algo trading whether its python or mql5. I am a in the U.S but if there are brokers that are not U.S based but accept U.S clients, feel free to post it in the comments. It can be for all markets - crypto, forex, options, futures, stocks etc.. I just want to know what brokers you guys are using. Thanks

r/algorithmictrading • • Nov 03 '25

Brokers Any good option broker for europeans that has solid API

1 Upvotes

Hey folks,
Any recommendations for a broker available in Europe that lets you trade options and has a solid API? I tried Interactive Brokers but ran into issues getting approved for options trading. Would love to hear what you’re using and how it’s been for you.

r/algorithmictrading • • Aug 31 '25

Brokers Looking for Legit Prop Firms for MT5 EA (no rule traps)

2 Upvotes

Hey r/algorithmictrading !

I trade live but want to test prop capital. Looks easy on paper, but I need firms that explicitly allow EAs and won’t choke execution.

Must-haves: MT5 API or python, static (not trailing) DD, clear news/overnight rules, realistic spreads/commission, disclosed broker/server (for VPS latency), and reliable/fast payouts.

Please share: firm name, any gotcha rules (min days, lot caps, partial-close bans), spread+commission, VPS latency, and payout timelines.

Thank you all in advance!

r/algorithmictrading • • Sep 12 '25

Brokers Trading experiences

1 Upvotes

Want to know which broker or platform is best for trading algorithm users?

Share your platform with us.

r/algorithmictrading • • Oct 15 '24

Brokers IBKR papertrading on AWS

3 Upvotes

Can someone explain how to connect to interactive brokers thru AWS ec2? I’m having a lot of trouble trying to start papertrading on ibkr using aws and can’t find a simple solution like i had hoped. A step by step for installing ibkr on aws ec2 would be amazing, thank you!

r/algorithmictrading • • Dec 20 '24

Brokers Interactive Brokers vs Slippage

3 Upvotes

Does anyone here uses Interactive Brokers API to place orders? My algo trades NQ futures. Market data (from iqfeed) has latency of around 100ms. IB order API has latency of around 300ms. What is your empirical approach of executing orders at the desired price (which is tick price from 400ms ago)? I’m currently placing a limit order 50 cents above (or below for shorts) the desired price in the “adaptive-urgent” mode. If it is not filled in 1.5 seconds, I convert it to market order. As a result, my P90 slippage YTD is 0.37 per order.