prepare XUSPY5 EA Workspace ...

This commit is contained in:
2024-02-24 18:13:35 -08:00
parent 5a5587660a
commit 97058d084a
43 changed files with 46498 additions and 1218 deletions
@@ -36,21 +36,21 @@ input bool xUSPY5EnableProvider = true; // Enable Provider
input int xUSPY5NumberOfItemsPerTick = 30; // Number Of items Readed In Each Tick
//
// Alerts ...
input bool xUSPY5EnableAlerts = true; // Enable Events Alert
input bool xUSPY5EnableHourlyAlerts = false; // Send Alert on each new Hour
input bool xUSPY5EnableDailyAlerts = false; // Send Alert on each new Day
input bool xUSPY5EnableWeeklyAlerts = false; // Send Alert on each new Week
input bool xUSPY5EnableMonthlyAlerts = true; // Send Alert on each new Month
input bool xUSPY5EnableAlerts = true; // Enable Events Alert
input bool xUSPY5EnableHourlyAlerts = false; // Send Alert on each new Hour
input bool xUSPY5EnableDailyAlerts = false; // Send Alert on each new Day
input bool xUSPY5EnableWeeklyAlerts = false; // Send Alert on each new Week
input bool xUSPY5EnableMonthlyAlerts = false; // Send Alert on each new Month
//
// Reports ...
input bool xUSPY5EnableDailyReports = false; // Send Report on each new Day
input bool xUSPY5EnableWeeklyReports = false; // Send Report on each new Week
input bool xUSPY5EnableMonthlyReports = true; // Send Report on each new Month
input bool xUSPY5EnableDailyReports = false; // Send Report on each new Day
input bool xUSPY5EnableWeeklyReports = false; // Send Report on each new Week
input bool xUSPY5EnableMonthlyReports = false; // Send Report on each new Month
//
// Trader and Expert Specific Configurations ...
input group "XUSPY5 Trader";
input int xUSPY5MagicNumber = 16940561; // Trader MagicNumber
input int xUSPY5MagicNumber = 16940563; // Trader MagicNumber
input int xUSPY5Slippage = 10; // Trader Slippage
//
@@ -68,11 +68,11 @@ input int xUSPY5MaxAllowedTrades = 10;
input ENUM_X_CROSS_SIGNAL_METHOD xUSPY5CrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method
//
// Max Allowed Trade Age ...
input int xUSPY5MaxAllowedTradeAge = 2000; // Detect Long Time Trades
input int xUSPY5MaxAllowedTradeAge = 1500; // Detect Long Time Trades
input ENUM_X_GUARD_ACTIONS xUSPY5OldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades
//
// Trade Volume Specific Configurations ...
input double xUSPY5StaticVolumeFactor = 0.0002; // Static Volume baesd on Balance
input double xUSPY5StaticVolumeFactor = 0.0001; // Static Volume baesd on Balance
input ENUM_STATIC_VOLUME_METHODS xUSPY5StaticVolumeMethod = X_STATIC_VOLUME_BASED_ON_BALANCE; // How to Calculate Static Volume
input double xUSPY5VolumeMultiplier = 0; // Volume Increase Multiplier
input double xUSPY5ApplyVolumeMultiplierFactor = 0; // Apply Volume Multiplier Rate based on Balance
@@ -80,16 +80,16 @@ input double xUSPY5MaxSupportedVolumePerTradeFactor = 0;
input double xUSPY5IncreasedMaxSupportedVolumeRate = 0; // Increase Max Supported Volume based on Balance
//
// Trade Profits ...
input double xUSPY5MinRewardInPips = 6; // Minimum Reward Per Trade in Pips
input double xUSPY5MinRewardInPips = 6; // Minimum Reward Per Trade in Pips
input double xUSPY5RiskFreeStepInPips = 0; // Make Trades Risk Free Steps in Pips
input double xUSPY5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
input double xUSPY5RiskFreeRate = 0; // Volume Multiplier for Risk Free Trades
//
// Guard Riskable Money and Profits ...
input double xUSPY5CriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xUSPY5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
input double xUSPY5MaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xUSPY5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
input int xUSPY5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
input double xUSPY5CriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xUSPY5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // Specify Guard Action on Critical Drawdown
input double xUSPY5MaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance
input ENUM_X_GUARD_ACTIONS xUSPY5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Max Allowed Drawdown
input int xUSPY5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
//
// Account Conditions for Trading ...
@@ -212,7 +212,7 @@ bool XUSPY5ValidateInputs()
//
result =
xUSPY5CriticalDrawDownFactor == 0 || (xUSPY5CriticalDrawDownFactor > 0 &&
xUSPY5CriticalDrawDownFactor < 1);
xUSPY5CriticalDrawDownFactor < 1);
if (!result)
{
//
@@ -225,7 +225,7 @@ bool XUSPY5ValidateInputs()
//
result =
xUSPY5MaxAllowedDrawDownFactor == 0 || (xUSPY5MaxAllowedDrawDownFactor > 0 &&
xUSPY5MaxAllowedDrawDownFactor < 1);
xUSPY5MaxAllowedDrawDownFactor < 1);
if (!result)
{
//