mql5/Include/MasterOfPuppetsLib/TraderContext.mqh
2026-03-06 19:04:08 +03:00

38 lines
1.6 KiB
MQL5

//+------------------------------------------------------------------+
//| TraderContext.mqh |
//| Copyright 2026, MasterOfPuppets |
//| https://forge.mql5.io/masterofpuppets/mql5 |
//+------------------------------------------------------------------+
#ifndef MASTER_OF_PUPPETS_LIB_TRADER_CONTEXT_MQH
#define MASTER_OF_PUPPETS_LIB_TRADER_CONTEXT_MQH
#property copyright "Copyright 2026, MasterOfPuppets"
#property link "https://forge.mql5.io/masterofpuppets/mql5"
//+------------------------------------------------------------------+
//| Trader context class |
//+------------------------------------------------------------------+
class TraderContext
{
private:
double m_contracts;
bool m_soundEnabled;
string m_soundFileName;
double m_stopLoss;
double m_takeProfit;
ulong m_magic;
public:
void Init(const double contracts, const bool soundEnabled, const string soundFileName,
const double stopLoss, const double takeProfit, ulong m_magic);
const double GetContracts() const;
const bool GetSoundEnabled() const;
const string GetSoundFileName() const;
const double GetStopLoss() const;
const double GetTakeProfit() const;
const ulong GetMagic() const;
};
#include <MasterOfPuppetsLib\TraderContext.mq5>
#endif
//+------------------------------------------------------------------+