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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user