AlgoPuzzle Open the Builder
← Back to all articles

Basics

How to Build a Trading Bot Without Coding

By AlgoPuzzle · Published · Updated

You can build a trading bot without coding by describing its rules with a visual builder and letting the builder generate the platform's code. The process has five steps: write the rule in one sentence, set the market and timeframe, build the entry condition from blocks, add the trade with its lot size, stop loss and take profit, then backtest and export a ready-to-run file - an Expert Advisor for MetaTrader 5 or 4, or a cBot for cTrader. You then install the file in your platform, compile it with one click, and attach it to a chart. The part no tool can do for you is deciding whether the rule is any good, which is what backtesting and a demo account are for.

Step 1: write the rule as one sentence

If you can't say it in one sentence, a computer can't follow it. Example used below: "On EURUSD, 1-hour chart: buy when RSI(14) crosses above 30 on a closed candle, 0.10 lots, stop loss 25 pips, take profit 50 pips, one position at a time." Need ideas? See five simple rule types.

Step 2: set the market and timeframe

In AlgoPuzzle every strategy is made of Strategy rule blocks. Each rule has its own Asset and Timeframe: set EURUSD and 1 Hour. The exported bot trades that asset and timeframe whatever chart it is attached to.

Step 3: build the condition

Drag "crosses above" from Conditions into the rule's IF slot, put RSI from Indicators on its left and the number 30 on its right, and switch it to "on the closed bar" so the signal is read from finished candles only. Blocks only snap together when they make sense - an oscillator compares with a number, a price with a price.

Step 4: add the trade and its risk

Drag Open BUY into THEN and set Lot Size 0.10, Stop Loss 25 pips and Take Profit 50 pips. That is a 1:2 reward-to-risk, which breaks even at 33.3% winners before costs (stop loss vs take profit). Set Positions to "only one at a time". To trade both directions, add a second rule with Open SELL.

Step 5: backtest, then export

Backtest mode replays the rule on 1-minute MetaTrader 5 data in the browser (it uses a free account to load the data) and shows net profit, drawdown, profit factor, win rate and every trade on the chart. Then export: you get a .zip with the .mq5, .mq4 or .cs file and a README with installation steps.

Installing the bot

MetaTrader 5 / 4cTrader
Where the file goesFile → Open Data Folder → MQL5 (or MQL4) → ExpertsImport the .cs as a new cBot (steps in the README)
CompileOpen in MetaEditor, press Compile (F7)Build it in cTrader Automate
RunDrag onto any chart, tick Allow Algo Trading, turn on the Algo Trading buttonAdd an instance and start it
Test firstStrategy Tester, then a demo accountBacktest in Automate, then a demo account

What a visual builder can and can't express

A realistic expectation

Removing the coding barrier doesn't remove the trading barrier. A bot executes your rules faithfully; it doesn't know whether they're good. Backtest it, then run it on a demo account, watch for curve fitting, and treat the first version as a draft.

Common questions

Can I make a trading bot without coding?

Yes. A visual builder turns rules you build from blocks into a real Expert Advisor for MetaTrader 5 or 4, or a cBot for cTrader, which you install and run like any hand-written bot.

Is using a trading bot legal?

Automated trading is allowed by most retail brokers that offer MetaTrader or cTrader. Some account types and many prop firms restrict certain strategies, so check their rules before running a bot.

Do trading bots make money?

A bot only executes its rules; whether it makes money depends entirely on the strategy and on costs. Most rules don't have an edge, which is why every bot should be backtested and run on a demo account before real money.

Does my computer need to stay on?

Yes, while the bot is trading: it runs inside the platform, which has to stay open and connected. Traders who run bots around the clock usually use a VPS.

Which platform should I build for?

Whichever your broker offers. A strategy built in AlgoPuzzle exports to MetaTrader 5, MetaTrader 4 and cTrader from the same blocks.

Build your first bot - Free