Datafeeds
AlgoQuant Studio stores local datafeed and execution broker configurations that the editor, chart view, backtests, and live strategy runs can use.
Where to configure datafeeds
Section titled “Where to configure datafeeds”Open Settings → Data Feed to manage connections.
From this screen you can:
- add built-in or external datafeeds
- add execution broker connections
- give each connection a display name
- test connection settings
- select configured feeds from charts, strategy editor runtime settings, and strategy detail market-data settings
Display names are shown in AQS as Display Name (Provider) so you can keep multiple connections to the same provider clear.
MT5 datafeed setup in AQS
Section titled “MT5 datafeed setup in AQS”To use MetaTrader 5 market data in AQS:
- Open Settings → Data Feed.
- Select Add Broker → MT5.
- Enter an optional display name.
- Enter your MT5 account id, server, password, and
AQE_MT5_BRIDGE_TOKEN. - Leave Bridge Bind Address empty to use the default
127.0.0.1:18080, or set a different local address if you run multiple bridges. - Set an optional test symbol. If omitted, AQS uses
BTCUSD. - Click Test Connection to confirm account access, symbol metadata, and latest quote retrieval.
AQS uses the configured MT5 datafeed for chart candles, current prices in active insight views, and historical data loading where the selected runtime supports it.
MT5 broker setup in AQS
Section titled “MT5 broker setup in AQS”To use MT5 for live execution:
- Add an MT5 Broker connection from Settings → Data Feed.
- Use the same bridge token and bind address as the MT5 datafeed that will provide market data.
- In the editor runtime configuration, select the MT5 datafeed and MT5 broker for live mode.
- Start with a small test size and verify fills, stops, and open positions in the MT5 terminal.
Backtests can use an MT5 datafeed for historical candles, but backtest execution uses the paper broker. Live execution is where the MT5 broker connection is used.
Setting up the MT5 EA
Section titled “Setting up the MT5 EA”The AQS settings above assume the AQE MT5 Expert Advisor is already installed and attached to MetaTrader 5 with matching bridge settings.
For the engine-side bridge and Expert Advisor setup, see MT5 Broker and Datafeed.
Common checks
Section titled “Common checks”- The MT5 terminal is open and signed in.
- The AQE Expert Advisor is attached to a chart and allowed to run.
- The AQS token matches the Expert Advisor token.
- The bridge bind address matches on both sides.
- The test symbol exists on your broker and uses the exact broker symbol name.
- If AQS reports that the account already has an execution owner, inspect and stop the existing strategy before starting a replacement. Changing the bridge port does not resolve account ownership.
Choose data and execution independently
Section titled “Choose data and execution independently”The Data Feed supplies prices and history; the Execution Broker receives orders. Select both in the Strategy Editor configuration. Backtests use PaperBroker even when the project has an MT5 execution connection selected for live runs.
Changing the market-data selection in a live strategy’s detail view changes the prices AQS displays. It does not change the running AQE strategy’s datafeed or execution connection. Rebuild and redeploy the strategy when its runtime configuration needs to change.
Understand the displayed quote
Section titled “Understand the displayed quote”In the current 0.2.0 development version, MT5 can stream sampled bid and ask prices independently of candle updates. Yahoo provides synthetic quotes derived from its latest polled minute candle: bid and ask both equal the close. A synthetic quote is not a tradable spread or a real-time exchange quote.
Check the quote source and timestamp when reviewing an insight. Backtest quotes come from replayed bars, not the current market.
Check execution limits
Section titled “Check execution limits”The current engine distinguishes the maximum size of one order, the total allowed quantity for a symbol and the account’s pending-order ceiling. Update the MT5 Expert Advisor with the matching engine version so the broker’s limits are available.
If a submission is refused, inspect the insight history and broker message before reducing the size or rerunning. Paper execution does not reproduce every live broker capacity rule.
We use essential cookies and storage for sign-in, account security, colour theme preferences, this notice, and required PostHog internal usage, session quality, and reliability metrics. We do not use advertising cookies.
