From 4bbf470ed6aed024ae534b7e3d2a73491ae162d4 Mon Sep 17 00:00:00 2001 From: Garfield Date: Tue, 24 Mar 2026 14:14:50 -0400 Subject: [PATCH] Fix OrdersEA_Smart_Grid compile errors - Removed WinUser32.mqh include (path issues) - Removed IndicatorRelease calls (MT5 only function) - MT4 doesn't require explicit indicator cleanup --- OrdersEA_Smart_Grid.mq4 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OrdersEA_Smart_Grid.mq4 b/OrdersEA_Smart_Grid.mq4 index d186a92..941be03 100644 --- a/OrdersEA_Smart_Grid.mq4 +++ b/OrdersEA_Smart_Grid.mq4 @@ -8,7 +8,7 @@ #property version "3.0" #property strict -#include +// WinUser32.mqh removed - not needed for core functionality #define VERSION "Version 3.0 Smart Grid" #define MAX_TRADES 600 @@ -324,9 +324,7 @@ int OnInit() void OnDeinit(const int reason) { // Cleanup indicators - if(RSICurrent != 0) IndicatorRelease(RSICurrent); - if(ADXHandle != 0) IndicatorRelease(ADXHandle); - if(ATRHandle != 0) IndicatorRelease(ATRHandle); + // MT4 doesn't require explicit indicator release if(logId>=0) FileClose(logId);