# MQL4 Instruction Files - Creation Summary ## Overview Created comprehensive MQL4 instruction files based on real-world experience from developing the MultiTimeframeZone EA. These files mirror the existing MQL5 instruction structure and provide AI agents with proper context for MQL4 development. --- ## Files Created ### 1. mql4-syntax-critical.instructions.md **Purpose:** Critical syntax rules that prevent compilation errors **Location:** `.github/instructions/mql4-syntax-critical.instructions.md` **Apply To:** `**/*.mq4,**/MQL4/**/*.mqh` **Key Sections:** - Loop Variable Declaration (must declare before for-loop) - Array Declarations and Sizing - Order Functions and Trade Operations - Price and Market Information Functions - Object Properties and Chart Objects - String Operations and Formatting - Time and Date Functions - Account and Trade Information - Global Variables vs Input Parameters - Common Pitfalls and Best Practices - Compilation and Testing Checklists - MQL4 vs MQL5 Comparison Table **Critical Rules Covered:** - ✅ Declare loop variables BEFORE for-loop: `int i; for(i=0; i