13otkmdr/mt5-algolab/timeframe-scaling

Claude Code and agent skill by 13otkmdr/mt5-algolab

Trust tier 3
  • community
Source check pending

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-scaling

SKILL.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

  1. Config files use H1 base parameters - All configs (even H4/D1) store H1-optimized values
  2. Timeframe field triggers scaling - The symbol_settings.timeframe value determines what scaling to apply
  3. 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.py
  • main_confirmation_analyzer.py
  • main_baseline_analyzer.py
  • main_volume_analyzer.py
  • main_exit_analyzer.py

Scaling Rules

forward_bars (auto-adjusted)
Timeframeforward_barsReal Duration
M1601 hour
M5484 hours
M15328 hours
M30168 hours
H11414 hours (base)
H4520 hours
D155 trading days
W133 weeks
data_count (auto-adjusted)
Timeframedata_countApprox Duration
M110,000~7 days
M510,000~35 days
M158,000~80 days
M306,000~125 days
H15,000~208 days
H43,000~500 days
D12,500~7 years
W1500~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
json
{
"symbol_settings": {
"timeframe": "D1", // <-- This triggers D1 scaling
"data_count": 5000, // <-- H1 base value (will be scaled to 2500)
"forward_bars": 14 // <-- H1 base value (will be scaled to 5)
},
"indicators": [
{
"name": "CCI",
"param_ranges": {
"period": [14, 28, 2] // <-- H1 base values (auto-scaled)
}
}
]
}
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:

  1. Copy the H1 config as your template
  2. Change only these fields:
  • timeframe: Set to target (H4, D1, etc.)
  • output_file: Update filename suffix
  • Input file references (e.g., trigger_results_file)
  1. Keep all param_ranges as H1 values - they scale automatically

Testing the Scaling

python
from DiscoveryEngine.utils.timeframe_scaling import get_scaling_factor
scale = get_scaling_factor('D1') # Returns ~4.9
print(f"D1 scaling factor: {scale}")

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/13otkmdr/mt5-algolab/timeframe-scaling/badge)](https://verified-skill.com/skills/13otkmdr/mt5-algolab/timeframe-scaling)

Something wrong with this skill or its page? Tell us.