Attach CheckForGuard Event Handler for Signallers to Handle Guards ...

This commit is contained in:
2025-09-11 15:19:56 +03:30
parent 5eaeb13087
commit 94539b2b5d
7 changed files with 321 additions and 196 deletions
+10
View File
@@ -22,6 +22,7 @@
//
// Imports ...
#include "../Libraries/x-saherelm.common.lib.mq5"
#include "../Libraries/x-saherelm.x-guard.lib.mq5"
#include <Trade/Trade.mqh>
//
@@ -3752,6 +3753,15 @@ typedef bool (*TCanAnalyse)(
datetime _time //
);
//
// an Event Type for Notify Guard Triggered ...
typedef void (*TOnGuarded)(
ENUM_X_GUARD_ACTIONS guard,
XPosition &positions[]);
//
typedef int (*TCheckForGuard)(XGuard &guards[]);
//
typedef void (*TOnDealsChanged)(int count);