This commit is contained in:
2024-07-30 04:55:38 +03:30
parent 87c0487022
commit 1f9c79ea42
2 changed files with 22 additions and 20 deletions
+7 -5
View File
@@ -45,8 +45,8 @@ int eaMaxAllowedLongs = 1; // Max Allowed Long Positions
int eaMaxAllowedShorts = 1; // Max Allowed Short Positions
//
double eaTPPoint = 100; // Static TP Point
double eaSLPoint = 100; // Static SL Point
double eaTPPoint = 200; // Static TP Point
double eaSLPoint = 200; // Static SL Point
//
bool eaIgnoreTP = false; // Ignore TP
@@ -307,12 +307,12 @@ bool InitialEA()
eaSlippage,
eaMagicNumber,
true, // Ignore Signal Execution
false, // Use TP SL Point
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaIgnoreTP,
false, // eaIgnoreSL,
eaIgnoreSL,
eaAllowLong,
eaAllowShort,
eaMaxAllowedLongs, // Max Longs
@@ -323,6 +323,7 @@ bool InitialEA()
xchmStrategy.EnableXCHSTR(false);
xchmStrategy.EnableXCHCHE(true);
xchmStrategy.SetAlertLogAlerts(true);
xchmStrategy.DrawImportantAreas(false);
xchmStrategy.SetAlertEnableAlerts(true);
xchmStrategy.AddSignalEventHandler(OnSignalRecieved);
RegisterStrategy(xchmStrategy);
@@ -366,7 +367,7 @@ bool InitialEA()
eaTPPoint, // TP
eaSLPoint, // SL
eaIgnoreTP,
true, // eaIgnoreSL,
eaIgnoreSL,
eaAllowLong,
eaAllowShort,
eaMaxAllowedLongs, // Max Longs
@@ -377,6 +378,7 @@ bool InitialEA()
iStrategy.EnableXCHSTR(true);
iStrategy.EnableXCHCHE(true);
iStrategy.SetAlertLogAlerts(true);
iStrategy.DrawImportantAreas(false);
iStrategy.SetAlertEnableAlerts(true);
iStrategy.AddSignalEventHandler(OnSignalRecieved);