last ...
This commit is contained in:
@@ -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 ...
|
||||
|
||||
Reference in New Issue
Block a user