News for hackers. Stuff that matters.
Re:Algorithmic Trading: A Practitioner’s Guide by andrewstuart on Monday February 13, 2023 @01:41AM (#34770810)
Anyone here making real money from algo trading?

I'm talking about people who write their own software rather than working for a company that does it professionally.

Re:Algorithmic Trading: A Practitioner’s Guide by Lapsa on Monday February 13, 2023 @01:47AM (#34770837)
Managed to stay even for 3 months. Arcane stuff is what I got but I find it sensible.
Re:Algorithmic Trading: A Practitioner’s Guide by smdz on Monday February 13, 2023 @02:32AM (#34771054)
It works, but do not expect huge returns.

I have worked on multiple strategies. - Strategies using technical indicators do work, but you have to reasonable. If you find these giving higher than expected returns, or too many consecutive wins - take the money. Stop live trading and continue dummy trading - eventually there is a point where you can start live trading again. The thresholds will be determined from backtests.

- Statistical strategies work for swing trading. However, these are very difficult to figure out. Need a lot of data (for backtesting). These work consistently over a longer period and might look loss making over a small period.

- Scalping within 5-10 minutes works pretty consistently, signals based on options data.

- Understand and realise the law of large numbers, and use that to your advantage.

- Give importance to understanding the concept of Time. There is a whole lot of weird and scammy pseudo-science around it. Therefore do not blindly rely on one theory.

Re:Algorithmic Trading: A Practitioner’s Guide by hungryforcodes on Monday February 13, 2023 @03:38AM (#34771405)
I do similar stuff and confirm most of the above. It matches my experiences.

The only other thing I'd say is that if you're in a bull market you may have easy wins. Then after -- when the market turns against you -- these will evaporate.

So long term you have to ask yourself if you are REALLY beating the market. If you'd bought Amazon or Microsoft instead, over 20 years you'd probably be far ahead.

Re:Algorithmic Trading: A Practitioner’s Guide by beagle3 on Monday February 13, 2023 @04:24AM (#34771625)
> If you'd bought Amazon or Microsoft instead, over 20 years you'd probably be far ahead.

And if you'd bought pets.com, or webvan, you'd be far behind. Survivor bias at work.

Re:Algorithmic Trading: A Practitioner’s Guide by hungryforcodes on Monday February 13, 2023 @06:17AM (#34772248)
True, but that's the nature of investing. If you don't like risk, use an RRSP I guess.
Re:Algorithmic Trading: A Practitioner’s Guide by areyousure on Monday February 13, 2023 @08:00AM (#34772904)
In case anyone is curious, it seems "RRSP" stands for "registered retirement savings plan", a type of financial account specific to Canada.

https://en.wikipedia.org/wiki/Registered_retirement_savings_...

Re:Algorithmic Trading: A Practitioner’s Guide by reisse on Monday February 13, 2023 @05:43AM (#34772054)
> The only other thing I'd say is that if you're in a bull market you may have easy wins. Then after -- when the market turns against you -- these will evaporate.

If your algotrading profits depend on market being bull or bear, you're doing it wrong. Volatility matters, not the direction.

Re:Algorithmic Trading: A Practitioner’s Guide by hungryforcodes on Monday February 13, 2023 @06:06AM (#34772191)
Please line up with all the other cranky people to tell r/algotrading -- I'm sure they are interested.

Mine work in either market. But I trade on the millisecond lines to avoid market bias. And yes volatility is key. As if confirmation of this approach I see Binance has just recently introduced a 1s chart (effectively 1000ms).

However most retail algo traders using indicators use larger time frames that are more susceptible to market trendiness.

Re:Algorithmic Trading: A Practitioner’s Guide by jvanderbot on Monday February 13, 2023 @08:58AM (#34773403)
Not that I have liquidity, time, or ability to get into this, but how would one individual get access to ms trade times and data?
Re:Algorithmic Trading: A Practitioner’s Guide by ikrenji on Monday February 13, 2023 @11:12AM (#34775381)
easy - you pay for it
Re:Algorithmic Trading: A Practitioner’s Guide by hungryforcodes on Monday February 13, 2023 @11:34AM (#34775752)
No, Binance and other similar exchanges give it away for free. Just call their API ever 1000ms. TradFi is a bit behind on this I think.
Re:Algorithmic Trading: A Practitioner’s Guide by willtemperley on Monday February 13, 2023 @07:57PM (#34783623)
Most crypto exchanges provide free websocket endpoints with millisecond latency for trade and order book data
Re:Algorithmic Trading: A Practitioner’s Guide by dachryn on Monday February 13, 2023 @06:55AM (#34772469)
I dabbled in this myself, and never managed to beat a classic index tracker.

So yes, I made a 3-5% profit over roughly 18 months, but it took a lot of time, stress, and in the end I ended up with less money.

Is your experience the same?

Re:Algorithmic Trading: A Practitioner’s Guide by boshalfoshal on Monday February 13, 2023 @11:57AM (#34776174)
Not to mention more taxes if you are buying and selling a lot. As an individual, I would probably just do discretionary stock picks and buy & hold fundamental analysis. After working at an HFT firm, I've more or less realized that institutional level trading (or things that try to emulate it at the retail level) are pretty difficult for little return. It would be a fun side project, but as a way of getting money, not so sure...
Re:Algorithmic Trading: A Practitioner’s Guide by LatteLazy on Monday February 13, 2023 @03:04AM (#34771215)
A colleague of mine does doing spread trading around commodities. He has 2 investors who put the money up, so I think you need a decent bit of leverage to actually cover fees and produce a return...
Re:Algorithmic Trading: A Practitioner’s Guide by Kranar on Monday February 13, 2023 @03:14AM (#34771269)
I started off doing it on my own back in 2008 with nothing more than an Interactive Brokers account. Then I went all in and started a company to do it professionally around 2012.

As far as strategies go, I've said it here before, but all my strategies are quite simple and straight forward. The difficulty is almost always the execution. Almost all of my strategies are arbitrage or market making, and some of them trade off of events, like earnings, interest rate announcements, the weekly petroleum status report, and things you'd find on an economic calendar.

None of my strategies are speculative, that is I have no idea what company will perform well over a long period of time and in fact in many cases I don't even know what the company I'm trading even does. I also don't make use of any so called technical indicators, like relative strength, or fibonacci this/fibonacci that.

For the vast majority of my activity, my algos only enter into a trade if it's guaranteed to make money.

To give a vague idea of what the process looks like, every strategy starts from the premise that the market is perfectly efficient and there is no opportunity to make money. We then construct a model of what a perfectly efficient market should look like. We then backtest this model to determine whether the market is actually perfectly efficient. In most cases it will turn out to be either very close to efficient, or inefficient but in a way that cannot be profited from after taking into account fees, latency, and other factors. But sometimes you find areas where the model predicts certain behavior and the backtesting shows that the real world doesn't follow that model. In that case we then proceed to investigate very carefully what is going on. Did we make a faulty assumption? Is our model not seeing the whole picture so that there are factors we did not take into account? This happens A LOT and in fact we are very skeptical when our backtesting deviates from our model. But if after scrutiny we find no reason to doubt out model, then go from backtesting to running it in a simulator, and then from simulator to running it live on a very small scale, and then over time increasing the scale.

Our backtesting and simulating is incredibly sophisticated and precise. Almost all publicly available backtesters just look at trade activity or very low resolution data, and never accounts for things like market impact. Our backtester takes into account individual orders and simulates the entire order book, taking into account where our order would be placed within the order book. We also simulate potential market impact as well, which requires us to run simulations in parallel with different potential market impacts so we can see what the worst case scenarios are and there's a host of other factors a good simulator and backtester will take into account.

Re:Algorithmic Trading: A Practitioner’s Guide by tdullien on Monday February 13, 2023 @05:58AM (#34772140)
As someone dabbling with the topic, I would love to chat with someone that made the step to run your own firm. Are there any good groups to meet others? Would you be up for a Videochat coffee?
Re:Algorithmic Trading: A Practitioner’s Guide by Kranar on Monday February 13, 2023 @02:01PM (#34778442)
There are good groups but they tend to be people who are already deeply involved in the field. The vast majority of what you find, including discussions about this on HN, are complete trash to be quite blunt and it's very demoralizing.
Re:Algorithmic Trading: A Practitioner’s Guide by tdullien on Thursday February 16, 2023 @05:47AM (#34817132)
I had the same impression g. Any suggestion on where to look?
Re:Algorithmic Trading: A Practitioner’s Guide by valdiorn on Monday February 13, 2023 @06:00AM (#34772145)
You're way, way better off finding a small outfit of motivated people to join if you want to work in this field.

Success rate for newly formed hedge funds is probably something like 50% over a 5 year horizon. For solo traders, it's probably closer to 1%.

There is WAY too much stuff you need to be on top of, if you want to be successful, than a single person can manage. It's about as feasible as starting a one man (coal) mining operation, where you must dig the tunnel, extract the coal, process it, sell it, manage the business operation and retain your sanity. You need at least a handful of people to be effective, all with different specialties.

...not to mention that if you're successful as a solo trader, you could be making 10x more with proper financial backing. If your strategy is returning 25% annually on a personal 1 mil investment, there's a good chance it'll still be returning >20% on a 10 mil investment (once you get to 100 mil or into the billions, your returns start to diminish due to market impact). Find a good backer, they'll literally give you money and a support team for a piece of the profit.

Re:Algorithmic Trading: A Practitioner’s Guide by pxmpxm on Monday February 13, 2023 @08:07PM (#34783698)
> Anyone here making real money from algo trading?

No, citadel securities just had a record year internalizing retail flow.

Re:Algorithmic Trading: A Practitioner’s Guide by Shocka1 on Tuesday February 14, 2023 @10:55AM (#34791160)
I've been attempting my own strategies for around four years now, after being inspired by a data mining Master's course I was taking. It has been a long and hard road for me, and I have mostly been trying to find correlations up into this year. As a one man show with a wife and kids, my project time starts at 10pm and sometimes goes until 3 to 4am. Then I wake up at 7 and take the kids to school and work my day job. I can usually do this two or three times a week, but lately I've been going to bed early as it's been wearing me out. I've had so many 4am nights that it's probably been a bit detrimental to my health at this point.

I'm not doing any order book or HFT stuff. It's mostly mean reversion < 15 minute trades. I have a considerable amount of options trading experience and that's what my main strategy revolves around. I don't have a killer strategy that some of these algorithmic firms are capable of, but the current one is promising. I also have a fairly rudimentary form of backtesting, which is a Jupyter Notebook crunching data I've collected over the years. I use some ML python libraries as a bonus, but I haven't created any strong enough attributes yet to achieve a high amount of predictive accuracy in that sense. My strategies mostly revolve around simple statistics.

My stack is a Linux VM with MySQL, running a suite of python scripts that collect data in real time and make the automated trades through TD Ameritrade's API.

By the way, I wouldn't consider myself smart or gifted - my strength relies solely on my determination. If you were to ask me if it's worth it, I would say "mostly." At the very least I've come away with a much higher understanding of the equity/option markets, and I know much more about MySQL, Python and data mining. At this point though I'd take a job with an algorithmic firm in a heartbeat.