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