VALYNOX
VALYNOXSTRATEGY RESEARCH TECHNOLOGY
VALYNOXMultiAlphasMultiAlphas
ACADEMY / Platforms and export

Automate trading without code: how the platforms differ

You can automate a futures strategy without coding by running a strategy script on a charting platform, by passing signals through a bridge to a broker, or by using a ready-made expert advisor. Choose by which layer you already have, then test the full chain, add a kill switch and reconcile positions daily.

By · Published · updated · Editorial policy

Contents
  1. What are the ways to automate trading without coding?
  2. What are the three layers of an automated trading system?
  3. What kinds of automated trading programs are there?
  4. Which no-code option fits you: platform automation, a bridge or an EA?
  5. Does the platform handle your futures market, data and sessions?
  6. How realistic is the backtest execution?
  7. How does the platform model trading costs?
  8. Can you export the strategy code, or is it locked in?
  9. Which validation features should you look for?
  10. What goes wrong live: disconnects, fills and duplicate orders?
  11. How do you monitor an automated system and stop it fast?
  12. What does a working setup for index futures look like?
  13. What should you check before going live?
  14. Frequently asked questions
  15. References

You can automate trading without writing code in three ways: let a charting platform run a loaded strategy script and send orders through its broker plug-in, use a bridge that turns signals into broker orders, or run a ready-made expert advisor. Pick the one that fills the layer you are missing: strategy, platform or broker connection.

What are the ways to automate trading without coding?

Each no-code route replaces one piece of work you would otherwise do by hand, and the right route depends on which pieces you already have. An automated trading system is a set of rules plus the software that turns those rules into orders at a broker without you clicking for each trade. Trading automation does not mean the strategy writes itself. Someone still has to define the rules, test them and connect them to a broker. The no-code options differ in who does each of those jobs.

  1. Platform automation. A charting platform loads a strategy script, calculates the signals on live bars and sends the orders through its broker plug-in. You need a strategy script you did not have to write, for example exported from a strategy builder, and a broker the platform supports.
  2. A signal bridge. A bridge is a small program that receives a signal from one place, such as a chart alert, and sends the matching order to a broker account. You need a signal source and a separate broker account; the bridge sits between them.
  3. An expert advisor (EA). An expert advisor is a ready-made strategy file that runs inside MetaTrader 4 or MetaTrader 5 and trades automatically. You need the platform that runs it and a broker that serves that platform.

A trader searching for 股票自動交易程式 (an automatic trading program for stocks) usually wants route one or three. A trader who already has a chart with alerts usually wants route two. The sections below explain the layers behind all three, how to compare them, and what goes wrong once real orders flow.

What are the three layers of an automated trading system?

Every automated trading system has three layers, and most live failures happen at the two joints between them. Think of a courier service. Someone writes the delivery instructions, a dispatcher turns them into jobs, and a driver carries the parcel. If the instructions are clear but the dispatcher never hears them, or the driver returns without saying whether the parcel arrived, the system fails even though each part worked.

  • The strategy layer is the set of rules that decide when to buy, sell and exit. It reads bars and produces a decision.
  • The platform layer is the software that turns each decision into an order, tracks the current position and records what happened.
  • The broker connection is the link that carries orders to the exchange and returns fills, rejections and account balances.

The first joint is between strategy and platform. A signal can be lost when the platform is not running, or repeated when the platform restarts and recalculates the same bars. The second joint is between platform and broker. An order can be rejected, or filled without the platform receiving the confirmation, so the platform believes one position while the broker holds another. When you compare automated trading software, ask how each product behaves at these two joints, because that is where money is lost without any mistake in the rules.

An automated trading system is three layers in a chain: strategy makes rules, platform makes orders, broker returns fills. The two joints between them are where a signal gets lost or a fill goes unknown. Failures sit at the joints Three layers, two weak links Strategy Rules Platform Orders Broker Fills Signal lost Fill unknown The rules rarely fail; the links do. So: test both joints before going live.
An automated trading system is three layers joined in a chain. Live failures cluster at the two joints, not inside the rules.

What kinds of automated trading programs are there?

Most automated trading software falls into three groups, and each does a different job: finding rules, running rules on a chart, or sending orders from your own code. Think of a restaurant. A strategy builder is the test kitchen where many recipes are tried. A charting platform is the kitchen that cooks the chosen dish every day. A broker API gives you the raw ingredients and a stove, and you build the rest yourself.

TypeWhat you doWhat the software doesFits a trader who
Strategy builder (strategy generation software)Choose the market, building blocks, parameter ranges and costsGenerates and backtests many rule combinations, then filters themWants to search and test many ideas before trading any of them
Charting platform with automationWrite or load a strategy scriptShows signals on the chart, backtests the script, and can send orders through a connected brokerAlready has rules and wants to watch and trade them
Broker APIWrite the whole program: data, logic, orders, loggingAccepts your orders and returns data and fillsPrograms well and wants full control

A broker API is a programming interface that lets your own code request data and send orders to your broker. It is the one type that always needs coding. Many traders combine types: a builder for research, then a charting platform for live execution. The builder supplies the strategy layer, the charting platform supplies the platform layer and its broker plug-in supplies the connection. So the useful question is often "which pair of tools?" rather than "which one automated trading platform?"

Three types of automated trading software side by side: a strategy builder finds rules, a charting platform runs rules, a broker API runs your own code, with exported strategy code passing from the builder to the charting platform Three tools, three jobs Many traders pair the first two Builder Finds rules Charting Runs rules Broker API Your code Exported code Each type does a different job. So: choose a pair of tools.
The three main types of automated trading software. Many traders research in a builder and execute on a charting platform.

Which no-code option fits you: platform automation, a bridge or an EA?

Compare the three no-code routes on what you must supply, where the order is created and what you can inspect when something looks wrong. Those three points decide how much you can check yourself.

Platform automationSignal bridgeExpert advisor (EA)
What you supplyA strategy scriptA signal sourceThe EA file
Where the order is createdInside the platformIn the bridgeInside the EA
What you can inspectThe script code and the trade listThe signal log and the bridge logOften only the settings
Typical broker linkThe platform's broker plug-inA separate broker accountThe platform's broker server

Platform automation suits a trader who has, or can obtain, readable strategy code and trades a futures market the platform's broker plug-in supports. You can backtest and trade in the same place, and the trade list and the code are both open to you. A signal bridge suits a trader whose signals already exist as chart alerts. Its weak point is the extra joint: the alert must reach the bridge, and the bridge must reach the broker, so there are two places for a signal to be lost or repeated. An EA suits a trader who accepts someone else's rules and trades on a platform that runs them. Its weak point is that you often see only the settings, so you cannot read why a trade was taken.

For futures, one practical test separates the options quickly: ask where you can see the exact rule that produced the last trade. If the answer is a line of code you can read, you can also check whether the live fill matched the backtest rule. If the answer is "the vendor knows", every live difference stays unexplained.

Three no-code routes compared: platform automation needs a script and shows code and trades, a signal bridge needs signals and shows two logs, an expert advisor needs the EA file and often shows only its settings What can you inspect? Three no-code routes compared Route You supply You inspect Platform Bridge EA Script Signals EA file Code, trades Two logs Settings only Readable code explains live trades. So: pick a route you can read.
The three no-code routes differ in what you supply, where the order is created and what you can inspect.

Does the platform handle your futures market, data and sessions?

A platform is only useful if it treats your contract the way the exchange runs it: the right sessions, sensible contract rolls, and the bar data you actually have. Check these points before anything else:

  • Data import. Can you load your own historical bars in the format and resolution you use, such as 1-minute or 5-minute bars?
  • Continuous contracts. Futures expire, so long tests need a continuous series. A continuous contract is a single price series built by joining one expiring contract to the next at a chosen roll date. Check how the platform joins contracts and whether it can adjust for the price gap at each roll.
  • Sessions. Many futures trade in a day session and a night session. TAIEX futures are one example. You should be able to test day-only bars and full-session bars separately, because a rule that works on one may not work on the other.
  • Time zones and holidays. Bar timestamps must line up with the exchange clock. Holidays and early closes must not create fake bars.

Exchanges set session hours and can change them, so confirm the current values on the exchange's contract page. The futures market hours tool shows sessions in your own time zone. For the data problems that distort backtests most often, see backtest data quality: gaps, bad ticks, time zones and rolls. The same session settings must be used in the backtest and in the live platform. A strategy tested on day-only bars but run on full-session bars calculates its indicators on different bars and produces different signals, even though the code is unchanged.

One trading day of index futures: a day-only test covers just the day session and leaves the night session untested, while a full-session test covers both, so the two tests see different bars Two tests, different bars Day-only vs full-session test Day-only Full session Day Not tested Day Night One trading day, 24 h Different bars give different signals. So: test and trade the same session.
A day-only test and a full-session test cover different parts of the same trading day, and a continuous series must bridge the roll between contracts.

How realistic is the backtest execution?

A backtest must only use prices the strategy could actually have traded at. For rules that decide at the bar close, that usually means filling on the next bar. Next-bar execution is a fill rule where a signal calculated at a bar's close is filled at the next bar's open or later. A platform that decides on a close and also fills on that same close is using a price no one could trade at. The live version of the strategy will fill at the next tick at best, so a same-bar backtest will always look better than the live account on the same signals.

Ask these questions about any backtester:

  • When does a market order fill after a signal: this bar or the next one?
  • When a bar touches both the stop and the profit target, which one does the backtest assume came first?
  • Does a limit order fill as soon as price touches it, or only when price trades through it?
  • Can you open every trade, see its entry time and price, and check it against the chart?

A good sign is a platform that documents its fill rules and shows every trade. A bad sign is a smooth equity curve with no trade list you can inspect. When you later automate the strategy, the live platform applies its own fill logic. Knowing the backtest's fill rule is what lets you tell a normal live difference from a real problem.

A signal calculated at the close of bar 2: a same-bar backtest fills at that close, a price nobody could trade, while a next-bar backtest fills at the open of bar 3, which a live order can reach Fill on the next bar Signal at the close of bar 2 Same bar Next bar Fills at close Fills next open Nobody can trade the signal's close. So: check the fill rule first.
Same-bar fills use a price nobody could trade at. Next-bar fills use the next open, which a live order can actually reach.

How does the platform model trading costs?

Costs must be part of every test, not added at the end. That means commission per contract and slippage you can set and raise. Slippage is the difference between the price the backtest assumed and the price a real order would get. Check whether you can enter commission per side or per round trip, add exchange fees, and set slippage in ticks. Every strategy in a run of the backtesting of MultiAlphas (Valynox) carries the same fees and slippage, so the doubled-slippage stress test described next is one setting changed and rerun.

A search that ranks strategies without costs favours many small trades, because they look smooth on paper. Costs then remove them one by one. The full method, including the average-trade check, is in trading costs in backtests: commission, slippage and the average trade. Doubling the slippage is the quickest stress test. It shows how much of the average trade depends on cheap execution, which matters for an automated system because live fills during fast markets are often worse than the one tick a backtest assumes.

Hypothetical example

A trader reruns a known crossover rule. On full-session bars it makes 400 trades with an average trade of $40 after $5 commission and one tick of slippage per side. On day-only bars it makes 260 trades with an average trade of $10. Doubling slippage cuts the full-session average trade to $25. The test taught the trader something real: most of the rule's edge comes from night-session trades, and it is sensitive to execution costs.

Hypothetical example: with one tick of slippage per side the average trade is 40 dollars; with two ticks per side it falls to 25 dollars, a loss of 15 dollars per trade Slippage cuts the edge Average trade, slippage per side Hypothetical 1 tick $40 2 ticks $25 −$15 Double slippage: $40 falls to $25. So: test with higher slippage.
The hypothetical example: doubling slippage shows how much of the average trade depends on cheap execution.

Can you export the strategy code, or is it locked in?

Prefer software that gives you readable strategy source code for the platform you trade on. Code you can read is code you can check, change and keep. A locked-in system runs the strategy only inside the vendor's own environment, and you cannot see the rules. For automation this matters twice: the code is what the charting platform runs live, and it is what you read when a live trade does not match the backtest.

QuestionExported source codeLocked-in system
Can you read the exact rules?Yes, line by lineUsually not
Where can it run?On the platform it was exported toOnly inside the vendor's environment
Can you change a stop or a session filter?Yes, in the codeOnly if the vendor offers that setting
Can you verify the backtest elsewhere?Yes, rerun it on the target platformNo independent check

MultiAlphas exports strategy source code to MultiCharts (PowerLanguage), TradingView (Pine Script v6), TradeStation (EasyLanguage), NinjaTrader (NinjaScript), MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5). The platform export page keeps the current list. Whatever tool you use, rerun the exported strategy on the target platform over a sample period and compare the trade lists. Explain any differences by data, session settings and fill rules before you trade it. This step is the handover from the strategy layer to the platform layer, and it is the moment to confirm that both layers see the same bars and the same signals.

Exported source code lets you read the rules, change them and verify the backtest elsewhere; a locked-in system allows none of these checks Code you can check Exported code vs a locked-in system Exported Locked-in Read the rules Change the rules Verify elsewhere Locked rules hide why trades happen. So: prefer exported source code.
Exported source code can be read, changed and verified on the trading platform. A locked-in system offers none of those checks.

Which validation features should you look for?

Look for tools that test a strategy on data it was not built on and that keep track of how many variants you tried. The best backtest out of many is usually inflated. Here is an analogy. A hundred people each flip a coin ten times. One of them will probably get eight or nine heads. That person is not a skilled flipper. A strategy search works the same way: test enough variants and some will look excellent by chance. Research on data snooping and backtest overfitting describes this effect in detail (White, 2000; Bailey et al., 2014). An automated system makes this more important, not less, because it will trade an inflated strategy every day without hesitation.

Out-of-sample data is history that the strategy did not see while its rules and parameters were chosen. Validation features worth having:

  1. An out-of-sample split that you set before the search starts, with results reported separately.
  2. Walk-forward analysis. This is a repeated cycle of choosing parameters on one window of history and testing them on the next window. See walk-forward analysis: why one backtest is not enough.
  3. Parameter stability. Small changes to a parameter should not turn a good result into a bad one.
  4. Thresholds you set yourself, such as a minimum number of trades or a maximum drawdown, applied the same way to every candidate.
  5. Revalidation of saved strategies when new data arrives.
  6. Reports that split long and short trades and show performance period by period, so one lucky year cannot hide.

MultiAlphas's strategy validation offers Basic, Standard and Extensive validation, walk-forward analysis and custom thresholds.

A history split into an in-sample part used to build and tune the strategy and a later out-of-sample part used only to test it; after trying 1, 10 and 100 variants, the best of 100 looks good partly by luck More tries, less meaning Many variants were tried in-sample In-sample Out-of-sample Build and tune Test only Variants tried: 1 → 10 → 100 The best of 100 looks good by luck More variants, more luck in the best. So: judge it on out-of-sample data.
Out-of-sample data is history the strategy never saw while it was built. The more variants tried in-sample, the less the best in-sample result means.

What goes wrong live: disconnects, fills and duplicate orders?

The three most common live failures are a lost connection that leaves a position unmanaged, fills worse than the backtest assumed, and duplicate orders after a restart or a repeated signal. Each has a specific check that prevents it.

  1. A disconnect leaves a position open without its exit rules. The strategy's stop exists only inside the platform until an order reaches the broker. If the connection drops while you are long, nothing at the broker will close the trade. The check: use the platform setting that places the stop order at the broker as soon as the entry fills, so the stop lives at the broker and not only on your screen.
  2. Fills are worse than the backtest assumed. Market and stop orders fill at the next available price, and in a fast market that can be several ticks away from the signal. The check: compare your first weeks of live fills with the backtest's signal prices, and compare the average difference with the slippage you used in the test. If the live difference is larger, rerun the backtest with that slippage before deciding whether to continue.
  3. A restart creates a duplicate order. After a disconnect the platform restarts, loads history and recalculates the strategy. If the entry condition is still true on the latest bars, the strategy sees an entry signal and sends a new buy, while the broker already holds the first contract. Now you hold two contracts with the risk of one. The same thing happens when a chart alert fires twice and a bridge forwards both. The check: before any new order after a restart, reconcile the strategy position with the broker position. Most platforms have a setting for this comparison at start-up; a bridge needs a rule that ignores a second entry signal while a position is open.
A strategy long one contract restarts after a disconnect; if it buys again on the recalculated signal the broker holds two contracts, but if it reconciles with the broker first it stays long one Restarts can double a position After a disconnect, the strategy reloads Long 1 Restart Buy again Long 2 Reconcile Long 1 A repeated signal buys a second lot. So: reconcile with the broker first.
How a restart after a disconnect produces a duplicate order, and where the position check breaks the chain.

How do you monitor an automated system and stop it fast?

A live system needs three things: a daily position reconciliation between platform and broker, alerts for disconnects and rejected orders, and a kill switch you have tested. A kill switch is a single prepared action that flattens every position at the broker and disables the strategy on the platform. Think of it as the emergency stop button on a factory machine. It is only useful if you know where it is and have pressed it before, so practise the full sequence on a simulated account until it takes you under a minute.

  1. An alert fires: the connection dropped, the broker rejected an order, or the platform position differs from the broker position.
  2. Step 1: flatten all positions at the broker. Do this in the broker's own interface or app, not through the strategy, because the strategy or the platform may be the thing that failed.
  3. Step 2: disable the strategy on the platform. Otherwise the next bar may re-enter the trade you just closed.
  4. Step 3: compare broker and platform positions. Both should read zero. Only then investigate what happened.

The daily reconciliation is the quiet version of the same check. At a fixed time each day, for example after the session close, compare the open position and the day's fills on the platform with the broker's statement. A mismatch found the same day costs one phone call; a mismatch found a week later can mean a position that was never managed.

A kill switch sequence: an alert for a disconnect, rejected order or position mismatch, then flatten at the broker, disable the strategy, and check that both positions read zero Kill switch: broker first Four steps, under a minute 1 2 3 Alert: drop, reject or mismatch Flatten at the broker Disable the strategy Check: both read zero Flatten first: the platform may fail. So: practise it on a sim account.
A kill switch is a tested sequence: flatten the position at the broker, disable the strategy, then confirm both positions read zero.

What does a working setup for index futures look like?

A practical index-futures setup separates research from execution and joins the two stages with exported code and a daily check. Keeping the stages apart means a problem in one place does not silently change the other: the research settings stay fixed while the live platform does only what the exported code says.

  1. Research. Load your own bar data for the contract, set the session you intend to trade (day-only or full-session), enter commission and slippage, and search and validate strategies with an out-of-sample or walk-forward test. For TAIEX futures this means deciding up front whether the night session is part of the strategy.
  2. Export. Export the strategy source code for the charting platform you trade on, and rerun it there over a sample period. Explain every difference in the trade lists before continuing.
  3. Execution. The charting platform runs the code on live bars with the same session setting as the research, and its broker plug-in sends the orders. Turn on the setting that places stop orders at the broker, and the setting that reconciles positions at start-up.
  4. Daily check. At each session close, compare the platform position and the day's fills with the broker's records, and read the alert log for disconnects and rejected orders.
A working index-futures setup in four stages: research tests strategies with costs, export sends source code to the platform, execution runs that code live, and a daily check compares platform and broker positions Research and live, kept apart Joined by code and a daily check 1. Research Test with costs 2. Export Code to platform 3. Execution Platform runs code 4. Daily check Platform vs broker
Research and execution are separate stages joined by exported code and a daily reconciliation.

What should you check before going live?

Before any order goes live, rerun one strategy you already understand through the full chain, from data to exported code on the trading platform. You know what that strategy should do, so you can tell whether each layer reports it correctly. Hunting for a new winner at this stage tests your luck, not your setup.

  1. Load your own data for one market and check the first and last bar dates and the session times.
  2. Run a simple rule you know well, such as a moving-average crossover, on day-only bars and then on full-session bars.
  3. Open ten trades and check each entry price and time against the chart.
  4. Confirm the fill rule: is the signal filled on the same bar or the next bar?
  5. Add your real commission and one tick of slippage per side, then double the slippage and compare the average trade.
  6. Run an out-of-sample or walk-forward test and compare it with the in-sample result.
  7. Export the code and rerun it on your trading platform over the same sample period.
  8. Run the strategy on a simulated account for long enough to see a disconnect and a restart, and confirm no duplicate order appears.
  9. Press the kill switch once on the simulated account and time it.
  10. Save the results and check that you can find, sort and reopen them a week later.

What this means if you use MultiAlphas: treat it as the research stage. Search and validate strategies with your sessions and costs applied, then export the source code and run the same checks on the platform where you trade.

Frequently asked questions

Can I automate trading without any coding at all?

Yes. A charting platform can run a strategy script you did not write, a bridge can forward chart alerts to a broker, and an expert advisor runs ready-made rules inside MetaTrader 4 or MetaTrader 5. You still need to supply the missing layer, strategy, platform or broker connection, and you should be able to read the rules that produce each trade. A strategy builder that exports source code gives you the strategy layer without writing it yourself.

What happens to my position if the platform disconnects?

If the stop order was placed at the broker when the trade opened, the broker holds it and will fill it if price reaches it. If the stop existed only inside the platform, the position is open with no exit rule until the connection returns. Use the platform setting that sends stops to the broker, and keep the broker's own app available so you can flatten the position by hand.

Do I need a VPS to automate futures trading?

A VPS is a virtual private server, a rented computer in a data centre that stays on and connected. It helps if your own computer cannot run all session, if your home internet drops, or if you trade a night session while you sleep. It does not remove the need for broker-held stops, a start-up position check and a kill switch, because the platform on the VPS can still restart or lose its broker connection.

How do I stop an automated strategy immediately?

Flatten all positions in the broker's own interface first, then disable the strategy on the platform, then confirm both the broker and the platform show zero contracts. Flatten first because the platform may be the part that failed. Practise the sequence on a simulated account so that it takes under a minute when you need it.

References

  • Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5), 458–471.
  • White, H. (2000). A Reality Check for Data Snooping. Econometrica, 68(5), 1097–1126.