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);