//+------------------------------------------------------------------+ //| 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 #endif //+------------------------------------------------------------------+