diff --git a/Experts/x-saherelm.x121.ea.mq5 b/Experts/x-saherelm.x121.ea.mq5 index 84a87c8b..776df9da 100644 --- a/Experts/x-saherelm.x121.ea.mq5 +++ b/Experts/x-saherelm.x121.ea.mq5 @@ -216,9 +216,9 @@ XCButton eaHedgingBtn; XCButton eaTraillingBtn; XCButton eaProtectingBtn; XCButton eaUseForceMomentumProtectingBtn; -bool eaEnableHedging = false; -bool eaEnableTrailling = false; -bool eaEnableProtecting = false; +bool eaEnableHedging = eaAllowHedge; +bool eaEnableTrailling = eaAllowTrail; +bool eaEnableProtecting = eaAllowProtect; bool eaUseForceMomentumProtecting = eaUseForceMomentumsInProtection; // @@ -1653,7 +1653,7 @@ void UpdateProtectorGUI() // // Check Hedging State ... - bool isHedgingActived = eaAllowHedge && + bool isHedgingActived = eaEnableHedging && isHedgingActiveProps; eaEnableHedging = isHedgingActived; @@ -1686,7 +1686,7 @@ void UpdateProtectorGUI() // // Check Trailling State ... bool isTraillingActived = - eaAllowTrail && + eaEnableTrailling && isTraillingActiveProps; eaEnableTrailling = isTraillingActived; @@ -1719,7 +1719,7 @@ void UpdateProtectorGUI() // // Check Protection State ... bool isProtectingActived = - eaAllowProtect && + eaEnableProtecting && isProtectingActiveProps; eaEnableProtecting = isProtectingActived;