This commit is contained in:
2024-12-29 17:46:35 +03:30
parent e831ce8a91
commit c92f2570c7
12 changed files with 944 additions and 864 deletions
@@ -26,6 +26,7 @@
#include "../../Classes/x-saherelm.x-alert.class.mq5"
#include "../../Classes/x-saherelm.x-bar.analyser.class.mq5"
#include "../../Classes/x-saherelm.x-trade.class.mq5"
#include "../../Classes/x-saherelm.x-poi.drawer.class.mq5"
//
// Definitions ...
@@ -2204,6 +2205,32 @@ class XC121SMCTradeHandler : public XCBaseAlert
mHedgeingMinRequiredProfitPerVolumeStep = value;
}
/**
* Get POI Drawer instance Pointer ...
*/
XCPOIDrawer *GetDrawer()
{
return mDrawer;
}
/**
* Get POI Drawer instance Pointer ...
*/
void SetDrawer(XCPOIDrawer *drawer)
{
mDrawer = drawer;
}
/**
* Check Darwer Exists Before Draw anything ...
*
* @return ( bool )
*/
bool CanDraw()
{
return mDrawer != NULL;
}
//
// Actions ...
@@ -3133,6 +3160,12 @@ class XC121SMCTradeHandler : public XCBaseAlert
//
// Add XTradeHandler Data ...
Add(signal);
if (CanDraw())
{
//
XCSignalObject *iObj;
mDrawer.DrawSignal(signal, iObj);
}
//
// Handle Last Executed Signal ...
@@ -3607,6 +3640,7 @@ class XC121SMCTradeHandler : public XCBaseAlert
//
XCBarAnalyser mBarAnalyser;
XCPOIDrawer *mDrawer;
//
// Common Functions ...