Fix Protecting Mechanism on GUI ...
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user