2026-03-06 03:57:21 +03:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| ProtectModifier.mq5 |
|
|
|
|
|
//| Copyright 2026, MasterOfPuppets |
|
|
|
|
|
//| https://forge.mql5.io/masterofpuppets/mql5 |
|
|
|
|
|
//+------------------------------------------------------------------+
|
2026-03-06 04:04:03 +03:00
|
|
|
#ifndef MASTER_OF_PUPPETS_LIB_PROTECT_MODIFIER_MQ5
|
|
|
|
|
#define MASTER_OF_PUPPETS_LIB_PROTECT_MODIFIER_MQ5
|
2026-03-06 03:57:21 +03:00
|
|
|
|
2026-03-06 06:41:42 +03:00
|
|
|
#include <MasterOfPuppetsLib\Modifiers\ProtectModifier.mqh>
|
2026-03-06 03:57:21 +03:00
|
|
|
|
|
|
|
|
#property copyright "Copyright 2026, MasterOfPuppets"
|
|
|
|
|
#property link "https://forge.mql5.io/masterofpuppets/mql5"
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| Modify function |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
void ProtectModifier::Modify() const
|
|
|
|
|
{
|
|
|
|
|
m_tradeContext.GetTrade().PositionModify(m_tradeContext.GetPositionInfo().Ticket(),
|
|
|
|
|
m_tradeContext.GetPositionInfo().PriceOpen(), m_tradeContext.GetPositionInfo().TakeProfit());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
//+------------------------------------------------------------------+
|