This commit is contained in:
2024-07-23 17:24:19 +03:30
parent d4b6e6df06
commit 8cd537d039
2 changed files with 33 additions and 26 deletions
+26 -26
View File
@@ -274,7 +274,7 @@ bool InitialEA()
// //
bool useXTest = false; bool useXTest = false;
bool useXDTD = false; bool useXDTD = true;
// //
// EURUSD ... // EURUSD ...
@@ -304,7 +304,7 @@ bool InitialEA()
eaTPPoint, // TP eaTPPoint, // TP
eaSLPoint, // SL eaSLPoint, // SL
eaIgnoreTP, eaIgnoreTP,
eaIgnoreSL, false, // eaIgnoreSL,
eaAllowLong, eaAllowLong,
eaAllowShort, eaAllowShort,
eaMaxAllowedLongs, // Max Longs eaMaxAllowedLongs, // Max Longs
@@ -349,30 +349,30 @@ bool InitialEA()
} }
// //
XSCXDTDStrategy *xTDTStrategy; // XSCXDTDStrategy *xTDTStrategy;
xTDTStrategy = new XSCXDTDStrategy( // xTDTStrategy = new XSCXDTDStrategy(
_Symbol, // _Symbol,
_Period, // _Period,
eaVolume, // eaVolume,
eaR2R, // R2R ... // eaR2R, // R2R ...
eaSlippage, // eaSlippage,
eaMagicNumber, // eaMagicNumber,
true, // Ignore Signal Execution // true, // Ignore Signal Execution
true, // 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,
eaIgnoreSL, // eaIgnoreSL,
eaAllowLong, // eaAllowLong,
eaAllowShort, // eaAllowShort,
eaMaxAllowedLongs, // Max Longs // eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts // eaMaxAllowedShorts // Max Shorts
); // );
xTDTStrategy.SetAlertLogAlerts(true); // xTDTStrategy.SetAlertLogAlerts(true);
xTDTStrategy.SetAlertEnableAlerts(true); // xTDTStrategy.SetAlertEnableAlerts(true);
xTDTStrategy.AddSignalEventHandler(OnSignalRecieved); // xTDTStrategy.AddSignalEventHandler(OnSignalRecieved);
RegisterStrategy(xTDTStrategy); // RegisterStrategy(xTDTStrategy);
// //
return result; return result;
+7
View File
@@ -564,6 +564,13 @@ public:
tp // tp //
); );
//
if (result) {
//
upperTouchTime = NULL;
lowerTouchTime = NULL;
}
// //
return result; return result;
} }