This commit is contained in:
2024-05-30 18:27:20 +03:30
parent 001b4543f3
commit 7827211145
2 changed files with 7 additions and 10 deletions
+3 -5
View File
@@ -788,7 +788,8 @@ public:
void HandleTrailManagement(XPosition &positions[])
{
//
return;
// return;
//
// TODO:
// Make them Configurable ...
@@ -818,10 +819,7 @@ public:
//
bool canManageState =
//
true
// iPosition.provider != XEQMSupportToken
// &&
// iPosition.provider != "WSC"
iPosition.provider == XEQMSupportToken
//
;
+4 -5
View File
@@ -38,13 +38,12 @@ input string x121EASymbols = "EURUSDb"; // Symbols
input bool x121EAAllowLong = true; // Allow Long Trades
input bool x121EAAllowShort = true; // Allow Short Trades
input int x121EAManageInterval = 0; // Manager Check Intervals Seconds
input int x121EAMaxAllowedPositions = 10; // Max Allowed Positions
input int x121EAMaxAllowedPositions = 5; // Max Allowed Positions
input double x121EAMaxAllowedSpread = 0; // Max Allowed Spred for Opening Trades
input double x121EAMinProfitPerTrade = 0.6; // Min Profit Per Trade based On Volume Factor (Hedge)
input double x121EAMinProfitPerVolumeFactor = 0.01; // Min Volume Factor for Calculating Profit (Hedge)
input double x121EAMaxAllowedDrawdownFactor = 0.002; // Max Allowed Drawdown Factor
//
input double x121EAVolume = 0.01; // Static Volume
input double x121EAVolume = 0.01; // Static Volume
//
// Vars ...
@@ -980,7 +979,7 @@ void ApplyPreDefineConfigurations(X121ProviderDescriptor &iDescriptor)
{
//
bool isX786 = false;
bool isX121 = true;
bool isX121 = false;
//
if (isX786)
@@ -993,7 +992,7 @@ void ApplyPreDefineConfigurations(X121ProviderDescriptor &iDescriptor)
//
iDescriptor.inputs.mrbInputs.showFastMa = isX121;
iDescriptor.inputs.mrbInputs.showSlowMa = isX121;
iDescriptor.inputs.mrbInputs.showRibbon = isX121 && false;
iDescriptor.inputs.mrbInputs.showRibbon = isX121;
//
iDescriptor.inputs.mcInputs.showFastMa = isX121;