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