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 useXDTD = false;
bool useXDTD = true;
//
// EURUSD ...
@@ -304,7 +304,7 @@ bool InitialEA()
eaTPPoint, // TP
eaSLPoint, // SL
eaIgnoreTP,
eaIgnoreSL,
false, // eaIgnoreSL,
eaAllowLong,
eaAllowShort,
eaMaxAllowedLongs, // Max Longs
@@ -349,30 +349,30 @@ bool InitialEA()
}
//
XSCXDTDStrategy *xTDTStrategy;
xTDTStrategy = new XSCXDTDStrategy(
_Symbol,
_Period,
eaVolume,
eaR2R, // R2R ...
eaSlippage,
eaMagicNumber,
true, // Ignore Signal Execution
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaIgnoreTP,
eaIgnoreSL,
eaAllowLong,
eaAllowShort,
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts
);
xTDTStrategy.SetAlertLogAlerts(true);
xTDTStrategy.SetAlertEnableAlerts(true);
xTDTStrategy.AddSignalEventHandler(OnSignalRecieved);
RegisterStrategy(xTDTStrategy);
// XSCXDTDStrategy *xTDTStrategy;
// xTDTStrategy = new XSCXDTDStrategy(
// _Symbol,
// _Period,
// eaVolume,
// eaR2R, // R2R ...
// eaSlippage,
// eaMagicNumber,
// true, // Ignore Signal Execution
// true, // Use TP SL Point
// false, // Use Max
// eaTPPoint, // TP
// eaSLPoint, // SL
// eaIgnoreTP,
// eaIgnoreSL,
// eaAllowLong,
// eaAllowShort,
// eaMaxAllowedLongs, // Max Longs
// eaMaxAllowedShorts // Max Shorts
// );
// xTDTStrategy.SetAlertLogAlerts(true);
// xTDTStrategy.SetAlertEnableAlerts(true);
// xTDTStrategy.AddSignalEventHandler(OnSignalRecieved);
// RegisterStrategy(xTDTStrategy);
//
return result;