You spent hours reading about RSI, Bollinger Bands, moving averages. You understand the theory. But when it comes time to actually use these indicators on real stocks, the same question always comes up: how do I know if this actually works?
That is what backtesting is for. And once you find something that works, the next question is obvious: how do I get told when it happens again, without staring at charts all day?
This guide walks through both steps. We will pick a strategy, test it against real historical data, and then turn the key thresholds into alerts that notify you automatically.
What Backtesting Actually Does¶
Backtesting takes a trading strategy and runs it against past market data to see how it would have performed. It is not a crystal ball. Past performance does not guarantee future results. But it does answer a critical question: does this idea have any merit at all?
Without backtesting, you are guessing. With it, you have data.
On StockIceberg, backtesting works like this:
- You pick a stock and a time period
- You choose a strategy (RSI, Bollinger Bands, MACD, Moving Average Crossover, and others)
- You adjust the parameters to your liking
- The system runs the strategy against historical prices and shows you every trade it would have made
You get back a full breakdown: total return, number of trades, win rate, maximum drawdown, and a visual chart showing each entry and exit point. No black box, just transparent results.
The Strategies You Can Test¶
StockIceberg offers several strategies, each suited to different market conditions and trading styles. Here is a quick overview of the most popular ones.
RSI Mean Reversion¶
The Relative Strength Index measures momentum on a scale from 0 to 100. The classic approach is simple: when RSI drops below 30, the stock is oversold and may bounce. When it climbs above 70, the stock is overbought and may pull back.
Key parameters you control:
- RSI Period (default 14, range 5 to 50)
- Oversold threshold (default 30, range 10 to 40)
- Overbought threshold (default 70, range 60 to 90)
RSI works best in ranging markets where prices bounce between support and resistance. In strong trends, it can stay overbought or oversold for weeks, so context matters.
Bollinger Bands¶
Bollinger Bands wrap around a moving average using standard deviations. When the bands tighten, volatility is low and a breakout is likely. When price touches the lower band, it may be stretched too far. When it touches the upper band, same idea in the other direction.
Key parameters you control:
- Period (default 20, range 10 to 50)
- Standard deviations (default 2.0, range 1.0 to 3.0)
The real power of Bollinger Bands is the squeeze. When BandWidth contracts to its lowest levels, something is about to happen. The strategy catches these moments.
Moving Average Crossover¶
This one is straightforward. You set a fast moving average and a slow one. When the fast line crosses above the slow line, that is a golden cross, a buy signal. When it crosses below, that is a death cross, a sell signal.
Key parameters you control:
- Fast MA period (default 10, range 5 to 30)
- Slow MA period (default 30, range 20 to 100)
Moving average crossovers are trend-following by nature. They will not catch the exact bottom or top, but they keep you on the right side of the bigger move.
MACD¶
The MACD tracks the relationship between two exponential moving averages. When the MACD line crosses above the signal line, momentum is shifting bullish. When it crosses below, momentum is shifting bearish. The histogram shows the distance between the two lines, making it easy to spot when momentum is building or fading.
Key parameters you control:
- Fast EMA period (default 12)
- Slow EMA period (default 26)
- Signal line period (default 9)
MACD is particularly useful for confirming trends. A rising MACD histogram alongside rising prices tells you the move has legs.
Advanced Strategies¶
For Analyst and Professional tier users, StockIceberg also offers:
- Candlestick Pattern Recognition, which identifies formations like engulfing patterns and dojis as they form in real time
- Markov Chain Analysis, which uses probability models to estimate the likelihood of the next move based on recent price states
- ARIMA + Technical Indicators, a hybrid approach that combines time series forecasting with traditional signals
Each of these can be backtested with full parameter control, just like the core strategies.
Walking Through a Backtest: RSI on Apple¶
Let's make this concrete. Say you want to test an RSI strategy on Apple (AAPL) over the past year.
Step 1: Go to the Backtesting page and enter AAPL as your ticker.
Step 2: Select a 1-year timeframe. This gives you enough data to see how the strategy handles different market conditions, both trending and choppy.
Step 3: Choose the RSI Mean Reversion strategy.
Step 4: Adjust the parameters. The defaults are solid (14-period RSI, oversold at 30, overbought at 70), but you might want to experiment. Try tightening the thresholds to 25 and 75 for fewer but higher-conviction signals. Or loosen them to 35 and 65 for more frequent trades.
Step 5: Run the backtest and review the results.
The output will show you:
- Total return compared to simply holding the stock
- Number of trades generated by the strategy
- Win rate, the percentage of trades that were profitable
- Maximum drawdown, the worst peak-to-trough decline during the test
- A chart with every buy and sell signal plotted on the price history
If the strategy produced a solid return with a reasonable drawdown, you have something worth monitoring. If it underperformed buy-and-hold with a high drawdown, the parameters need adjustment, or the strategy might not suit that particular stock.
Saving Your Configuration¶
Once you find parameters that produce good results, save the configuration. Click the save button, give it a name like "AAPL RSI Conservative" or "TSLA BB Squeeze," and StockIceberg stores it for you.
This saved configuration becomes the foundation for alerts. The exact parameters you tested, the same thresholds that produced results in the backtest, are now the parameters the alert system will monitor in real time.
This is the key connection between backtesting and alerts: you are not setting arbitrary thresholds. You are setting thresholds that you have already validated against historical data.
Turning Thresholds Into Alerts¶
Here is where it gets practical. You tested a strategy, you liked the results, you saved the configuration. Now you want to know when those conditions appear again in live market data.
How Alerts Work¶
StockIceberg monitors your saved strategies during market hours. The system checks at regular intervals (pre-market, after opening, midday, afternoon, close, and after-hours) whether current market conditions match your strategy's signal criteria.
When a match is found, you get a notification. The notification includes the stock symbol, the signal type (buy or sell consideration), the current price, and the technical details that triggered it.
What Triggers an Alert¶
Each strategy generates specific signals based on the thresholds you defined in your backtest:
RSI alerts fire when:
- RSI crosses above your oversold threshold (potential buy consideration)
- RSI crosses below your overbought threshold (potential sell consideration)
If you set oversold at 25 during backtesting and that produced good results, that is exactly the level the alert system watches for.
Bollinger Bands alerts fire when:
- Price approaches the lower band (within 10%), suggesting the stock may be stretched
- Price approaches the upper band, suggesting potential resistance
- A squeeze is detected (BandWidth at unusually low levels)
Moving Average Crossover alerts fire when:
- The fast MA crosses above the slow MA (golden cross)
- The fast MA crosses below the slow MA (death cross)
MACD alerts fire when:
- The MACD line crosses above the signal line (bullish momentum shift)
- The MACD line crosses below the signal line (bearish momentum shift)
Setting Performance Thresholds¶
Beyond the strategy signals themselves, you can also set quality gates. These are performance thresholds that filter out low-quality signals:
- Maximum drawdown limit (e.g., only alert if strategy drawdown stays under 15%)
- Minimum return threshold (e.g., only alert if the strategy historically returned more than -10%)
- Minimum Sharpe ratio (e.g., only alert if risk-adjusted return exceeds 0.5)
- Minimum trade count (e.g., only alert if the strategy generated at least 5 trades)
These gates ensure you only receive alerts from strategies that meet your personal quality standards.
Setting Up Notifications¶
Knowing about a signal is useless if you do not see it in time. StockIceberg supports multiple notification channels so you can pick what fits your routine.
Telegram¶
The fastest option. Connect the StockIceberg bot, and alerts show up on your phone within seconds. Great if you want instant awareness without keeping a browser tab open.
Discord¶
If you already spend time on Discord, you can set up a webhook in any channel. Alerts appear as formatted messages right alongside your regular conversations.
Slack¶
Same idea as Discord but for your workspace. Create an Incoming Webhook URL and paste it in your settings. Useful for teams that share trading ideas.
In-App Alerts¶
Every alert also appears in the StockIceberg sidebar. A small notification badge shows unread alerts, and clicking it expands the full list with signal type, price, and timestamp. You can dismiss alerts individually or clear them all at once.
A Practical Example: From Backtest to Live Alert¶
Let's put it all together with a real scenario.
The setup: You backtested a Bollinger Bands strategy on Microsoft (MSFT) with a 20-period moving average and 2.0 standard deviations over 1 year. The results showed a 12% return with 8 trades, a 65% win rate, and a max drawdown of 7%. You are happy with these numbers.
Saving the config: You save it as "MSFT BB Standard" and enable alerts.
Setting thresholds: In the Alerts tab, you set a max drawdown alert at 15% and a minimum Sharpe ratio of 0.5.
Configuring delivery: In Settings, you connect Telegram and enable notifications.
What happens next: You go about your day. At some point, MSFT's price drops close to the lower Bollinger Band, matching the conditions that historically produced good entry points in your backtest. The strategy monitor detects this, creates a notification, and sends it to your Telegram.
The message includes the stock, the signal, the current price, and a reminder that this is based on your configured parameters, not a recommendation. You pull up the chart, confirm the setup looks valid, and make your decision.
That is the workflow. Test, validate, save, get notified.
Tips for Getting the Most Out of Alerts¶
Start with one or two strategies. It is tempting to monitor everything, but alert fatigue is real. Pick the strategies and stocks you know best.
Review your backtests periodically. Market conditions change. A strategy that worked well in a trending market may underperform when volatility shifts. Re-run your backtests every few months and adjust parameters if needed.
Use multiple indicators for confirmation. If your RSI alert fires at the same time as a Bollinger Band signal, that is two independent systems pointing in the same direction. More conviction, less noise.
Respect the thresholds you set. The whole point of backtesting is to replace gut feelings with data. If your tested thresholds say wait, wait.
Pay attention to the disclaimer. Every alert is framed as an educational tool, not investment advice. Market data may be delayed by 15 or more minutes. Always do your own due diligence before acting.
Key Takeaways¶
- Backtesting validates whether a strategy has merit before you risk real money
- StockIceberg supports RSI, Bollinger Bands, MACD, Moving Average Crossover, and several advanced strategies
- Each strategy has adjustable parameters that directly control when signals fire
- Saving your backtested configuration creates the bridge between testing and live monitoring
- Alerts notify you through Telegram, Discord, Slack, or the in-app sidebar when your exact thresholds are hit
- Performance gates (drawdown, return, Sharpe ratio) filter out low-quality signals
- The best alerts come from strategies you have already validated with historical data
Getting Started¶
Head to the Backtesting page on StockIceberg, pick a stock you follow closely, and run your first test. Try different strategies and parameter combinations. When you find something that clicks, save it and turn on alerts.
You do not need to watch charts all day. Let the system watch for you, and focus your energy on making decisions when the signals arrive.
Backtesting results reflect historical performance and do not guarantee future returns. All alerts are educational tools, not investment advice. Always manage your risk and consider multiple factors before making trading decisions.