Specs for MetaTrader 5 Expert Advisors and indicators
First, a clear spec. Then, the code.
Paste your idea, rules or code — ToSpeca helps turn what’s unsaid into questions and your answers into a spec. Your developer or AI coding agent writes the code from it.
Works with: an idea or rules · Pine Script · MQL4/MQL5
Free beta · usage limits · email sign-in
Diagram: ambiguous phrases in a trader’s note are marked. The note becomes requirements labelled by origin: from the material, question, your decision, implementer’s choice. While items remain open the spec is a draft. Once a version is locked, it goes to an MQL5 developer or an AI coding agent.
§ 01Why a spec
One sentence, three different programs
“Buy when RSI comes out of oversold”
It’s clear to you. Whoever writes the code still has questions — and without you, they’ll answer them on their own.
What you meant
RSI closed above 30 — enter on the next candle.
What the developer read
Enter as soon as RSI crosses 30 inside the candle.
What the AI agent filled in
Level 25 — there was no number, so it picked one.
Illustrative example
ToSpeca helps surface the missing decisions before development starts. You decide what the program should do.
§ 02How it works
Try it: from a note to a frozen spec
A synthetic example right on this page: no AI, no sign-up, nothing is saved. Numbers in the options are examples, not advice.
Paste your material
An idea, rules or code. Choose an Expert Advisor or an indicator.
Check and answer
Confirm the reading, answer the questions, mark what isn’t used or leave the choice to the implementer.
Freeze a version
That version is what the implementer gets.
Material
A trader’s note, pasted as textMT5 Expert Advisor01 on RSI(14)02. Buy when RSI comes out of oversold04, sell when it comes out of overbought04. Small lot06. Close on the opposite signal03.
Underlined: what the requirements rely on. What the note doesn’t say — levels, signal check, stop loss, restarts — becomes questions.
Spec · draft
Left to settle: 701–03From the materialFrom material
01Program type
Expert Advisor for MetaTrader 5.
“MT5 Expert Advisor”
02Indicator
RSI with period 14.
“RSI(14)”
03Exit
The position is closed on the opposite signal.
“Close on the opposite signal”
04Signal levelsQuestion
Which RSI levels are “oversold” and “overbought”? The note has no numbers.
“comes out of oversold”, “comes out of overbought”
05When the signal is checkedQuestion
When should the entry condition be checked?
Not in the material
06Position volumeQuestion
“Small” isn’t a number. How is volume set?
“Small lot”
07Stop lossQuestion
Is a stop loss needed?
Not in the material
08Restart with an open positionQuestion
The terminal restarted while a position is open. What happens?
Not in the material
09Acceptance checkWaiting for an answer
Appears once you answer when the signal is checked.
Not in the material
Settle the remaining items first.
Handoff
The frozen version appears here: a document for a developer and Markdown for an AI agent.
§ 03Who writes the code
One spec, two ways to the code
Rules, decisions and acceptance checks travel together in one frozen version. The code is written by whoever you choose.
- Your materialidea, rules, Pine Script, MQL
- ToSpeca
- reading · questions · decisions
- Spec · version 1
- Outside ToSpeca
- MQL5 developerAI agent
- EA or indicator code
To an MQL5 developer
One version instead of a chat thread: your decisions and what’s left to their judgement.
- A link, no account needed
- PDF via print
- Acceptance checks
To an AI coding agent
Markdown with explicit rules, inputs and scope, so the agent has less to fill in.
- You hand over the file — no integration
- Checks to verify the code against
You check the implementation against the spec’s acceptance checks. ToSpeca doesn’t write or test code.
§ 04Scope
What to bring and what you get
Material
- An idea or rules as text
- Pine Script
- MQL4 or MQL5
Code is a source of requirements, not a conversion to MQL5. A short note works too — it just means more questions.
Spec
For a MetaTrader 5 Expert Advisor or indicator. As the task needs:
- the idea, its boundaries and terms
- symbols, timeframes, signals
- entries, exits, positions — or calculation and display
- configurable inputs and edge cases
- examples and acceptance checks
Handoff
- Markdown
- PDF via print
- A link to the version — no account needed, revocable
Not included yet
- PDF, DOCX or screenshots as material
- Code generation
- Panels, scripts and libraries
- Collaboration, API and JSON
§ 05Principles
AI proposes. You decide.
AI reads the material and proposes wording. It can be wrong — the spec is defined by your decisions.
Origin is visible
Yours, from the material and left to the implementer — told apart.
Missing means a question
No trading value is filled in silently.
Decisions can be revisited
Related items are marked for another look.
Versions are frozen
Markdown, PDF and the link are the same version.
These are design principles of the product, not a promise of error-free AI.
§ 06Terms
Before you start
Free
An early beta: free, with usage limits. No payments or subscriptions.
Email sign-in; you confirm the address before AI features run. The service is for adults.
Beta termsWhat ToSpeca doesn’t do
- Not a broker, terminal or signal provider
- Doesn’t connect to your trading account
- Doesn’t write code or backtest the strategy
- Doesn’t promise returns or certify code
A finished spec means the requirements are agreed — not that the idea is good.
Your material
Projects are closed to other users. You create and revoke the link to a version; downloaded copies stay with recipients.
For AI work, parts of your material may go to model providers. Our staff and contractors reach data only as far as their task needs.
Privacy policy§ 07Articles
What to settle before you order
What a developer needs before you ask them to build, quote or review an MT5 strategy.
Start with what you already have
Decide what your rules mean before anyone writes the code.
Free beta · usage limits · email sign-in · Already registered? Sign in