Mql5 Indicator Patterns
Practical MQL5 indicator patterns covering display scaling, buffer setup, new-bar detection, and warmup handling for MetaTrader 5.
- CCM score
- 52 of 100
- skills.sh installs
- 539
- GitHub stars
- 5
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers display scale fixes, visible and hidden buffer architecture, recalculation state, warmup via PLOT_DRAW_BEGIN, and a full working template
- Includes a troubleshooting table mapping blank windows, drifting values, misaligned plots, and reversed array indexing to their fixes
- Enforces forward indexing with
ArraySetAsSeries(buffer, false)and matching#property indicator_bufferstoSetIndexBuffercalls - Designed for developers writing or debugging custom MetaTrader 5 indicators with OnCalculate
Install
$ npx -y skills add terrylica/cc-skills --skill mql5-indicator-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
MQL5 Visual Indicator Patterns
Battle-tested patterns for creating custom MQL5 indicators with proper display, buffer management, and real-time updates.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
When to Use This Skill
Use this skill when:
- Creating custom MQL5 indicators for MetaTrader 5
- Debugging indicator display or buffer issues
- Setting up OnCalculate with proper warmup handling
- Implementing new bar detection patterns
Quick Reference
Essential Patterns
Display Scale (for small values < 1.0):
IndicatorSetDouble(INDICATOR_MINIMUM, 0.0);
IndicatorSetDouble(INDICATOR_MAXIMUM, 0.1);
Buffer Setup (visible + hidden):
SetIndexBuffer(0, BufVisible, INDICATOR_DATA); // Visible
SetIndexBuffer(1, BufHidden, INDICATOR_CALCULATIONS); // Hidden
New Bar Detection (prevents drift):
static int last_processed_bar = -1;
bool is_new_bar = (i > last_processed_bar);
Warmup Calculation:
Details
- Repository
- github.com/terrylica/cc-skills
- Category
- Finance & Trading
- First seen
- Jun 3, 2026
Questions
What does the mql5-indicator-patterns skill help with?
mql5-indicator-patterns gives patterns for building custom MQL5 indicators in MetaTrader 5, covering display scale, buffer setup, new bar detection, and warmup calculation. It also includes a troubleshooting table for common indicator problems such as blank windows and drifting values.
How do I install the mql5-indicator-patterns skill?
Run npx -y skills add terrylica/cc-skills --skill mql5-indicator-patterns -y in a project to install it. Once installed, mql5-indicator-patterns guides the agent through OnCalculate, indicator buffers and MetaTrader 5 indicator work.
Which skills are listed alongside mql5-indicator-patterns in Finance & Trading?
mql5-indicator-patterns is listed under Finance & Trading next to wind-mcp-skill, stripe-best-practices, wind-find-finance-skill, convex-billing and create-payment-credential. Its own focus is MQL5 visual indicators, with buffer management and real-time updates.
When should I use mql5-indicator-patterns?
Use mql5-indicator-patterns when creating custom MQL5 indicators, debugging indicator display or buffer issues, or setting up OnCalculate with warmup handling. It also suits implementing new bar detection patterns in MetaTrader 5 indicators.
More from terrylica/cc-skills
All 3Similar to Mql5 Indicator Patterns
More Finance & Tradingmql-developerthomaspraun/mql-developer459 installsComprehensive MQL4 and MQL5 development guide for MetaTrader EAs, indicators, scripts, and integrations.
chartingstarchild-ai-agent/official-skills4.4K installsGenerate TradingView-style candlestick charts with technical indicators for price visualization.
indicator-chartmarketcalls/openalgo-indicator-skills717 installsA Plotly chart generator that overlays or stacks any openalgo.ta indicator on a symbol's candlesticks.
indicator-dashboardmarketcalls/openalgo-indicator-skills623 installsInteractive Plotly Dash or Streamlit dashboard for technical indicator analysis, with single, multi-symbol, multi-timeframe, and scanner layouts.
data-visualizationanthropics/knowledge-work-plugins15.8K installsChart selection guidance, matplotlib, seaborn, and plotly code patterns, and design rules for accessible, publication-quality figures.
technical-analysisomer-metin/skills-for-antigravity2.1K installsTechnical analysis framework combining Wyckoff and Dow theory with statistical validation of chart patterns and indicators.