2026-06-09 05:44:15 +02:00 | | | //+------------------------------------------------------------------+
|
| | | //| AbstractChapter.mqh |
|
| | | //| Copyright 2025, MetaQuotes Ltd. |
|
| | | //| https://www.mql5.com |
|
| | | //+------------------------------------------------------------------+
|
| | | #property copyright "Copyright 2025, MetaQuotes Ltd."
|
| | | #property link "https://www.mql5.com"
|
| | | #property version "1.00"
|
| | |
|
| | | #include "../Utils/CommonHelper.mqh"
|
| | | #include "../Systems/EventBus.mqh"
|
| | |
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | class AbstractChapter
|
| | | {
|
| | |
|
| | | private:
|
| | | ENUM_TIMEFRAMES timeframe;
|
| | |
|
| | |
|
| | | protected:
|
| | | string prefix;
|
| | |
|
| | | CommonHelper com;
|
| | | EventBus eventBus;
|
2026-06-23 21:44:37 +02:00 | | | StructureLevels* levels;
|
2026-06-09 05:44:15 +02:00 | | | public:
|
| | | AbstractChapter();
|
| | | ~AbstractChapter();
|
| | |
|
2026-06-23 21:44:37 +02:00 | | | virtual int OnInit(StructureLevels* levels_, string prefix_, ENUM_TIMEFRAMES tf_, CommonHelper &commonHelper)
|
2026-06-09 05:44:15 +02:00 | | | {
|
| | | timeframe = tf_;
|
| | | prefix = prefix_;
|
| | | com = commonHelper;
|
2026-06-23 21:44:37 +02:00 | | | levels = levels_;
|
2026-06-09 05:44:15 +02:00 | | |
|
| | | return INIT_SUCCEEDED;
|
| | | }
|
| | | virtual void OnCalculate(int i, CommonHelper &commonHelper)
|
| | | {
|
| | | com = commonHelper;
|
| | | }
|
| | | void SetEventBus(EventBus &_eventBus)
|
| | | {
|
| | | eventBus = _eventBus;
|
| | | }
|
| | | };
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | AbstractChapter::AbstractChapter()
|
| | | {
|
| | | }
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | AbstractChapter::~AbstractChapter()
|
| | | {
|
| | | }
|
| | | //+------------------------------------------------------------------+
|