Fix Protecting Mechanism on GUI ...
This commit is contained in:
@@ -216,9 +216,9 @@ XCButton eaHedgingBtn;
|
|||||||
XCButton eaTraillingBtn;
|
XCButton eaTraillingBtn;
|
||||||
XCButton eaProtectingBtn;
|
XCButton eaProtectingBtn;
|
||||||
XCButton eaUseForceMomentumProtectingBtn;
|
XCButton eaUseForceMomentumProtectingBtn;
|
||||||
bool eaEnableHedging = false;
|
bool eaEnableHedging = eaAllowHedge;
|
||||||
bool eaEnableTrailling = false;
|
bool eaEnableTrailling = eaAllowTrail;
|
||||||
bool eaEnableProtecting = false;
|
bool eaEnableProtecting = eaAllowProtect;
|
||||||
bool eaUseForceMomentumProtecting = eaUseForceMomentumsInProtection;
|
bool eaUseForceMomentumProtecting = eaUseForceMomentumsInProtection;
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1653,7 +1653,7 @@ void UpdateProtectorGUI()
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Check Hedging State ...
|
// Check Hedging State ...
|
||||||
bool isHedgingActived = eaAllowHedge &&
|
bool isHedgingActived = eaEnableHedging &&
|
||||||
isHedgingActiveProps;
|
isHedgingActiveProps;
|
||||||
eaEnableHedging = isHedgingActived;
|
eaEnableHedging = isHedgingActived;
|
||||||
|
|
||||||
@@ -1686,7 +1686,7 @@ void UpdateProtectorGUI()
|
|||||||
//
|
//
|
||||||
// Check Trailling State ...
|
// Check Trailling State ...
|
||||||
bool isTraillingActived =
|
bool isTraillingActived =
|
||||||
eaAllowTrail &&
|
eaEnableTrailling &&
|
||||||
isTraillingActiveProps;
|
isTraillingActiveProps;
|
||||||
eaEnableTrailling = isTraillingActived;
|
eaEnableTrailling = isTraillingActived;
|
||||||
|
|
||||||
@@ -1719,7 +1719,7 @@ void UpdateProtectorGUI()
|
|||||||
//
|
//
|
||||||
// Check Protection State ...
|
// Check Protection State ...
|
||||||
bool isProtectingActived =
|
bool isProtectingActived =
|
||||||
eaAllowProtect &&
|
eaEnableProtecting &&
|
||||||
isProtectingActiveProps;
|
isProtectingActiveProps;
|
||||||
eaEnableProtecting = isProtectingActived;
|
eaEnableProtecting = isProtectingActived;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user