
Mql5 Indicator Patterns
If you're building custom indicators for MetaTrader 5, this covers the stuff that actually breaks in production. It's a collection of battle-tested patterns for OnCalculate functions, buffer management, and display scaling. The troubleshooting table alone is worth it: blank indicator windows (forgot to set scale for small values), drifting calculations (no new bar detection), misaligned plots (wrong warmup math). It's clearly written by someone who debugged these issues the hard way. The self-evolving approach means it gets updated when real problems surface, not just theoretical ones. Best used when you're past the basics and hitting the weird edge cases that MT5 documentation doesn't cover well.
- skills.sh installs
- 511
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add terrylica/cc-skills --skill mql5-indicator-patterns --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/terrylica/cc-skills
- First seen
- Jun 3, 2026