mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-07-27 20:47:44 +00:00
21 lines
949 B
Plaintext
21 lines
949 B
Plaintext
//+------------------------------------------------------------------+
|
|
//| Signal_Base.mqh |
|
|
//| Abstract base class for all indicator signal modules. |
|
|
//| Copyright 2025, xxxxxxxx |
|
|
//+------------------------------------------------------------------+
|
|
#property copyright "Copyright 2025, xxxxxxxx"
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
class CSignalBase
|
|
{
|
|
public:
|
|
//--- Pure virtual method that must be implemented by child classes
|
|
virtual int GetSignal(int shift) = 0; // 1 for Buy, -1 for Sell, 0 for Neutral
|
|
|
|
//--- Virtual destructor
|
|
virtual ~CSignalBase() {};
|
|
};
|
|
//+------------------------------------------------------------------+
|