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 int eaMaxAllowedShorts = 1; // Max Allowed Short Positions
// //
double eaTPPoint = 100; // Static TP Point double eaTPPoint = 200; // Static TP Point
double eaSLPoint = 100; // Static SL Point double eaSLPoint = 200; // Static SL Point
// //
bool eaIgnoreTP = false; // Ignore TP bool eaIgnoreTP = false; // Ignore TP
@@ -307,12 +307,12 @@ bool InitialEA()
eaSlippage, eaSlippage,
eaMagicNumber, eaMagicNumber,
true, // Ignore Signal Execution true, // Ignore Signal Execution
false, // Use TP SL Point true, // Use TP SL Point
false, // Use Max false, // Use Max
eaTPPoint, // TP eaTPPoint, // TP
eaSLPoint, // SL eaSLPoint, // SL
eaIgnoreTP, eaIgnoreTP,
false, // eaIgnoreSL, eaIgnoreSL,
eaAllowLong, eaAllowLong,
eaAllowShort, eaAllowShort,
eaMaxAllowedLongs, // Max Longs eaMaxAllowedLongs, // Max Longs
@@ -323,6 +323,7 @@ bool InitialEA()
xchmStrategy.EnableXCHSTR(false); xchmStrategy.EnableXCHSTR(false);
xchmStrategy.EnableXCHCHE(true); xchmStrategy.EnableXCHCHE(true);
xchmStrategy.SetAlertLogAlerts(true); xchmStrategy.SetAlertLogAlerts(true);
xchmStrategy.DrawImportantAreas(false);
xchmStrategy.SetAlertEnableAlerts(true); xchmStrategy.SetAlertEnableAlerts(true);
xchmStrategy.AddSignalEventHandler(OnSignalRecieved); xchmStrategy.AddSignalEventHandler(OnSignalRecieved);
RegisterStrategy(xchmStrategy); RegisterStrategy(xchmStrategy);
@@ -366,7 +367,7 @@ bool InitialEA()
eaTPPoint, // TP eaTPPoint, // TP
eaSLPoint, // SL eaSLPoint, // SL
eaIgnoreTP, eaIgnoreTP,
true, // eaIgnoreSL, eaIgnoreSL,
eaAllowLong, eaAllowLong,
eaAllowShort, eaAllowShort,
eaMaxAllowedLongs, // Max Longs eaMaxAllowedLongs, // Max Longs
@@ -377,6 +378,7 @@ bool InitialEA()
iStrategy.EnableXCHSTR(true); iStrategy.EnableXCHSTR(true);
iStrategy.EnableXCHCHE(true); iStrategy.EnableXCHCHE(true);
iStrategy.SetAlertLogAlerts(true); iStrategy.SetAlertLogAlerts(true);
iStrategy.DrawImportantAreas(false);
iStrategy.SetAlertEnableAlerts(true); iStrategy.SetAlertEnableAlerts(true);
iStrategy.AddSignalEventHandler(OnSignalRecieved); iStrategy.AddSignalEventHandler(OnSignalRecieved);
+15 -15
View File
@@ -883,13 +883,13 @@ public:
// //
bool chcheHasLong = bool chcheHasLong =
// //
// hasBullishPower && cBar.IsBullish() &&
// cBar.IsBullish() && hasBullishPattern &&
// hasBullishPattern && (hasBullishPower ||
// hasBullishPressure && hasBullishPressure) &&
// cBar.low > chcheMinBullish && chcheConditions.isBullishPowerUp &&
chcheConditions.isBullishPowerUp // && (chcheConditions.isCStrongBullish ||
// chcheConditions.isCStrongBullish chcheConditions.isSStrongBullish)
// //
; ;
@@ -919,14 +919,14 @@ public:
{ {
// //
bool chcheHasShort = bool chcheHasShort =
//
// hasBearishPower && cBar.IsBearish() &&
// cBar.IsBearish() && hasBearishPattern &&
// hasBearishPattern && (hasBearishPower ||
// hasBearishPressure && hasBearishPressure) &&
// cBar.high < chcheMaxBearish && chcheConditions.isBearishPowerUp &&
chcheConditions.isBearishPowerUp // && (chcheConditions.isCStrongBearish ||
// chcheConditions.isCStrongBearish chcheConditions.isSStrongBearish)
// //
; ;