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 version "3.0"
|
||||||
#property strict
|
#property strict
|
||||||
|
|
||||||
#include <WinUser32.mqh>
|
// WinUser32.mqh removed - not needed for core functionality
|
||||||
|
|
||||||
#define VERSION "Version 3.0 Smart Grid"
|
#define VERSION "Version 3.0 Smart Grid"
|
||||||
#define MAX_TRADES 600
|
#define MAX_TRADES 600
|
||||||
@@ -324,9 +324,7 @@ int OnInit()
|
|||||||
void OnDeinit(const int reason)
|
void OnDeinit(const int reason)
|
||||||
{
|
{
|
||||||
// Cleanup indicators
|
// Cleanup indicators
|
||||||
if(RSICurrent != 0) IndicatorRelease(RSICurrent);
|
// MT4 doesn't require explicit indicator release
|
||||||
if(ADXHandle != 0) IndicatorRelease(ADXHandle);
|
|
||||||
if(ATRHandle != 0) IndicatorRelease(ATRHandle);
|
|
||||||
|
|
||||||
if(logId>=0)
|
if(logId>=0)
|
||||||
FileClose(logId);
|
FileClose(logId);
|
||||||
|
|||||||
Reference in New Issue
Block a user