edit inputs and set default values ...
This commit is contained in:
@@ -85,9 +85,9 @@ input double xUSCHF5RiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pi
|
|||||||
input double xUSCHF5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
|
input double xUSCHF5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
|
||||||
//
|
//
|
||||||
// Guard Riskable Money and Profits ...
|
// Guard Riskable Money and Profits ...
|
||||||
input double xUSCHF5CriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance
|
input double xUSCHF5CriticalDrawDownFactor = 0.15; // Critical Allowed Drawdown Factor based on Balance
|
||||||
input ENUM_X_GUARD_ACTIONS xUSCHF5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
input ENUM_X_GUARD_ACTIONS xUSCHF5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
||||||
input double xUSCHF5MaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance
|
input double xUSCHF5MaxAllowedDrawDownFactor = 0.20; // Max Allowed Drawdown Factor based on Balance
|
||||||
input ENUM_X_GUARD_ACTIONS xUSCHF5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
input ENUM_X_GUARD_ACTIONS xUSCHF5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
||||||
input int xUSCHF5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
input int xUSCHF5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
||||||
|
|
||||||
|
|||||||
@@ -85,9 +85,9 @@ input double xUSCHF5RiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pi
|
|||||||
input double xUSCHF5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
|
input double xUSCHF5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
|
||||||
//
|
//
|
||||||
// Guard Riskable Money and Profits ...
|
// Guard Riskable Money and Profits ...
|
||||||
input double xUSCHF5CriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance
|
input double xUSCHF5CriticalDrawDownFactor = 0.15; // Critical Allowed Drawdown Factor based on Balance
|
||||||
input ENUM_X_GUARD_ACTIONS xUSCHF5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
input ENUM_X_GUARD_ACTIONS xUSCHF5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
||||||
input double xUSCHF5MaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance
|
input double xUSCHF5MaxAllowedDrawDownFactor = 0.20; // Max Allowed Drawdown Factor based on Balance
|
||||||
input ENUM_X_GUARD_ACTIONS xUSCHF5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
input ENUM_X_GUARD_ACTIONS xUSCHF5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
||||||
input int xUSCHF5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
input int xUSCHF5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
||||||
|
|
||||||
|
|||||||
@@ -80,14 +80,14 @@ input double xUSCHF5MaxSupportedVolumePerTradeFactor = 0;
|
|||||||
input double xUSCHF5IncreasedMaxSupportedVolumeRate = 0; // Increase Max Supported Volume based on Balance
|
input double xUSCHF5IncreasedMaxSupportedVolumeRate = 0; // Increase Max Supported Volume based on Balance
|
||||||
//
|
//
|
||||||
// Trade Profits ...
|
// Trade Profits ...
|
||||||
input double xUSCHF5MinRewardInPips = 6; // Minimum Reward Per Trade in Pips
|
input double xUSCHF5MinRewardInPips = 6; // Minimum Reward Per Trade in Pips
|
||||||
input double xUSCHF5RiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pips
|
input double xUSCHF5RiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pips
|
||||||
input double xUSCHF5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
|
input double xUSCHF5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
|
||||||
//
|
//
|
||||||
// Guard Riskable Money and Profits ...
|
// Guard Riskable Money and Profits ...
|
||||||
input double xUSCHF5CriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance
|
input double xUSCHF5CriticalDrawDownFactor = 0.15; // Critical Allowed Drawdown Factor based on Balance
|
||||||
input ENUM_X_GUARD_ACTIONS xUSCHF5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
input ENUM_X_GUARD_ACTIONS xUSCHF5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
||||||
input double xUSCHF5MaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance
|
input double xUSCHF5MaxAllowedDrawDownFactor = 0.20; // Max Allowed Drawdown Factor based on Balance
|
||||||
input ENUM_X_GUARD_ACTIONS xUSCHF5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
input ENUM_X_GUARD_ACTIONS xUSCHF5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
||||||
input int xUSCHF5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
input int xUSCHF5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
||||||
|
|
||||||
@@ -212,7 +212,7 @@ bool XUSCHF5ValidateInputs()
|
|||||||
//
|
//
|
||||||
result =
|
result =
|
||||||
xUSCHF5CriticalDrawDownFactor == 0 || (xUSCHF5CriticalDrawDownFactor > 0 &&
|
xUSCHF5CriticalDrawDownFactor == 0 || (xUSCHF5CriticalDrawDownFactor > 0 &&
|
||||||
xUSCHF5CriticalDrawDownFactor < 1);
|
xUSCHF5CriticalDrawDownFactor < 1);
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -225,7 +225,7 @@ bool XUSCHF5ValidateInputs()
|
|||||||
//
|
//
|
||||||
result =
|
result =
|
||||||
xUSCHF5MaxAllowedDrawDownFactor == 0 || (xUSCHF5MaxAllowedDrawDownFactor > 0 &&
|
xUSCHF5MaxAllowedDrawDownFactor == 0 || (xUSCHF5MaxAllowedDrawDownFactor > 0 &&
|
||||||
xUSCHF5MaxAllowedDrawDownFactor < 1);
|
xUSCHF5MaxAllowedDrawDownFactor < 1);
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user