13otkmdr/mt5-algolab/timeframe-scaling
Claude Code and agent skill by 13otkmdr/mt5-algolab
- community
Checking that the SKILL.md file is still in the repository.
Automatic parameter scaling based on timeframe for discovery configs
Install
npx vskill@latest install 13otkmdr/mt5-algolab/timeframe-scalingSKILL.md
The same SKILL.md was published earlier as 13otkmdr/mt5-algolab/timeframe-scaling.
Timeframe Scaling Skill
The discovery engine automatically scales parameters based on timeframe. You only need to maintain H1-optimized configs - the system handles H4, D1, and other timeframes automatically.
How It Works
- Config files use H1 base parameters - All configs (even H4/D1) store H1-optimized values
- Timeframe field triggers scaling - The
symbol_settings.timeframevalue determines what scaling to apply - Scaling happens at runtime - When an analyzer loads a config,
apply_timeframe_scaling()adjusts parameters automatically
Implementation
The scaling is implemented in DiscoveryEngine/utils/timeframe_scaling.py and integrated into all main analyzers:
main_trigger_analyzer.pymain_confirmation_analyzer.pymain_baseline_analyzer.pymain_volume_analyzer.pymain_exit_analyzer.py
Scaling Rules
forward_bars (auto-adjusted)
| Timeframe | forward_bars | Real Duration | |
|---|---|---|---|
| M1 | 60 | 1 hour | |
| M5 | 48 | 4 hours | |
| M15 | 32 | 8 hours | |
| M30 | 16 | 8 hours | |
| H1 | 14 | 14 hours (base) | |
| H4 | 5 | 20 hours | |
| D1 | 5 | 5 trading days | |
| W1 | 3 | 3 weeks |
data_count (auto-adjusted)
| Timeframe | data_count | Approx Duration | |
|---|---|---|---|
| M1 | 10,000 | ~7 days | |
| M5 | 10,000 | ~35 days | |
| M15 | 8,000 | ~80 days | |
| M30 | 6,000 | ~125 days | |
| H1 | 5,000 | ~208 days | |
| H4 | 3,000 | ~500 days | |
| D1 | 2,500 | ~7 years | |
| W1 | 500 | ~10 years |
Indicator Periods (auto-scaled using sqrt)
The scaling factor is sqrt(target_minutes / H1_minutes):
- H4:
sqrt(4)= 2.0x H1 values - D1:
sqrt(24)= 4.9x H1 values
Example for CCI with H1 range [14, 28, 2]:
- H4:
[28, 56, 4](2x) - D1:
[69, 137, 10](~5x)
Config File Guidelines
DO: Use H1 base parameters everywhere
DON'T: Pre-scale parameters manually
If you manually pre-scale AND the system also scales, you'll get double-scaling.
Creating New Configs
To create a new timeframe config:
- Copy the H1 config as your template
- Change only these fields:
timeframe: Set to target (H4, D1, etc.)output_file: Update filename suffix- Input file references (e.g.,
trigger_results_file)
- Keep all param_ranges as H1 values - they scale automatically
Testing the Scaling
Supported Timeframes
M1, M5, M15, M30, H1 (base reference), H4, D1, W1, MN1
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/timeframe-scaling/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/13otkmdr/mt5-algolab/timeframe-scaling)