How to Use AlgoBuilder: Switch Markets’ Free Trading Bot Guide
You have a trading idea, a set of rules you trust, and no wish to learn Python or pay a developer to code it. AlgoBuilder closes that gap. You describe your strategy in plain English, the AI writes the code, and you test it on market history before any money is at risk.
This guide shows you how to use AlgoBuilder step by step, from your first prompt to a bot that is ready for MetaTrader 5. Switch Markets clients get the tool free, so all you need to bring is a plan.
What Is AlgoBuilder and How Does It Work?
If you have a clear and working strategy and you want to automate it, AlgoBuilder is the best tool for you.
AlgoBuilder is an AI tool that turns trading strategies into working Python code, then lets you backtest, optimize, and deploy them all from one screen.

If you’re new to automated and algo trading, you might want to glance through our guide on how to build a trading bot without coding to get a grasp of how a trading bot works first. The rest of this article is about the tool itself.
That said, if you’ve used the earlier version of AlgoBuilder, you’ll notice that the interface has changed for the better. The workspace now has three tabs across the top, Create, Backtest and Optimize, a switch between Build and Deploy, and a chat panel that stays open on the right.
To understand how the tool works, you’ll have to pay close attention to these five stages:
- You describe your trading strategy in the chat, or mark it on the chart.
- The AI writes the code and explains what it built.
- A backtest runs in the cloud on tick data.
- The optimiser tests different settings to see which hold up.
- You deploy the strategy to MetaTrader 5.
Here's what it looks like:

So, in a nutshell, AlgoBuilder is a trading bot that enables you to run automated strategies without having to know a single line of code. All you have to do is to write your strategy, backtest it, and see if it works. If it does, you can execute it on your trading platform.
Watch Our AlgoBuilder Trading Workshop
Want to see AlgoBuilder in action? Watch our full workshop for a step-by-step walkthrough of the platform, its key features, and how to build your own automated trading strategies.
How to Use AlgoBuilder: Step by Step
We’ve already given you the overview of how to work with AlgoBuilder. Now, let’s walk through an example together to further understand the entire process.
For this example, we will be building a simple EMA crossover on GBPUSD. You might want to follow the same steps with your own rules.
Step 1: Start a New Strategy
Click New Strategy at the top left, give it a name, and click Start. You can rename it later from the sidebar.

The strategy opens on the Create tab. Here you get a price chart with indicators, drawing tools, and Buy and Sell markers for placing a trade idea directly on the candles.
Step 2: Describe Your Strategy in the Chat
Type your rules into the chat box on the right. While doing so, try as much as possible to be specific about the market, timeframe, entry, exit, stops, and risk. This is the prompt we used:
“Build a strategy for GBPUSD on the H1 timeframe. Buy when the 20 EMA crosses above the 50 EMA and the candle closes above the 200 EMA. Sell when the 20 EMA crosses below the 50 EMA and the candle closes below the 200 EMA. Set the stop loss at 1.5x ATR(14) and the take profit at 2x the stop distance. Risk 1% of the account per trade with one open position at a time. Backtest it from 1 January 2024 to 31 December 2025 on a $10,000 account.”
Press send. If you think better in pictures, mark your entry and exit on the chart instead and send the chart to the AI.

Step 3: Let the AI Build and Test It
AlgoBuilder now works through the job on its own. When we were testing it, it wrote the code in about 25 seconds and finished a two-year backtest about 20 seconds later, with no extra clicks.
Open the Code tab to see the Python code it wrote. You do not need to read it, but the summary at the top is worth a look, because it restates your rules in the AI’s own words.

Next, read the assumptions in the chat. Our backtest used a 2-pip spread, $5 commission per standard lot, and 1 pip of price slippage. If those numbers do not match your account, tell the chat to change them. You can also ask it questions about anything in the results, and the answers come back in plain language.
Step 4: Read the Backtest Results
The Backtest tab replays your strategy on the chart, with play, pause and speed controls. Below the chart, the Results tab holds the numbers that matter:
- Return and net profit: what the strategy made or lost over the test range.
- Gain chart: your equity curve, showing realized gain against floating equity.
- Max drawdown: the deepest fall from a peak. This is the pain you would have sat through.
- Sharpe ratio: performance return measured against risk. Below zero means you were not paid for the risk.
- Profit factor and win rate: gross profit divided by gross loss, and the share of trades that won.

The Trades tab gives you the full trade list, with entry, exit, stop loss, take profit and gain for every trade.

Our example lost 25.5% across 139 trades, with a 30.9% win rate. That is a useful result. We learned the idea does not work as written, and it cost nothing to find out.
Step 5: Tune It With the Optimizer
A losing backtest does not always mean a dead idea. Sometimes the settings are wrong. Ask the chat to run the optimizer, and name the values you want tested and the metric to rank by. We asked for three fast EMAs, two slow EMAs and three ATR stop sizes, ranked by Sharpe ratio.
The Optimize tab then ranks every parameter combination by return, Sharpe, profit factor, drawdown, win rate and trade count.

Click Show Configurations and check the period before you trust the ranking. In our test, the optimizer ran on the last 12 months, not the two-year range we asked for, and the chat flagged the mismatch. Once you have a setting you like, run a fresh backtest with it over the full range.
Step 6: Deploy to MetaTrader 5
When a strategy has earned it, click the Deploy button above the chat, then switch from Build to Deploy at the top of the screen. Every deployed strategy is listed there with its version, symbol, timeframe, and status.

Finally, download the AlgoBuilder desktop app from the same screen. The app runs your strategy code on MetaTrader 5 through its built-in Python bridge. A strategy shows Offline until the app is open and connected, so keep it running, ideally on your VPS.
Tips for Creating Automated Trading Strategies on AlgoBuilder
The steps are simple. Good results take more care, and these habits can help you build and test a more reliable trading strategy.
1. Write rules a machine can follow
A trading bot cannot interpret vague instructions such as "buy the dip" or "sell when the market looks weak." To build successful AI trading strategies, you need to turn your trading idea into clear, measurable conditions. Specify which indicators the bot should use, what levels or signals trigger an entry, and when it should close a position. The more precise your rules are, the easier it will be for AlgoBuilder to translate your idea into an automated strategy.
2. Change one thing at a time
When testing a strategy, avoid changing several parameters at once. If you adjust the entry conditions, stop-loss level, and timeframe together, you won't know which change actually improved or weakened the results. Instead, modify one variable, run another backtest, and compare the outcome with the previous version. This makes it easier to identify what works and avoid making unnecessary adjustments.
3. Test across different market conditions
A strategy that performs well over a few months might simply be benefiting from a particular market trend. Before relying on the results, test it over a longer historical period that includes trending, ranging, and highly volatile markets. This gives you a better idea of how the strategy behaves when market conditions change. It also helps identify weaknesses that might not be obvious during a short backtest.
4. Keep trading costs realistic
A backtest can look profitable until you account for the actual costs of trading. Spreads, commissions, and slippage can significantly reduce returns, especially for strategies that open and close positions frequently. Make sure your AlgoBuilder settings reflect the trading conditions of your account as closely as possible. Otherwise, you might end up with a strategy that looks great on paper but struggles to generate the same results in a live market.
5. Start small and monitor performance
Even if your strategy performs well in backtesting, that doesn't guarantee similar results in live trading. Start by running it on a demo account and monitor how it handles real-time market movements. Once you're comfortable with its performance, consider moving to a live account with a small position size. Keep comparing actual results with your backtest expectations, and only consider increasing your risk if the strategy continues to perform as expected.
Common AlgoBuilder Errors and How to Fix Them
Most problems come down to a handful of causes.
- The strategy shows Offline: The desktop app is closed or not connected to MT5. Open it and check your login.
- The backtest has few or no trades: Your rules are too strict for the range. Loosen one filter or test a longer period.
- The optimizer period looks wrong: Open Show Configurations, then ask the chat to rerun it with your exact dates.
- The AI misread your idea: Correct it in the chat. AlgoBuilder saves the fix as a new version, so nothing is lost.
For anything else, Switch Markets support is available on live chat.
Final Thoughts: Start Building Your First Trading Bot
In sum, automated trading doesn't have to be complicated or require programming experience. With AlgoBuilder, you can turn your trading ideas into automated strategies, test them against historical market data, and explore different approaches without writing a single line of code.
The key is to start with a simple idea, define your rules clearly, and take the time to test and improve your strategy. Remember, automation doesn't guarantee profits or remove trading risks, but it can help you apply your trading rules more consistently.
And the best part? AlgoBuilder is free for all Switch Markets users who open an account and deposit at least $50. You can start exploring its features, building your own strategies, and discovering what automated trading has to offer.
Open your Switch Markets account and start building your first trading strategy with AlgoBuilder.
FAQs
Still have questions? These are the ones we hear most.
Is AlgoBuilder free?
Yes. Switch Markets clients who meet the minimum deposit get AlgoBuilder at no extra cost, with no monthly fee and no credit card needed.
Do I need to know Python or coding?
No. You write in English, and the AI writes the Python. You can read or copy the code from the Code tab, but you never have to edit it.
Can I share my strategy?
Yes. Use the Copy button in the Code tab to share the code with another trader or keep your own backup.
Risk Disclosure: The information provided in this article is not intended to give financial advice, recommend investments, guarantee profits, or shield you from losses. Our content is only for informational purposes and to help you understand the risks and complexity of these markets by providing objective analysis. Before trading, carefully consider your experience, financial goals, and risk tolerance. Trading involves significant potential for financial loss and isn't suitable for everyone.



