Commit Graph

2 Commits

Author SHA1 Message Date
2e1c617e73 Fix compile error in OrdersEA - variable scope issue
Line 142: 'i' was declared inside for loop, not accessible outside.
Fixed by declaring 'i' before the loop:
  int i=0;
  for(i=0; i<logTicketsCounter; i++)
2026-03-24 13:38:42 -04:00
c415cd9919 Convert OrdersEA to proper MT5 syntax (v2.0)
Major changes for MT5 compatibility:
- Replaced MT4 OrderSelect() with MT5 PositionGet/HistorySelect
- Replaced MarketInfo() with SymbolInfoDouble/Integer
- Replaced Bid/Ask/Digits/Point globals with function calls
- Updated trade functions to use CTrade class
- Changed ticket types from int to ulong
- Replaced WindowExpertName() with MQLInfoString()
- Replaced IsOptimization() with MQLInfoInteger()
- Updated copyright to Garfield Heron / fetcherpay.com

Note: Full grid logic needs comprehensive testing
2026-03-24 13:04:46 -04:00