DEV Community

AlgoHand
AlgoHand

Posted on Fully Autonomous

Your EA's inputs are an interface. Document them like one.

“Start trading at nine” sounds like a clear request. An Expert Advisor might expose StartHour=9, but nine in which time zone? Does the setting affect new entries only? Does another switch disable the schedule altogether?

The customer should not have to discover those answers by trial and error. They need to come from the EA's author.

In AlgoHand, chat-based parameter changes use an EA compatibility profile. Onboarding is the process of describing the EA's inputs and reviewing how they may be used. The previous article covered how a request reaches MetaTrader through the API. This one focuses on the information an author supplies before that request can make sense.

A variable name leaves a lot unsaid

Consider these fictional inputs:

Input What the name tells us What the author still needs to explain
StartHour Probably an hour Broker time, UTC or local time? What happens when daylight saving changes?
Mode A selection Which numeric value corresponds to each option?
FixedLot A position size Is it ignored when another sizing mode is selected?
MagicNumber An identifier Does changing it affect how the EA finds its existing positions?

A chat model can produce plausible explanations for all four. Plausible is not enough when an explanation determines which setting gets changed.

Good descriptions answer the operational question. For example: “First hour for opening new positions, in broker-server time; used only when the session filter is enabled.” That sentence is more useful than “Trading start hour.” It gives the interface something concrete to explain to the customer.

Describe meaning separately from permission

AlgoHand's EA Spec Protocol uses JSON to carry parameter descriptions. Here is a simplified parameter excerpt for a fictional EA:

{
  "key": "StartHour",
  "type": "int",
  "terminal": { "default": 9 },
  "label": "Trading start hour",
  "meaning": "First hour for opening new positions, in broker-server time; used only when the session filter is enabled.",
  "unit": "hours",
  "safe_range": { "min": 0, "max": 23 },
  "requires_restart": true
}
Enter fullscreen mode Exit fullscreen mode

This is one illustrative parameter, not a complete profile to import. Provenance and permission details are omitted. The field called safe_range describes a configured range; it does not establish that choosing a particular hour is suitable for an account.

Meaning, permission and confidence answer different questions. Knowing what an input does does not mean every customer should be able to change it individually. A description generated from a manual should not silently become author-confirmed information. Missing enum labels should remain unknown until someone supplies them.

The author can review these details in the profile, including which inputs are available for individual changes. Those controls apply to requests through AlgoHand; they do not prevent manual edits inside MetaTrader.

Presets need to describe actual configurations

A preset is useful when it refers to a known set of values. “Use the London session preset” can be a specific request if the author has defined that preset and explained its time basis.

The word “conservative” is less useful on its own. It may refer to position size, trading frequency or several different controls. An assistant should not invent a configuration to make the phrase sound actionable.

When documenting a preset, include the complete set of changes and any dependencies between inputs. A defined preset may change a parameter that is unavailable for individual editing, so the customer still needs to review the full preview. Neither an allowed range nor a preset label is a promise about trading results.

Review the profile when the EA changes

An update can keep an input's name while changing its meaning. The interface cannot infer that from the name alone. After changing an EA, review its profile alongside the code and manual: types, defaults, units, enum mappings, dependencies and presets.

For Market products, AlgoHand's author workflow uses the product identity, platform, a chart template and the JSON description. The template helps cross-check exposed inputs. Importing a description does not publish it or run the EA; the author reviews and submits the profile for review. MT4 and MT5 must be identified correctly.

AlgoHand receives the description rather than the EA's source code in this workflow. If an author uses a cloud AI to draft that description from source, the source is being shared with that provider. The author should decide whether that is appropriate and review the output before submitting it.

Changing inputs reinitializes the EA. If it has open trades, check the author's guidance on changing settings while trading.

For the author, that guidance belongs in the documentation as clearly as the parameter definitions. For the customer, the benefit is practical: a request in chat can refer to the author's documented settings instead of relying on an assistant's guess.

The EA Spec Protocol schema defines the full document format. The description prompt lists the expected metadata and provenance fields; generated output still needs review.

Top comments (0)