This commit is contained in:
2024-07-30 19:43:09 +03:30
parent 7a98bbe094
commit aadcf4f647
3 changed files with 284 additions and 263 deletions
+7 -7
View File
@@ -45,8 +45,8 @@ int eaMaxAllowedLongs = 1; // Max Allowed Long Positions
int eaMaxAllowedShorts = 1; // Max Allowed Short Positions
//
input double eaTPPoint = 100; // Static TP Point
input double eaSLPoint = 100; // Static SL Point
double eaTPPoint = 150; // Static TP Point
double eaSLPoint = 100; // Static SL Point
//
bool eaIgnoreTP = false; // Ignore TP
@@ -277,16 +277,16 @@ bool InitialEA()
//
// Configure Trailing ...
eaTradeHandler.AllowTrailStops(false);
eaTradeHandler.TrailStepInPoint(10);
eaTradeHandler.TrailStartInPoint(20);
eaTradeHandler.TrailStepInPoint(30);
eaTradeHandler.TrailStartInPoint(100);
eaTradeHandler.IgnoreTPOnTrail(true);
eaTradeHandler.TrailBasedOnProfit(true);
//
// Configure Recovery ...
eaTradeHandler.AllowRecover(false);
eaTradeHandler.RecoveryTPPoint(50);
eaTradeHandler.MaxAllowedRecover(3);
eaTradeHandler.RecoveryTPPoint(300);
eaTradeHandler.MaxAllowedRecover(0);
eaTradeHandler.MaxAllowedRecoveryVolume(0.1);
eaTradeHandler.RecoverySLPoint(200);
eaTradeHandler.RecoveryVolumeMultiplier(2);
@@ -321,7 +321,7 @@ bool InitialEA()
xchmStrategy.EnableXCHM(true);
xchmStrategy.EnableXCHHK(true);
xchmStrategy.EnableXCHSTR(true);
xchmStrategy.EnableXCHCHE(true);
xchmStrategy.EnableXCHCHE(false);
xchmStrategy.SetAlertLogAlerts(true);
xchmStrategy.DrawImportantAreas(false);
xchmStrategy.SetAlertEnableAlerts(true);