A parameter preview can be perfectly valid and still be the wrong change for a particular trading setup. It may target the wrong chart, use the wrong time unit or reinitialize an EA while that EA is managing a position.

A useful demo test verifies the complete operation: the target, the values that changed, the values that stayed the same, initialization and the return to the original configuration. Testing only that the API accepted a number misses most of that behaviour.

Choose one small and observable change

Use a demo account and an EA whose behaviour you understand. For an integration test, a non-trading probe EA with visible inputs is preferable to a commercial strategy that can place unexpected orders.

Suppose a fictional SessionExampleEA exposes StartHour, defined by its author as an integer hour in broker-server time. Its reviewed profile permits values from 0 to 23. The test changes 8 to 9 and then returns to 8.

That example does not prescribe a useful trading schedule. It gives the operator a simple value to observe. An onboarding profile supplies definitions and permissions; it does not certify a profitable setting or make every compiled EA compatible.

Record the baseline

Identify the platform, broker login/server, AlgoHand account_id, EA instance_id, symbol and timeframe. If two EURUSD charts run the same EA, an EA name and symbol do not select a unique instance.

Read the currently observed inputs and their freshness. Where supported, request read_ea_inputs and wait for its result. The input_observation metadata distinguishes a fresh complete read from a stored or partial baseline. Missing values should remain missing rather than being filled with guessed defaults.

Also note the other charts and the current AutoTrading setting. These are useful controls: the test should not change unrelated charts or silently enable automated trading. If the platform refuses the intended action with AutoTrading OFF, inspect the reason and explicitly decide on the required demo setup; do not assume OFF means every EA-management operation is permitted.

Preview and apply once

For a custom API client, this is the preview body. The IDs and input are fictional:

{ "type": "set_param", "dry_run": true, "params": { "instance_id": "inst_example", "inputs": { "StartHour": 9 } } } 

Send it to POST /v1/accounts/{account_id}/commands through an authorized backend. Inspect the resolved target, the full diff and warnings. Obtain confirmation before execution, and preserve the approved preview hash and an idempotency key for that execution request. In AlgoHand chat, use the provided review/Apply flow.

Changing inputs reinitializes the EA. If it has open trades, check the author's guidance on changing settings while trading. MetaQuotes documents input changes as one of the EA reinitialization events. MQL5 event lifecycle

After confirming once, follow the returned command. Do not treat HTTP 202 or a visible EA name as the final result. A reported failure or unconfirmed initialization needs inspection before a second attempt.

Verify the things a single success badge cannot show

Check Expected evidence for this example
Target Same account, instance, symbol and timeframe
Changed input Fresh readback shows StartHour=9
Other inputs Baseline values remain unchanged except for any explicitly approved diff
Initialization Command result supplies the required confirmation, or clearly remains unconfirmed
Charts No unintended duplicate EA instance; unrelated charts remain
Trading switch AutoTrading matches the state deliberately selected for the test
Behaviour The probe or EA's own diagnostics match the intended parameter meaning

A backend result is evidence about its verification contract. The EA's strategy logic needs its own behavioural checks. For example, seeing StartHour=9 does not establish which timezone the EA actually uses unless its implementation or author documentation explains that input.

Return to the baseline through another reviewed change

Request StartHour=8, inspect the new preview and confirm it. Verify the return with fresh readback. Restoring a value is another EA reinitialization, so it deserves the same checks as the first change.

AlgoHand also exposes eligible configuration history from successful command receipts. This is not an archive of every manual change ever made in MetaTrader. Only receipts with suitable complete, reconciled input readback are candidates for restoration.

A historical revision can be refused if its EA/input schema or chart differs from the current instance. A revision that changes the EA's trading switch requires the explicit stop/resume path instead. Configuration restoration is therefore a validated new action, not a way to overwrite the terminal with an arbitrary old snapshot.

Keep backtesting a separate question

A Strategy Tester run can help compare strategy behaviour under two input sets. Use the same period, broker data, symbol, model and other settings when making that comparison, and retain the tester report and coverage notes.

In AlgoHand, backtests run in a separate terminal copy on the customer's VPS, with consent. They still share that machine's CPU, memory and disk. MT4 and MT5 have different tester paths: MT4's supported modelling is based on bar history rather than MT5-style real tick history. A report with missing data or an EA initialization failure is not evidence of a zero-risk strategy.

A backtest result also does not prove that a remote input-change command selected the right live chart. Keep the command workflow test and strategy performance test as separate records.

For each platform, save the command IDs, before/after observations, baseline return and any refusal reason. A compact record makes the next version of the EA or manager much easier to check without relying on memory.

Parameter permissions, commands and configuration-history endpoints are described in the AlgoHand API documentation.