candles-and-series
Use when working with MqlRates arrays, candles, or time series in MQL5 in this workspace.
Skill by kecoma1
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kecoma1-candles-and-series
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/candles-and-series
What's inside
- Skill name
candles-and-series- Description
- Use when working with MqlRates arrays, candles, or time series in MQL5 in this workspace. Follow the local convention for treating index 0 as the most recent candle by explicitly enabling series mode.
- License
- MIT
- Instructions
- 84 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Candles And Series Use this skill when loading or processing candles in MQL5 with `MqlRates[]`, `CopyRates`, `CopyOpen`, `CopyHigh`, `CopyLow`, `CopyClose`, or similar functions. ## Rule When the logic depends on candle `0` being the most recent candle, always call: ```mq5 ArraySetAsSeries(array, true); ``` Apply this before reading the array contents. In this workspace, the default expectation for candle-processing logic is: - index `0`: most recent candle - index `1`: previous candle - index `2`: older candle ## Example ```mq5 MqlRates rates[]; ArraySetAsSeries(rates, true); int copied = CopyRates(_Symbol, _Period, 0, 3, rates); if(copied < 3) return false; double current_open = rates[0].open; double previous_high = rates[1].high; double older_low = rates[2].low; ``` ## Validation Before trusting candle logic, verify these points: 1. `ArraySetAsSeries(..., true)` is applied when the code expects candle `0` to be the latest. 2. `CopyRates(...)` loads only the number of candles actually needed for the pattern. 3. The code does not mix series-style indexing with chronological indexing by mistake. 4. Conditions that refer to candle 1, 2, or 3 are mapped explicitly to the intended indices. ## Closed Candles For patterns that must be built only from closed candles, do not use `CopyRates(..., 0, ...)` if the current forming candle must be excluded. In those cases, start from `1`, so `rates[0]` represents the last closed candle. ## Recalculation Vs Entry Separate these two responsibilities explicitly: - when the pattern is recalculated - when entry conditions are evaluated If the pattern depends on closed candles, it can be recalculated on a new bar. If the entry depends on price crossing a level, that condition may need to be checked on every tick. ## Candle Numbering When a pattern depends on candle numbering, the convention must be written explicitly. It is not enough to say `ArraySetAsSeries(..., true)`. Also state what each index means in that context, for example: - `rates[0]` = last closed candle when using `CopyRates(..., 1, ...)` - `rates[1]` = previous closed candle - `rates[2]` = third closed candle back ## Pattern Debugging When there is doubt about a candle-pattern calculation, create a separate EA test. That EA should print times, OHLC values, indices, and pattern results so the calculation can be validated without mixing it with trading logic. ## Function Ownership If a class or function is responsible for calculating a pattern, it should also load the candles inside that same function. Do not split that responsibility between the EA and the class, because that can make each place use a different window, a different shift, or a different array orientation.
From kecoma1/MQL5-SKILLS, MIT.
More from kecoma1/MQL5-SKILLS
- 0.647score
captions-davinci
kecoma1
Generar y quemar subtitulos animados en un short vertical a partir de la transcripcion por palabras, con el estilo fijo del usuario guardado en style.json -…
SkillAFreshness: A★ 18Claude Code +9 - 0.647score
edit-davinci
kecoma1
Lanzar, preparar y manejar DaVinci Resolve desde el MCP para edicion basica - conectar con el bridge, crear y configurar el proyecto, importar video, recortar…
SkillAFreshness: A★ 18Claude Code +9 - 0.553score
orquestate
kecoma1
Orquestar cuentas MetaTrader 5 del workspace actual usando MQL5\Scripts\interface.py, archivos accounts/account_id/info.md, accounts/account_id/bots.ini y…
SkillCFreshness: C★ 18Claude Code +9 - 0.487score
git
kecoma1
Use when creating branches, writing commits, or following repository Git conventions in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
expert-advisors
kecoma1
Use when creating or editing MQL5 expert advisors in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
paint-objects
kecoma1
Use when drawing or updating chart objects in MQL5 for this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
forge
kecoma1
Work with Forge-hosted Git repositories from this workspace, including login, staged commits, and push workflows.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
analyze
kecoma1
Analyze market regime and session structure in this MQL5 workspace using reusable CSV exports from an MQL5 script.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
compile-mql5
kecoma1
Use when compiling MQL5 experts, indicators, scripts, or include-dependent code in this workspace from the terminal.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
interface
kecoma1
Use the local MetaTrader 5 Python trading CLI at MQL5\Scripts\interface.py.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
run-backtests
kecoma1
Use when running MetaTrader 5 Strategy Tester backtests from the terminal in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.479score
optimization
kecoma1
Run MetaTrader 5 parameter optimizations in this workspace and summarize real results from exported optimization reports.
SkillDFreshness: D★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 9
- Open issues
- 1
- Last commit (this folder)
- Apr 3, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kecoma1/MQL5-SKILLS
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kecoma1
- 0.647score
captions-davinci
kecoma1
Generar y quemar subtitulos animados en un short vertical a partir de la transcripcion por palabras, con el estilo fijo del usuario guardado en style.json -…
SkillAFreshness: A★ 18Claude Code +9 - 0.647score
edit-davinci
kecoma1
Lanzar, preparar y manejar DaVinci Resolve desde el MCP para edicion basica - conectar con el bridge, crear y configurar el proyecto, importar video, recortar…
SkillAFreshness: A★ 18Claude Code +9 - 0.553score
orquestate
kecoma1
Orquestar cuentas MetaTrader 5 del workspace actual usando MQL5\Scripts\interface.py, archivos accounts/account_id/info.md, accounts/account_id/bots.ini y…
SkillCFreshness: C★ 18Claude Code +9 - 0.487score
git
kecoma1
Use when creating branches, writing commits, or following repository Git conventions in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
expert-advisors
kecoma1
Use when creating or editing MQL5 expert advisors in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
paint-objects
kecoma1
Use when drawing or updating chart objects in MQL5 for this workspace.
SkillDFreshness: D★ 18Claude Code +9
Cite this page
candles-and-series skill. Agent Mart. https://agentmart.dev/skills/kecoma1-candles-and-series (last updated 2026-10-24)