last ...
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -564,6 +564,13 @@ public:
|
||||
tp //
|
||||
);
|
||||
|
||||
//
|
||||
if (result) {
|
||||
//
|
||||
upperTouchTime = NULL;
|
||||
lowerTouchTime = NULL;
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user