bifurcado de masterofpuppets/mql5
32 líneas
1,2 KiB
MQL5
32 líneas
1,2 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| Modifier.mqh |
|
|
//| Copyright 2026, MasterOfPuppets |
|
|
//| https://forge.mql5.io/masterofpuppets/mql5 |
|
|
//+------------------------------------------------------------------+
|
|
#ifndef MASTER_OF_PUPPETS_LIB_MODIFIER_MQH
|
|
#define MASTER_OF_PUPPETS_LIB_MODIFIER_MQH
|
|
|
|
#include <MasterOfPuppetsLib\TradeContext.mqh>
|
|
|
|
#property copyright "Copyright 2026, MasterOfPuppets"
|
|
#property link "https://forge.mql5.io/masterofpuppets/mql5"
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| Modifier class |
|
|
//+------------------------------------------------------------------+
|
|
class Modifier
|
|
{
|
|
protected:
|
|
const TradeContext *m_tradeContext;
|
|
bool m_withExpert;
|
|
public:
|
|
Modifier(const TradeContext *srcTradeContext, const bool withExpert = false)
|
|
: m_tradeContext(srcTradeContext), m_withExpert(withExpert) {}
|
|
|
|
virtual void Modify() = 0;
|
|
|
|
virtual ~Modifier() {}
|
|
};
|
|
|
|
#endif
|
|
//+------------------------------------------------------------------+
|