Fix Protecting Mechanism on GUI ...

This commit is contained in:
2024-10-08 23:24:56 +03:30
parent 8d9f9f579c
commit c46578a846
+6 -6
View File
@@ -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;