agentleFS
kecoma1kecoma1/MQL5-SKILLS/skills/analyze/SKILL.md

analyze

Skill17 starsChanged 8 months agoMITView on GitHub

Analyze market regime and session structure in this MQL5 workspace using reusable CSV exports from an MQL5 script. Use when Codex needs to classify a market as Tendencial or Lateral with moving average and ATR, export per-session data to Terminal Common Files for M15, H1, and D1, and then read those CSV files directly to summarize insights and recommendations by session without recreating scripts that already exist.

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ralplan, ultrawork and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • an8079Skill

    ralplan

    Also in 3 projects that use this

  • zephyrpersonalSkill

    ultrawork

    Obsessive task completion mode (Sisyphus Mode) - activates maximum intensity work with todo continuation enforcement

    Also in 3 projects that use this

  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 4 projects that use this

  • ElliotJLTSkill

    pipeline

    Orchestration pattern for sequential, dependent tasks. When work must flow through stages where each stage depends on the previous (design → implement → test → review), structure as a pipeline with explicit handoffs. Each stage completes before the next begins.

    Also in 4 projects that use this

  • yunseo-kimSkill

    git-master

    MUST USE for ANY git operations. Atomic commits, rebase/squash, cherry-pick, worktree, reflog recovery, and history search (blame, bisect, log -S). STRONGLY RECOMMENDED: Use with task(category='quick', load_skills=['git-master'], ...) to save context. Triggers: 'commit', 'rebase', 'squash', 'cherry-pick', 'worktree', 'reflog', 'who wrote', 'when was X added', 'find the commit that'.

    Also in 3 projects that use this

  • aviz85Skill

    deep-interview

    Conduct deep adaptive interviews to extract and organize knowledge into structured files and folders. Use when user says "interview me about X", "deep interview", "extract my knowledge", "build knowledge base from interview", "ask me questions about X", or wants to systematically capture expertise on any topic through guided questioning.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 14 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to analyze markets by session in this workspace.

    line 10
  2. Distinctive:

    Keep the workflow simple:

    line 12
  3. Distinctive:

    read the CSV directly

    line 14
  4. Distinctive:

    Do not create HTML reports.

    line 17
  5. Distinctive:

    Do not rely on Python for this workflow.

    line 18
  6. Distinctive:

    Use these files as the primary workflow:

    line 22
  7. Distinctive:

    Do not recreate them on each request.

    line 28
  8. Very specific:

    Create or update a script preset under MQL5\Presets\ with plain script values.

    line 46
  9. Very specific:

    Create or update a startup .ini under MQL5\config\ using [StartUp] Script=....

    line 47
  10. Distinctive:

    Read the generated CSV files directly and summarize them for the user.

    line 51
  11. Very specific:

    Do not use the optimization format value||start||step||stop||selected in a script preset.

    line 70
  12. Distinctive:

    Treat these CSV files as the source of truth.

    line 119
  13. Distinctive:

    Use these session buckets for intraday analysis:

    line 123
  14. Distinctive:

    Treat these windows as UTC unless the script or user explicitly changes them.

    line 131
  15. Distinctive:

    Use the exported values directly.

    line 140
  16. Distinctive:

    When answering the user, summarize:

    line 144
  17. Distinctive:

    Keep the tone analytical and concise.

    line 152

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Analyze

Overview

Use this skill to analyze markets by session in this workspace.

Keep the workflow simple:

  • export CSV data with the MQL5 script
  • read the CSV directly
  • answer the user from the exported data

Do not create HTML reports. Do not rely on Python for this workflow.

Reusable files

Use these files as the primary workflow:

  • Scripts\codex\SessionMarketExporter.mq5
  • Presets\SessionMarketExporter-<SYMBOL>-lastyear.set
  • config\session-market-exporter-<symbol>-lastyear.ini

Do not recreate them on each request. Reuse them and only update them when the export logic is actually wrong.

Goal

Produce session-level market analysis for M15, H1, and D1 with:

  • Session name
  • Moving average context
  • ATR context
  • Market type: Tendencial or Lateral
  • Trend direction
  • Session volatility
  • Session insights
  • Session recommendations

Export workflow

  1. Compile Scripts\codex\SessionMarketExporter.mq5.
  2. Create or update a script preset under MQL5\Presets\ with plain script values.
  3. Create or update a startup .ini under MQL5\config\ using [StartUp] Script=....
  4. Close any running terminal64.exe before launching.
  5. Launch MT5 with /config:....
  6. Export CSV files into Terminal\Common\Files\.
  7. Read the generated CSV files directly and summarize them for the user.

Script preset rule

For ScriptParameters, use a normal script preset with simple key=value lines.

Correct example:

InpSymbol=EURUSD
InpLookbackDays=365
InpMAPeriod=20
InpMAMethod=0
InpATRPeriod=14
InpTrendSlopeAtrRatio=0.15
InpTrendDistanceAtrRatio=0.20
InpOutputPrefix=session_market

Do not use the optimization format value||start||step||stop||selected in a script preset. That format is for optimization, not for scripts.

Startup ini pattern

Use this structure:

[Common]
Login=4000030114

[Experts]
Enabled=1

[StartUp]
Symbol=EURUSD
Period=M15
Script=codex\SessionMarketExporter
ScriptParameters=SessionMarketExporter-EURUSD-lastyear.set
ShutdownTerminal=1

The Script= path is relative to MQL5\Scripts\. The ScriptParameters= file is loaded from MQL5\Presets\.

Exported CSV files

Expect one CSV per timeframe:

  • session_market_<SYMBOL>_M15.csv
  • session_market_<SYMBOL>_H1.csv
  • session_market_<SYMBOL>_D1.csv

In this workspace they are currently exported directly under:

  • C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\Common\Files\

CSV expectations

The exported CSV should include fields like:

  • session
  • ma_value
  • ma_slope_points
  • atr_points
  • distance_to_ma_points
  • trend_direction
  • market_type
  • trend_score

Treat these CSV files as the source of truth.

Session model

Use these session buckets for intraday analysis:

  • Asia: 00:00-08:00
  • London: 08:00-16:00
  • NewYork: 16:00-24:00

For D1, use a single Daily session.

Treat these windows as UTC unless the script or user explicitly changes them.

Interpretation rules

  • Tendencial: moving average slope and price-vs-MA distance are large enough relative to ATR.
  • Lateral: MA slope and distance-to-MA do not show directional expansion versus ATR.
  • Volatilidad Alta: current ATR is materially above the session median.
  • Volatilidad Baja: current ATR is materially below the session median.

Use the exported values directly. Do not invent extra indicators that are not in the CSV.

Final analysis format

When answering the user, summarize:

  • the current regime for each timeframe
  • the regime by session
  • the volatility by session
  • practical recommendations by session
  • any cross-timeframe alignment or conflict

Keep the tone analytical and concise.

Example commands

Compile:

& 'C:\Program Files\MetaTrader 5\MetaEditor64.exe' /compile:'C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\Scripts\codex\SessionMarketExporter.mq5' /log:'C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\Logs\session-market-exporter-compile.log'

Run the exporter:

Get-Process terminal64 -ErrorAction SilentlyContinue | Stop-Process -Force
Start-Sleep -Seconds 2
Start-Process -FilePath 'C:\Program Files\MetaTrader 5\terminal64.exe' -ArgumentList '/config:C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\config\session-market-exporter-eurusd-lastyear.ini' -Wait

Validated paths in this workspace

  • C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\Common\Files\session_market_EURUSD_M15.csv
  • C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\Common\Files\session_market_EURUSD_H1.csv
  • C:\Users\user-id\AppData\Roaming\MetaQuotes\Terminal\Common\Files\session_market_EURUSD_D1.csv

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.