161 lines
2.3 KiB
Plaintext
161 lines
2.3 KiB
Plaintext
///////////////////////////////////////////////////////
|
|
//
|
|
// SaherElm IT Center MQL5 Library
|
|
// -------------------------------------------------
|
|
// Name: XCXFIMAEALib ...
|
|
// Description: XFIMAEA Library ...
|
|
//
|
|
//
|
|
// Maintainer:
|
|
// ------------
|
|
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
|
//
|
|
//////////////////////////////////////////////////////
|
|
//
|
|
// Global Properties ...
|
|
#property library
|
|
#property copyright "Copyright 2023, SaherElm IT Center"
|
|
#property link "https://saherelm.ir"
|
|
#property version "1.00"
|
|
#property description "SaherElm XFIMAEA Library"
|
|
#property strict
|
|
|
|
//
|
|
// Imports ...
|
|
#include "../../Classes/x-saherelm.x-cobject.class.mq5"
|
|
#include "../../Helpers/x-saherelm.xfima.helper.mq5"
|
|
#include "../../Libraries/x-saherelm.x-pivot.analysis.lib.mq5"
|
|
|
|
//
|
|
// Definitions ...
|
|
|
|
/**
|
|
* Configure Market Structure Detection ...
|
|
**/
|
|
struct XFIMAPatternDetectorConfig
|
|
{
|
|
//
|
|
// Props ...
|
|
|
|
//
|
|
// Constructor ...
|
|
XFIMAPatternDetectorConfig()
|
|
{
|
|
Clean();
|
|
}
|
|
|
|
//
|
|
// Tools ...
|
|
|
|
/**
|
|
* Cleanup Model ...
|
|
*/
|
|
void Clean()
|
|
{
|
|
ZeroMemory(this);
|
|
}
|
|
|
|
/**
|
|
* Default Model ...
|
|
*/
|
|
void Default()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Full Detection Model ...
|
|
*/
|
|
void FullDetect()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Default Config, by turn off all detecting flags ...
|
|
*/
|
|
void OffDetectors()
|
|
{
|
|
}
|
|
|
|
//
|
|
};
|
|
|
|
/**
|
|
* XFIMA Base Market Structure ...
|
|
* AnalyseMarket result ...
|
|
**/
|
|
struct XFIMAMarketStructure
|
|
{
|
|
//
|
|
XOHCL bar;
|
|
|
|
//
|
|
// Constructor ...
|
|
XFIMAMarketStructure()
|
|
{
|
|
Clean();
|
|
}
|
|
|
|
//
|
|
// Tools ...
|
|
|
|
/**
|
|
* Cleanup Model ...
|
|
*/
|
|
void Clean()
|
|
{
|
|
|
|
//
|
|
ZeroMemory(this);
|
|
}
|
|
|
|
//
|
|
// Checker Functions ...
|
|
|
|
//
|
|
};
|
|
|
|
/**
|
|
* Configure Market Structure Drawer ...
|
|
**/
|
|
struct XFIMAMarketStructureDrawerConfig
|
|
{
|
|
//
|
|
// Props ...
|
|
|
|
//
|
|
// Constructor ...
|
|
XFIMAMarketStructureDrawerConfig()
|
|
{
|
|
Clean();
|
|
}
|
|
|
|
//
|
|
// Tools ...
|
|
|
|
/**
|
|
* Cleanup Model ...
|
|
*/
|
|
void Clean()
|
|
{
|
|
|
|
//
|
|
ZeroMemory(this);
|
|
}
|
|
|
|
/**
|
|
* Default Model ...
|
|
*/
|
|
void Default()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Configure for Full Drawing ...
|
|
*/
|
|
void FullDraw()
|
|
{
|
|
}
|
|
|
|
//
|
|
};
|