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
This commit is contained in:
2026-03-24 14:14:50 -04:00
parent 73d420c2c2
commit 4bbf470ed6

View File

@@ -8,7 +8,7 @@
#property version "3.0"
#property strict
#include <WinUser32.mqh>
// 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);