Skip to main content








FinRL tutorial: Deep reinforcement learning for trading
Learn how to build, compare, and track deep reinforcement learning (DRL) trading agents using FinRL and Weights & Biases in this step-by-step tutorial.
Last updated: April 7, 2026
Here is a question that sounds simple but turns out to be surprisingly hard: Can you teach an AI agent to trade stocks?
Not predict prices. Not classify market sentiment. Actually, trade: decide how many shares to buy or sell, manage a portfolio, handle transaction costs, and do all of this over hundreds of sequential decisions where each one changes what the next one looks like. That is a fundamentally different problem from most machine learning in finance, and it is the problem that deep reinforcement learning (DRL) was built to solve.
FinRL is an open-source library that makes this kind of experiment accessible. It handles the plumbing: pulling market data, building realistic trading simulators, and connecting them to state-of-the-art DRL algorithms, so you can focus on the interesting parts. In this article, we will explore what FinRL offers, why deep-reinforcement learning is a compelling alternative to supervised learning for trading, and then do something concrete: train three different DRL agents on Apple stock, track everything with Weights & Biases, and see which one makes the most money on data it has never seen.
The tutorial is fully reproducible. You can swap in a different stock, add more indicators, or try different algorithms. If you are new to financial reinforcement learning, this should save you a few weekends of setup. If you already have experience, the Weights & Biases integration should show you a cleaner way to track experiments.
Table of contents
Background: What is FinRL?Why deep reinforcement learning for quantitative trading?A few properties of financial markets make reinforcement learning particularly relevant:Key components of the FinRL ecosystemHow FinRL lowers the barrier to financial reinforcement learningHigh-performance DRL with FinRL-PodracerTutorial: Building a DRL trading strategy with FinRL and Weights & BiasesPrerequisitesStep 1: Download and prepare the dataStep 2: Feature engineeringStep 3: Train/test splitStep 4: Configure the trading environmentStep 5: Train three agents with W&B loggingStep 6: Backtest on unseen dataStep 7: Compare and analyze resultsExtending the tutorialPractical tips, limitations, and risk considerationsWhere FinRL fits in your quantitative trading toolbox
Note: This is not financial advice, and we are not claiming DRL will make you money. We will talk about the limitations honestly. But the results are genuinely interesting, and getting there is easier than you might expect.
💡
Background: What is FinRL?
Built and maintained by the AI4Finance-Foundation, FinRL is an open-source framework that handles data ingestion, environment design, agent training, and evaluation. You feed it market data, it wraps that data in a Gymnasium-compatible trading simulator, and you plug in any DRL algorithm from the Stable-Baselines3 library. The agent treats the market as an environment, its portfolio decisions as actions, and profit or loss as the reward signal. Then it learns by doing, thousands of simulated trading episodes at a time.

You can think of FinRL as a bridge between two worlds that rarely talk to each other: reinforcement learning research and quantitative finance practice. On one side, you have powerful DRL algorithms (PPO, A2C, DDPG, and others) that have learned to play Atari games, control robots, and beat humans at Go. On the other hand, you have financial markets: messy, non-stationary, and unforgiving. FinRL provides the wiring that connects them.
The project has over 13,000 GitHub stars and a large contributor community, which matters for a mundane but important reason: when you hit an error (and you will), someone has probably already solved it. The MIT license means you can use it commercially without restriction.
One clarification before we go further: FinRL is a research and engineering tool, not a plug-and-play trading bot. It will not connect to your brokerage out of the box. It is the layer between your data and your algorithm, the part that would otherwise take you weeks to build from scratch. But the natural question is: why would you want to use reinforcement learning for trading in the first place? What is wrong with the way most people do it?
Why deep reinforcement learning for quantitative trading?
The default approach to machine learning in finance is supervised learning. You collect historical data, label it (will the price go up or down?), train a model, and use the predictions to trade. This has produced real results. But there is a gap in the middle of the pipeline that supervised learning cannot fill.
Suppose your model predicts, with 60% confidence, that Apple will rise tomorrow. Great. How many shares should you buy? Should you sell your existing Microsoft position to free up cash? What if transaction costs eat into the profit? What if the price rises for three days and then crashes, and you need to decide when to exit? Supervised learning gave you a prediction. It said nothing about what to actually do with it.
This is where deep reinforcement learning changes the game. A DRL agent does not predict what will happen. It learns a policy: given the current state of the market and my portfolio, what action should I take? It learns this by interacting with a simulated trading environment over thousands of episodes, receiving rewards based on portfolio performance, and gradually identifying which decision sequences lead to the best outcomes. Position sizing, rebalancing, and transaction cost management are not afterthoughts. They are the things being learned.

A few properties of financial markets make reinforcement learning particularly relevant:
- Markets are not stable over time. Conditions change. A model trained during a strong bull run may break down during a crash or a sideways market. Reinforcement learning does not just predict prices; it learns a policy, meaning a set of rules for how to act under different conditions. That gives it a better chance of adjusting when the environment shifts, even though real adaptation remains difficult.
- Rewards are also delayed. In trading, you may place a position today and only know whether it was wise weeks later. Reinforcement learning is built to handle this kind of delayed feedback. It evaluates decisions based on long-term outcomes, not just immediate accuracy. Traditional supervised learning expects clear, immediate labels, which trading rarely provides.
- Transaction costs matter. Every trade incurs fees, slippage, or spread. A reinforcement learning agent can factor those costs directly into its reward function. If costs rise, it can learn to trade less. A simple price prediction model cannot naturally account for the cost of acting on its prediction.
- Trading is also sequential. Every action changes the portfolio. That new portfolio state determines what actions are possible next and how risky they are. Each step depends on the previous one. Reinforcement learning is designed for this kind of step-by-step decision process. Supervised learning treats each prediction as isolated, which does not reflect how real portfolios evolve over time.
Key components of the FinRL ecosystem
FinRL is not a single library. It is a small ecosystem of projects, each targeting a different stage of the journey from research idea to live trading. Here is the map.
- FinRL (core library): The main library, MIT-licensed, hosted on GitHub under AI4Finance-Foundation/FinRL. This is what you pip install. It provides data downloaders (Yahoo Finance, Alpaca, WRDS), Gymnasium-compatible trading environments, and DRL agent wrappers around Stable-Baselines3 algorithms. If you are getting started, this is the only component you need.
- FinRL-Trading: An Apache-2.0-licensed platform that extends the core library into a full trading stack: backtesting pipelines, paper trading, and hooks for live execution through brokerages like Alpaca. This is what you graduate to once your experiments start looking promising and you want to test against real market conditions.
- FinRL-Podracer: A framework for high-performance, scalable DRL training. The short version: it lets you train agents dramatically faster by distributing work across GPU clusters. We will cover the details below, but this is for teams running experiments at scale, not for laptop prototyping.
For this article and the following tutorial, we use only the core FinRL library. Everything runs on a single machine, no GPU required. But before we get to the hands-on part, let us look at what makes FinRL worth using in the first place.
How FinRL lowers the barrier to financial reinforcement learning
Anyone who has tried to build a trading RL environment from scratch knows the pain. You need to handle data downloading, cleaning, and alignment. You need to define observation and action spaces that make sense for finance. You need to implement realistic transaction costs, position limits, and portfolio tracking. And all of this comes before you even start thinking about which algorithm to use. It is entirely possible to spend weeks on plumbing and never get to the interesting part.
FinRL reduces most of the setup work into a small set of reusable components:
- Pre-built market environments, such as StockTradingEnv, already handle portfolio accounting, transaction costs, and state construction. You provide a DataFrame and a few configuration settings, and the environment is ready to run. There is no need to build the trading logic from scratch.
- Algorithm wrappers through the DRLAgent class let you switch between A2C, PPO, DDPG, SAC, and TD3 by changing a single parameter. You can test multiple reinforcement learning approaches without rewriting your pipeline or diving into each algorithm’s internal mechanics.
- Data pipelines are included for downloading market data from Yahoo Finance, Alpaca, and WRDS. The FeatureEngineer class can compute common technical indicators such as MACD, RSI, and Bollinger Bands in a single step, reducing manual preprocessing.
- Curated examples come with structured folders, Jupyter notebooks, and guided tutorials. These walk through the entire process from data preparation to model training and backtesting, making it easier to move from experimentation to a working system.
The net effect is that you can go from zero to a trained trading agent in about 50 lines of configuration code. That is not an exaggeration. We will prove it shortly.
High-performance DRL with FinRL-Podracer
For most readers, the core FinRL library on a laptop is more than enough. But what happens when you need to train agents on the NASDAQ-100 with ten years of minute-level data? Or run hundreds of hyperparameter configurations? Training speed becomes the bottleneck, and that is the problem FinRL-Podracer was built to solve.
- Generational evolution is used instead of training a single agent. A population of agents is trained simultaneously. The strongest performers are kept, while weaker ones are modified and retrained in the next generation. Over time, this process improves overall performance.
- Ensemble strategies combine multiple agents with different architectures or hyperparameters into a single trading system. Rather than relying on a single model, the system aggregates several perspectives, thereby reducing the impact of any single model’s weaknesses.
- GPU cloud scheduling distributes training across GPU clusters. A scheduler assigns workloads and balances resources automatically, allowing large numbers of agents to train efficiently without manual coordination.
The reported results are strong. Annual returns improve by 12 to 35 percent, the Sharpe ratio increases by 0.1 to 0.6, and training runs three to seven times faster than standard reinforcement learning baselines. On a large GPU cluster, years of minute-level data can be processed in minutes rather than hours.
Most people will not need Podracer immediately. It is a scaling solution. What matters is knowing that the upper limit is much higher than what a single laptop can handle. When small experiments stop being enough, there is a clear path to expand.
Enough background. Let us build something.
Tutorial: Building a DRL trading strategy with FinRL and Weights & Biases
In this FinRL tutorial, we are going to give three different DRL algorithms the same data, the same starting capital, and the same trading rules. Then we will turn them loose on two years of Apple stock data they have never seen and find out which one makes the most money. Along the way, we will track everything with Weights & Biases so we can actually understand what happened.
The plan, step by step:
- Download AAPL daily price data from 2009 to 2024 via Yahoo Finance.
- Engineer eight technical indicators (MACD, RSI, Bollinger Bands, CCI, and others) using FinRL's FeatureEngineer.
- Split the data: 2009-2022 for training, 2023-2024 for testing.
- Configure FinRL's StockTradingEnv as a Gymnasium-compatible trading environment.
- Train A2C, PPO, and DDPG agents, logging training metrics to W&B.
- Backtest each agent on the test period and compute performance metrics.
- Compare all three agents using W&B dashboards and generated charts.
A quick note on why we are using Weights & Biases here. When you train one agent on one stock, print statements and a matplotlib chart are fine. But the moment you start comparing three algorithms, tuning hyperparameters, or trying different feature sets, you have an experiment management problem. Which run had the best Sharpe ratio? What learning rate did you use last Tuesday? Weights & Biases solves this by automatically logging everything and providing side-by-side comparison dashboards. You will see why this matters concretely when we get to the results.
Prerequisites
You will need Python 3.8+ and the following packages:
- pip install finrl wandb stable-baselines3 yfinance stockstats matplotlib
You will also need a free Weights & Biases account. Sign up at wandb.ai and run wandb login in your terminal to authenticate
Step 1: Download and prepare the data
We start by pulling AAPL daily data from Yahoo Finance. FinRL includes a YahooDownloader class, but recent versions of the yfinance library have changed their API, so we call yfinance directly and format the data to match what FinRL expects.
import yfinance as yfimport pandas as pdTICKER = ['AAPL']TRAIN_START = '2009-01-01'TEST_END = '2024-12-31'df_raw = yf.download('AAPL', start=TRAIN_START, end=TEST_END)# Flatten MultiIndex columns from yfinance 1.xif isinstance(df_raw.columns, pd.MultiIndex):df_raw.columns = [col[0] for col in df_raw.columns]df_raw = df_raw.reset_index()df_raw.columns = [c.lower() for c in df_raw.columns]df_raw['tic'] = 'AAPL'df_raw['day'] = pd.to_datetime(df_raw['date']).dt.dayofweekdf_raw['date'] = pd.to_datetime(df_raw['date']).dt.strftime('%Y-%m-%d')
This gives us about 4,000 rows of daily OHLCV data spanning roughly 16 years: the full arc of Apple's rise from $3 to $250. That is a lot of market history for our agents to learn from
Step 2: Feature engineering
Raw prices are not enough. If all your agent sees is yesterday's close, it has no sense of momentum, volatility, or trend. We add eight technical indicators that give it a richer picture of what the market is doing. FinRL's FeatureEngineer makes this a one-liner:
from finrl.meta.preprocessor.preprocessors import FeatureEngineerINDICATORS = ['macd', 'boll_ub', 'boll_lb', 'rsi_30','cci_30', 'dx_30', 'close_30_sma', 'close_60_sma',]fe = FeatureEngineer(use_technical_indicator=True,tech_indicator_list=INDICATORS,)df_processed = fe.preprocess_data(df_raw)df_processed = df_processed.fillna(0)
Under the hood, FeatureEngineer uses the stockstats library to compute each indicator from the OHLCV columns. The result is a DataFrame with the original price data plus eight new columns, one per indicator.
Step 3: Train/test split
We split the data chronologically: everything before 2023 is training data, and 2023-2024 is held out for backtesting. This matters. If you shuffle time-series data or let future prices leak into training, your results will look spectacular but mean nothing. The agents will only ever be tested on data they could not have seen during training.
from finrl.meta.preprocessor.preprocessors import data_splittrain_df = data_split(df_processed, '2009-01-01', '2022-12-31')test_df = data_split(df_processed, '2023-01-01', '2024-12-31')# Training: 3,524 rows | Testing: 501 rows
Step 4: Configure the trading environment
FinRL's StockTradingEnv is a Gymnasium-compatible environment that simulates trading a portfolio of stocks. For our single-stock case, the configuration looks like this:
from finrl.meta.env_stock_trading.env_stocktrading import StockTradingEnvstock_dim = 1 # single stockstate_space = 1 + 2 * stock_dim + len(INDICATORS) * stock_dim # = 11env_kwargs = dict(stock_dim=stock_dim,hmax=100, # max shares per tradeinitial_amount=100_000, # starting cashnum_stock_shares=[0], # start with no sharesbuy_cost_pct=[0.001], # 0.1% commissionsell_cost_pct=[0.001],reward_scaling=1e-4,state_space=state_space,action_space=stock_dim,tech_indicator_list=INDICATORS,)
The state space has 11 dimensions: the agent's cash balance, the current stock price, the number of shares held, and the eight technical indicator values. The action space is continuous between -1 and 1 for each stock, where negative means sell and positive means buy. The environment handles portfolio accounting, transaction costs, and position limits internally.
Step 5: Train three agents with W&B logging
Now for the interesting part. We are about to hand the same data and the same starting cash to three very different algorithms and see what they do with it. A2C (Advantage Actor-Critic) is fast and simple. PPO (Proximal Policy Optimization) is the workhorse of modern RL, known for stability. DDPG (Deep Deterministic Policy Gradient) is designed for continuous action spaces, which is exactly what stock trading is. Will they all learn the same strategy? Will one dominate? Let us find out.
We use a custom callback that logs episode rewards and lengths to W&B after each training episode:
from stable_baselines3.common.callbacks import BaseCallbackimport wandbclass WandbTrainingCallback(BaseCallback):def __init__(self):super().__init__()self.episode_rewards = []self._current_reward = 0.0def _on_step(self):self._current_reward += self.locals.get('rewards', [0])[0]if self.locals.get('dones', [False])[0]:self.episode_rewards.append(self._current_reward)wandb.log({'train/episode_reward': self._current_reward,'train/episode': len(self.episode_rewards),})self._current_reward = 0.0return True
For each algorithm, we initialize a W&B run, create the agent via FinRL's DRLAgent, and train for 50,000 timesteps:
from finrl.agents.stablebaselines3.models import DRLAgentALGORITHMS = {'a2c': {'n_steps': 5, 'ent_coef': 0.01, 'learning_rate': 0.0007},'ppo': {'n_steps': 2048, 'ent_coef': 0.01, 'learning_rate': 0.00025,'batch_size': 64},'ddpg': {'batch_size': 128, 'buffer_size': 50000,'learning_rate': 0.001,'action_noise': 'ornstein_uhlenbeck'},}for algo_name, algo_params in ALGORITHMS.items():run = wandb.init(project='finrl-trading-tutorial',name=f'{algo_name}_AAPL',config={'algorithm': algo_name, **algo_params},reinit=True,)train_env = StockTradingEnv(df=train_df, **env_kwargs)agent = DRLAgent(env=train_env)model = agent.get_model(algo_name, model_kwargs=algo_params)model.learn(total_timesteps=50_000, callback=WandbTrainingCallback())wandb.finish()
A note on the DDPG configuration: we include Ornstein-Uhlenbeck action noise, which is essential for DDPG to explore. Without it, DDPG tends to converge to a do-nothing policy, literally holding cash and making zero trades. We learned this the hard way during the development of this tutorial. That kind of failure mode, by the way, is a perfect example of why you want experiment tracking: without Weights & Biases, you might not notice that one of your agents is doing nothing until you have already written up the results.
As each agent trains, you can watch the metrics update in real time on your W&B dashboard:
Figure 1: W&B training dashboard showing episode rewards, timestep progression, and episode counts across all three agents. Each color represents a different run.
Even at a glance, you can see differences: A2C and PPO ramp up faster, DDPG takes longer to find its footing. With print statements alone, you would be scrolling through thousands of lines of terminal output to piece this together. With Weights & Biases, it takes one look. But training performance is one thing. The real question is: what happens when these agents face data they have never seen?
Step 6: Backtest on unseen data
Training reward is encouraging, but it is not the test that matters. An agent that looks brilliant on its training data might fall apart the moment it encounters something new. To find out, we hand each agent $100,000 in simulated cash and let it trade through January 2023 to December 2024: 501 trading days it has never seen.
test_env = StockTradingEnv(df=test_df, **env_kwargs)df_account, df_actions = DRLAgent.DRL_prediction(model=trained_model,environment=test_env,deterministic=True,)portfolio_values = df_account['account_value'].tolist()
Each agent makes deterministic decisions, no exploration noise, just pure policy, on each trading day. The result is a time series of portfolio values. So, did they make money?


Figure 2: Portfolio value over the test period (Jan 2023 - Dec 2024). All three agents started with $100,000.
Yes. All three agents are profitable, and not by a little. The $100,000 grew to between $187,000 and $197,000 over two years. But look more closely at the curves. A2C and DDPG are nearly indistinguishable; they learned similar aggressive strategies. PPO, meanwhile, charted its own path: more conservative, with noticeably different behavior during the dip around trading day 300.
The cumulative return view makes the divergence even clearer:


Figure 3: Cumulative return (%) during the test period. PPO's more conservative trajectory diverges from A2C and DDPG around trading day 100.
This is genuinely interesting. Three different algorithms, given identical data and identical rules, found meaningfully different ways to trade. That alone makes the comparison worth doing. But the numbers tell an even richer story.
Step 7: Compare and analyze results
Let us put all the numbers in one place.

A2C and DDPG landed in the same place: 97% total return, a Sharpe ratio of 1.72, and a max drawdown of 16.6%. PPO was more restrained: 87% return, 1.63 Sharpe, but with a nearly identical drawdown. All three nearly doubled the initial capital in two years.
What is interesting is not just the final numbers but what they reveal about the algorithms. A2C and DDPG, despite being architecturally very different, converged on essentially the same trading behavior. PPO found a distinct strategy: slightly less aggressive, slightly more cautious during volatile periods. The metrics bar chart makes this visual:

Figure 4: Side-by-side comparison of Sharpe ratio, total return, max drawdown, and annual volatility across A2C, PPO, and DDPG.
The daily returns distributions reveal even deeper differences. Look at how PPO's returns are more tightly clustered around zero, while A2C and DDPG show wider tails:

Figure 5: Distribution of daily portfolio returns for each agent. PPO's tighter distribution reflects its more conservative policy.
Now, here is where Weights & Biases earns its keep. All of these comparisons, the training curves, the backtest metrics, the per-algorithm breakdowns, live in one dashboard. The W&B runs table automatically organizes every experiment with its metrics, sortable and filterable:
Figure 6: W&B runs table showing all experiment runs with backtest metrics. Automatically generated, sortable, and exportable.
Weights & Biases also captures system-level metrics during training. This might seem like a nice-to-have, but it becomes genuinely useful when you need to understand why one algorithm trained three times slower than another, or whether your GPU was actually being utilized:
Figure 7: W&B system monitoring panel showing GPU utilization, power usage, and network activity during training runs.
With three algorithms and a single stock, we have already generated multiple runs. Now imagine extending this to five stocks with hyperparameter sweeps: you could easily have fifty or a hundred runs. Without a tracking platform, it becomes unmanageable. With Weights & Biases, every run is logged, searchable, and comparable from a single URL.
Extending the tutorial
We kept this tutorial deliberately simple: one stock, default hyperparameters, three algorithms. But the framework is designed to be extended, and some of the most interesting questions are just one or two code changes away:
- Use multiple stocks instead of just one. Swap out AAPL for a list of tickers, such as the Dow 30, and adjust `stock_dim` to match. The rest of the setup can stay the same.
- Try different settings. Run structured experiments on learning rates, network sizes, and reward scaling. Small changes in these values can make a noticeable difference.
- Add more features. Include indicators like the VIX or market turbulence using FinRL’s built-in tools. Extra signals may help the model react better to changing conditions.
- Train for longer. The earlier run used 50,000 timesteps to keep it quick. Increasing this to 200,000 or 500,000 can improve results, especially for PPO and DDPG.
- Compare markets. Train separate agents on different sectors or countries and see how they perform. This helps you understand whether the strategy works broadly or only in one specific setting.
Practical tips, limitations, and risk considerations
Those results look good. Almost too good. And that is exactly the right instinct to have, because deep reinforcement learning for trading comes with real challenges that are worth being honest about.
- Data scarcity: Financial data is plentiful in one sense (tick data exists for decades) but scarce in another: meaningful market regimes are rare events. Your agent might train through ten bull markets but only one crash. That is a fundamental sample size problem that no amount of hyperparameter tuning can fix.
- Regime shifts: Markets change. Interest rate environments shift, regulations evolve, and new instruments appear. An agent trained on 2009-2022 data may encounter conditions in 2023 that look nothing like its training set. Our tutorial results are encouraging on 2023-2024, but that is a single test period in a generally rising market. We do not know how these agents would handle a sustained bear market or a flash crash.
- Sim-to-real gap: The trading simulator is an approximation. Real markets have slippage, partial fills, market impact, and latency. FinRL models transaction costs but not all of these effects. Simulation results will almost always be better than live results. Sometimes significantly.
- Overfitting: DRL agents can memorize the training data just like any other model. With enough episodes, an agent can learn the optimal trades for historical prices without discovering any generalizable pattern. Testing on multiple time periods, not just one, is essential.
- Not a profit machine: This bears repeating: FinRL is a research and engineering tool. It helps you build and test strategies faster. It does not guarantee those strategies will make money. Anyone deploying a DRL strategy with real capital should use conservative position sizing, strict risk limits, and the full understanding that losses are possible.
None of this means you should not experiment. It means you should experiment carefully, with realistic expectations, and with the kind of systematic tracking that lets you separate luck from skill. Which, incidentally, is one more reason to use W&B.
Where FinRL fits in your quantitative trading toolbox
We started with a question: Can you teach an AI agent to trade? Based on this experiment, the answer is a qualified yes. Three different DRL algorithms, given only historical prices and technical indicators, learned trading policies that nearly doubled a $100,000 portfolio over two years on unseen data. They did this without any hand-crafted rules, without explicit buy/sell signals, and without any human telling them what a good trade looks like.
That is genuinely remarkable, even if we should be careful about reading too much into a single backtest on a single stock in a mostly bullish market.
What FinRL brings to this process is speed. The core library handles the tedious plumbing of data ingestion, environment design, and algorithm integration so you can focus on the questions that actually matter: which features help, which algorithms work for which instruments, and how strategies behave in different market conditions. Adding Weights & Biases on top gives you the visibility to answer those questions systematically rather than by guesswork.
If you are new to financial RL, start with the tutorial as written: single stock, default hyperparameters, three algorithms. Get it running, look at the results in Weights & Biases, and then start pulling threads. Swap in a different ticker. Add more indicators. Double the training time. Each change is a new experiment, and with Weights & Biases, none of them will be lost.
For those with more experience, the FinRL ecosystem offers a clear path to scale: from laptop experiments with the core library, to full trading pipelines with FinRL-Trading, to GPU-accelerated training with FinRL-Podracer. The tools are open-source, the community is active, and the barrier to entry has never been lower.
Just remember: rigorous backtesting, realistic assumptions, and conservative risk management are not optional, no matter how impressive the backtest numbers look. The best use of these tools is as a platform for disciplined experimentation, not as a shortcut to profits. Start small, track everything, and let the data tell you what works.