fix inputs of XTEST ...

This commit is contained in:
2024-03-25 03:32:38 +03:30
parent d56fcf542e
commit 5e71ec1b9d
3 changed files with 18 additions and 18 deletions
@@ -68,11 +68,11 @@ input int xTESTMaxAllowedTrades = 10;
input ENUM_X_CROSS_SIGNAL_METHOD xTESTCrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method input ENUM_X_CROSS_SIGNAL_METHOD xTESTCrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method
// //
// Max Allowed Trade Age ... // Max Allowed Trade Age ...
input int xTESTMaxAllowedTradeAge = 1500; // Detect Long Time Trades input int xTESTMaxAllowedTradeAge = 300; // Detect Long Time Trades
input ENUM_X_GUARD_ACTIONS xTESTOldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades input ENUM_X_GUARD_ACTIONS xTESTOldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades
// //
// Trade Volume Specific Configurations ... // Trade Volume Specific Configurations ...
input double xTESTStaticVolumeFactor = 0.0001; // Static Volume baesd on Balance input double xTESTStaticVolumeFactor = 0.0004; // Static Volume baesd on Balance
input ENUM_STATIC_VOLUME_METHODS xTESTStaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume input ENUM_STATIC_VOLUME_METHODS xTESTStaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume
input double xTESTVolumeMultiplier = 0; // Volume Increase Multiplier input double xTESTVolumeMultiplier = 0; // Volume Increase Multiplier
input double xTESTApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance input double xTESTApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance
@@ -85,9 +85,9 @@ input double xTESTRiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pips
input double xTESTRiskFreeRate = 0; // Volume Multiplier for Risk Free Trades input double xTESTRiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
// //
// Guard Riskable Money and Profits ... // Guard Riskable Money and Profits ...
input double xTESTCriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance input double xTESTCriticalDrawDownFactor = 0.10; // Critical Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xTESTCriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown input ENUM_X_GUARD_ACTIONS xTESTCriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown
input double xTESTMaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance input double xTESTMaxAllowedDrawDownFactor = 0.15; // Max Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xTESTMaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown input ENUM_X_GUARD_ACTIONS xTESTMaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown
input int xTESTGuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched input int xTESTGuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
@@ -212,7 +212,7 @@ bool XTESTValidateInputs()
// //
result = result =
xTESTCriticalDrawDownFactor == 0 || (xTESTCriticalDrawDownFactor > 0 && xTESTCriticalDrawDownFactor == 0 || (xTESTCriticalDrawDownFactor > 0 &&
xTESTCriticalDrawDownFactor < 1); xTESTCriticalDrawDownFactor < 1);
if (!result) if (!result)
{ {
// //
@@ -225,7 +225,7 @@ bool XTESTValidateInputs()
// //
result = result =
xTESTMaxAllowedDrawDownFactor == 0 || (xTESTMaxAllowedDrawDownFactor > 0 && xTESTMaxAllowedDrawDownFactor == 0 || (xTESTMaxAllowedDrawDownFactor > 0 &&
xTESTMaxAllowedDrawDownFactor < 1); xTESTMaxAllowedDrawDownFactor < 1);
if (!result) if (!result)
{ {
// //
@@ -68,11 +68,11 @@ input int xTESTMaxAllowedTrades = 10;
input ENUM_X_CROSS_SIGNAL_METHOD xTESTCrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method input ENUM_X_CROSS_SIGNAL_METHOD xTESTCrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method
// //
// Max Allowed Trade Age ... // Max Allowed Trade Age ...
input int xTESTMaxAllowedTradeAge = 1500; // Detect Long Time Trades input int xTESTMaxAllowedTradeAge = 300; // Detect Long Time Trades
input ENUM_X_GUARD_ACTIONS xTESTOldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades input ENUM_X_GUARD_ACTIONS xTESTOldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades
// //
// Trade Volume Specific Configurations ... // Trade Volume Specific Configurations ...
input double xTESTStaticVolumeFactor = 0.0001; // Static Volume baesd on Balance input double xTESTStaticVolumeFactor = 0.0004; // Static Volume baesd on Balance
input ENUM_STATIC_VOLUME_METHODS xTESTStaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume input ENUM_STATIC_VOLUME_METHODS xTESTStaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume
input double xTESTVolumeMultiplier = 0; // Volume Increase Multiplier input double xTESTVolumeMultiplier = 0; // Volume Increase Multiplier
input double xTESTApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance input double xTESTApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance
@@ -85,9 +85,9 @@ input double xTESTRiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pips
input double xTESTRiskFreeRate = 0; // Volume Multiplier for Risk Free Trades input double xTESTRiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
// //
// Guard Riskable Money and Profits ... // Guard Riskable Money and Profits ...
input double xTESTCriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance input double xTESTCriticalDrawDownFactor = 0.10; // Critical Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xTESTCriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown input ENUM_X_GUARD_ACTIONS xTESTCriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown
input double xTESTMaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance input double xTESTMaxAllowedDrawDownFactor = 0.15; // Max Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xTESTMaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown input ENUM_X_GUARD_ACTIONS xTESTMaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown
input int xTESTGuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched input int xTESTGuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
@@ -212,7 +212,7 @@ bool XTESTValidateInputs()
// //
result = result =
xTESTCriticalDrawDownFactor == 0 || (xTESTCriticalDrawDownFactor > 0 && xTESTCriticalDrawDownFactor == 0 || (xTESTCriticalDrawDownFactor > 0 &&
xTESTCriticalDrawDownFactor < 1); xTESTCriticalDrawDownFactor < 1);
if (!result) if (!result)
{ {
// //
@@ -225,7 +225,7 @@ bool XTESTValidateInputs()
// //
result = result =
xTESTMaxAllowedDrawDownFactor == 0 || (xTESTMaxAllowedDrawDownFactor > 0 && xTESTMaxAllowedDrawDownFactor == 0 || (xTESTMaxAllowedDrawDownFactor > 0 &&
xTESTMaxAllowedDrawDownFactor < 1); xTESTMaxAllowedDrawDownFactor < 1);
if (!result) if (!result)
{ {
// //
@@ -68,11 +68,11 @@ input int xTESTMaxAllowedTrades = 10;
input ENUM_X_CROSS_SIGNAL_METHOD xTESTCrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method input ENUM_X_CROSS_SIGNAL_METHOD xTESTCrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method
// //
// Max Allowed Trade Age ... // Max Allowed Trade Age ...
input int xTESTMaxAllowedTradeAge = 1500; // Detect Long Time Trades input int xTESTMaxAllowedTradeAge = 300; // Detect Long Time Trades
input ENUM_X_GUARD_ACTIONS xTESTOldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades input ENUM_X_GUARD_ACTIONS xTESTOldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades
// //
// Trade Volume Specific Configurations ... // Trade Volume Specific Configurations ...
input double xTESTStaticVolumeFactor = 0.0001; // Static Volume baesd on Balance input double xTESTStaticVolumeFactor = 0.0004; // Static Volume baesd on Balance
input ENUM_STATIC_VOLUME_METHODS xTESTStaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume input ENUM_STATIC_VOLUME_METHODS xTESTStaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume
input double xTESTVolumeMultiplier = 0; // Volume Increase Multiplier input double xTESTVolumeMultiplier = 0; // Volume Increase Multiplier
input double xTESTApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance input double xTESTApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance
@@ -85,9 +85,9 @@ input double xTESTRiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pips
input double xTESTRiskFreeRate = 0; // Volume Multiplier for Risk Free Trades input double xTESTRiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
// //
// Guard Riskable Money and Profits ... // Guard Riskable Money and Profits ...
input double xTESTCriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance input double xTESTCriticalDrawDownFactor = 0.10; // Critical Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xTESTCriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown input ENUM_X_GUARD_ACTIONS xTESTCriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown
input double xTESTMaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance input double xTESTMaxAllowedDrawDownFactor = 0.15; // Max Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xTESTMaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown input ENUM_X_GUARD_ACTIONS xTESTMaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown
input int xTESTGuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched input int xTESTGuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
@@ -212,7 +212,7 @@ bool XTESTValidateInputs()
// //
result = result =
xTESTCriticalDrawDownFactor == 0 || (xTESTCriticalDrawDownFactor > 0 && xTESTCriticalDrawDownFactor == 0 || (xTESTCriticalDrawDownFactor > 0 &&
xTESTCriticalDrawDownFactor < 1); xTESTCriticalDrawDownFactor < 1);
if (!result) if (!result)
{ {
// //
@@ -225,7 +225,7 @@ bool XTESTValidateInputs()
// //
result = result =
xTESTMaxAllowedDrawDownFactor == 0 || (xTESTMaxAllowedDrawDownFactor > 0 && xTESTMaxAllowedDrawDownFactor == 0 || (xTESTMaxAllowedDrawDownFactor > 0 &&
xTESTMaxAllowedDrawDownFactor < 1); xTESTMaxAllowedDrawDownFactor < 1);
if (!result) if (!result)
{ {
// //