Finding Intraday Trading Edges and Avoiding Backtest Overfitting
Summary
The discussion considers whether robust intraday strategies can exist despite noisy price movements. It explains that a random-walk simulation is not a reliable way to discover technical trading signals, while risk controls such as profit targets and stop losses can still change a strategy’s payoff profile. The main research warning is data snooping: testing many models or parameter sets can produce apparently strong results by chance. Separate confirmation data helps, though correlations between samples can weaken that safeguard.
The replies argue that intraday opportunities may arise during periods of market non-randomness and may depend on market structure or external flows. One cited example follows the direction of S&P 500 futures after a large daily move, attributing the pattern to leveraged ETF rebalancing; the document does not establish that it remains profitable today. Other comments emphasize transaction costs, slippage, leverage, and risk management. A technical caveat notes that ATR is recursive, so live feature values must preserve or reconstruct its prior state consistently with training. The discussion offers hypotheses and personal views rather than controlled evidence or a validated strategy.
Key ideas
- Testing many strategies can create impressive results through data snooping, so independent validation matters.
- Any validation split can still be weakened by dependence or correlation between samples.
- Intraday opportunities may occur when market flows or other conditions create temporary departures from randomness.
- Transaction costs and slippage can erase small predictive edges, while leverage magnifies both gains and losses.
- Recursive indicators such as ATR need consistent historical state when deployed.
Tags
Full text
# Is it really possible to create a robust algorithmic trading strategy for intraday trading? # Is it really possible to create a robust algorithmic trading strategy for intraday trading? I'm an engineer doing academic research for my master thesis in the area of quantitative finance, basically the purpose is to study the possibility to create an intraday-trading algorithm. I've tried a regression algorithm (SVR) to predict future prices without success and currently I'm using Boosted Decision Trees (BDT) for a classification problem (Long/Short/Out) where I would take advantage of a daily trend (place an order at the beginning of the day, sell at the end of the day), for example: - Long when BDT predicts Close > Open*(1+a) - Short when BDT predicts Close < Open*(1-a), where 'a' is an error gap; I'm using technical indicators: RSI, MFI, SMA, EMA, MACD, ATR, Bollinger, and linear combinations of them. I think I'm doing everything right, all the indicator values are normalized with the Open price, I'm using cross validated metrics and a grid search to look at different combination of parameters for both the technical indicators and Boosted Decision Trees. But until now it seems that, at least at the intraday level, the market is just a stochastic process! I have also read a few articles available online and found a couple of errors on them (using lagged data or indicator values, for example), which leads me to believe that most of the literature is just junk, I mean it's impossible if everyone that tries to create a trading algorithm that generates positive returns is successful, right?! I won't even talk about the ridiculous articles using technical analysis with the supports and resistances, I generated a Geometric Brownian Motion plot and I also see those hypothetical supports and resistances, but there is no rational behind them, just people's imagination of things that don't exist. What is your opinion on this subject? Do you have knowledge of a successful intraday trading algorithm? With what kind of average daily returns (0.01%,0.1%,1%)? ## Answer by Steinwolfe (score 11, accepted) https://quant.stackexchange.com/a/25183 Such a complex question... Geometric Brownian Motion (GBM) will not typically work to aid one finding strategies based on technicals, as the pursuit of the technical trader is to find market deviations from a random walk. However, some strategies, for example a "take profit/stop loss" strategy can work, (or at a minimum one can change the risk/reward profile) using GBM on assumptions of limited slippage (where stop loss is not effective due to jumps in price). This is due to the non-linearity of likelihoods vs risks/rewards. The typical problem of empirical findings vs real trading involve overfitting of data/models when deciding upon a strategy. And if a strategy is successful, how does one know it's because it's a good strategy or anecdotally worked subsequently? If one gave 10000 monkeys buy/sell buttons their results might approximate a normal distribution. If one took the top performing monkeys and gave them buy/sell buttons, some of those would perform better than others. Can one say anything about the top of the top performing monkeys? Similarly, if one tests enough strategies on a set of test data, some will work admirably. And if data is split into 2 sets? One to test strategies, and a strategy chosen, a second separate set of data for confirmation? Well, done enough, again some will perform better than others. These are examples of 'data snooping'. It typically proliferates - from articles online, even into literature - books and academic papers. So data rigorous data splicing is required, but this can present its own problems, including correlations of some attributes between data sets. In response to your question: Are successful intraday strategies possible to find? My belief is yes - based upon my experience working in investment banks, and my own research. Highly dependent upon market, and external factors are usually required to refine strategies to a point where they are profitable. There are a plethora of books and papers suggesting things such as momentum, sentiment, auto-correlation, mean-reversion, trending, and oh so many technicals. How can they work? Because in reality the market is not always random - there are periods of non-randomness. Sometimes these are tiny squeaks obscured by a concerto of noise (particularly short-term). But, if you can find these pockets of non-randomness, you can find successful strategies. If you don't believe me, then listen to the man from Renaissance, one of the most successful Hedge funds of all time: Jim Simons Interview link Note: I'm not suggesting they use "technicals" in the typical use of the word. They might, or not. I've no idea what they use, but I believe they use models based on more than just fundamentals. ## Answer by KarolisR (score 13) https://quant.stackexchange.com/a/25177 Here's my favorite example of an intraday strategy on S&P500 futures that at least used to work: Intraday Share Price Volatility and Leveraged ETF Rebalancing I pull it out whenever people start talking about market efficiency. The strategy is very simple: if S&P500 futures are up or down more than 2% on the day with two hours left until close, follow that direction until close. At first sight it looks like a random non-sense strategy, but if you read the paper you can clearly see that there are some very predictable Leveraged ETF rebalancing flows that move the market. I would say that it's definitely possible to find a profitable intraday trading strategy, but you have to be able to answer this question: "who is losing money on the other end?". You can see another entertaining example if you search for news on "Good Harbor Financial". ## Answer by Negative Zero (score 5) https://quant.stackexchange.com/a/31531 I have been through your confusion myself for the last five years. Until recently, my account started to get some consistent performance. - First, I started with Technicals, Spent $$$ on a automated trading platform. From there I created common strategies. The results is not promising. The strategy doesn't consists parameters and if one strategy works on one specific product, it probably won't work on the other product. The movement of the price seems so random. And my expectation for the strategy performance is high. (Nearly did I know I was so close.) I concluded all the failures due to simplicity of technicals. - I then moved onto next stage which tries to use complex model to predict price movement. The complex models includes using various machine learning techniques. That doesn't work well either. The prediction accuracy is not as high as I expected. - Then I thought I might need some quantitive finance knowledge to better understand the financial markets. I then studies stochastic calculus and various quantitive financial techniques. In the end, what quantitive finance tells me is that I should get the same return as the fixed-income. And the time series predication model doesn't perform any better than my machine learning techniques. - At this point, I considered giving up. Because each of above tasks takes tremendous effort and time. The most hurting part is that, after all these efforts, there is no rewards. - At some rare situation, I met with "this investment group" of people, they shed some lights that brings me to today's state. Market is mostly random but there are some non-randomness in it. And this non-randomness is your chance of making money. But it's buried under high randomness. The expectation of making money should not be high (you'll never get an ATM), but by careful control of risks and leverage, it's possible to make enough money that others can only be jealous about. Slippage and Transaction cost is your enemy. On average, you can only get so little after slippage and transactions cost. But for financial assets, there are leverage that the little can be huge. Leverage is a double blade sword. Risk is also increased under leverage. But the good thing about risk is that there are some established practice in both academia and industry that can help alleviate risk (but not completely remove). Finding a strategy is only part of your job. Finding a "good" strategy is hard, but finding a "working" strategy is not so difficult. The other part of your job is to reduce the risk using various methods. Then increase leverage to get more rewards even though you have a "mediocre" strategy. I hope this can shed some lights to people who are still struggling alone. ## Answer by SerAlejo (score 1) https://quant.stackexchange.com/a/44483 I know this question is quite old, but I just wanted to mention one small problem I noticed in the past about using ATR as a feature input. While other technical indicators like SMA or EMA can be exactly replicated for a given timeframe (as long the timeframe is longer than the timeperiod used for the corresponding indicator) the ATR (Average True Range) and NATR are based on all previous values. To be more precise its based on one previous value, but in a recursive way. Therefore you would have to either recalculate the ATR from the beginning of your timeframe each time (the same timeframe you have trained your model with) or save the ATR indicator together with your data and calculate all new ATR values based on the past ones you saved. Depending on how you build your SVR model that could be one reason why it failed. The bigger risk with this problem is it couldn't appear while modelling, because all indicators are calculated correctly in the training process, but could then appear later while deploying the model (like it did in my case). I'm writing this because I couldn't find any information on this problem in the past.
Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.