This commit is contained in:
2024-07-18 17:14:31 +03:30
parent 57affb201e
commit 70f2435c44
2 changed files with 399 additions and 120 deletions
+104 -98
View File
@@ -33,14 +33,25 @@
//
// Inputs ...
long mMagicNumber = 78692110; // Magic Number
int mSlippage = 10; // Slippgae
long eaMagicNumber = 78692110; // Magic Number
int eaSlippage = 10; // Slippgae
//
double eaVolume = 0.01;
double eaAllowLong = true;
double eaAllowShort = true;
//
int eaMaxAllowedLongs = 0;
int eaMaxAllowedShorts = 0;
//
double eaTPPoint = 200;
double eaSLPoint = 100;
//
double eaR2R = 1.5;
//
// Variables ...
XSCXCTHelper *mCTHelper;
@@ -198,7 +209,7 @@ bool InitialEA()
{
//
// MAGIC NUMBER ...
long magicNumber = mMagicNumber + 1;
long magicNumber = eaMagicNumber + 1;
//
// XSRBR ...
@@ -212,13 +223,13 @@ bool InitialEA()
PERIOD_M5,
PERIOD_H1,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
@@ -237,17 +248,17 @@ bool InitialEA()
PERIOD_M15,
PERIOD_M30,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
);
eurusdM15SRBRStrategy.SetAlertLogAlerts(true);
@@ -265,18 +276,17 @@ bool InitialEA()
eurusdSymbol,
PERIOD_M5,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts
);
eurusdM5EMRNGStrategy.SetAlertLogAlerts(true);
eurusdM5EMRNGStrategy.SetAlertEnableAlerts(true);
@@ -291,7 +301,7 @@ bool InitialEA()
{
//
// MAGIC NUMBER ...
long magicNumber = mMagicNumber + 2;
long magicNumber = eaMagicNumber + 2;
//
// XSRBR ...
@@ -305,17 +315,17 @@ bool InitialEA()
PERIOD_M5,
PERIOD_H1,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
);
usdchfM5SRBRStrategy.SetAlertLogAlerts(true);
@@ -333,18 +343,17 @@ bool InitialEA()
usdchfSymbol,
PERIOD_M5,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts
);
usdchfM5EMRNGStrategy.SetAlertLogAlerts(true);
usdchfM5EMRNGStrategy.SetAlertEnableAlerts(true);
@@ -359,7 +368,7 @@ bool InitialEA()
{
//
// MAGIC NUMBER ...
long magicNumber = mMagicNumber + 3;
long magicNumber = eaMagicNumber + 3;
//
// XSRBR ...
@@ -373,17 +382,17 @@ bool InitialEA()
PERIOD_M5,
PERIOD_M30,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
);
usdjpyM5SRBRStrategy.SetAlertLogAlerts(true);
@@ -401,18 +410,17 @@ bool InitialEA()
usdjpySymbol,
PERIOD_M5,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts
);
usdjpyM5EMRNGStrategy.SetAlertLogAlerts(true);
usdjpyM5EMRNGStrategy.SetAlertEnableAlerts(true);
@@ -427,7 +435,7 @@ bool InitialEA()
{
//
// MAGIC NUMBER ...
long magicNumber = mMagicNumber + 4;
long magicNumber = eaMagicNumber + 4;
//
// XSRBR ...
@@ -441,17 +449,17 @@ bool InitialEA()
PERIOD_M5,
PERIOD_H1,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
);
gbpusdM5SRBRStrategy.SetAlertLogAlerts(true);
@@ -469,18 +477,17 @@ bool InitialEA()
gbpusdSymbol,
PERIOD_M5,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts
);
gbpusdM5EMRNGStrategy.SetAlertLogAlerts(true);
gbpusdM5EMRNGStrategy.SetAlertEnableAlerts(true);
@@ -495,7 +502,7 @@ bool InitialEA()
{
//
// MAGIC NUMBER ...
long magicNumber = mMagicNumber + 5;
long magicNumber = eaMagicNumber + 5;
//
// XSRBR ...
@@ -509,17 +516,17 @@ bool InitialEA()
PERIOD_M15,
PERIOD_M30,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
);
xauusdM5SRBRStrategy.SetAlertLogAlerts(true);
@@ -537,18 +544,17 @@ bool InitialEA()
xauusdSymbol,
PERIOD_M5,
eaVolume,
1.5, // R2R ...
mSlippage,
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
false, // Use Max
200, // TP
100, // SL
true, // Use TP SL Point
false, // Use Max
eaTPPoint, // TP
eaSLPoint, // SL
eaAllowLong,
eaAllowShort,
0, // Max Longs
0, // Max Shorts
X_SIGNALLING_BOTH_DIRECTIONS // X_SIGNALIING_TREND_REVERSAL_DIRECTION // X_SIGNALLING_BOTH_DIRECTIONS //
eaMaxAllowedLongs, // Max Longs
eaMaxAllowedShorts // Max Shorts
);
xauusdM5EMRNGStrategy.SetAlertLogAlerts(true);
xauusdM5EMRNGStrategy.SetAlertEnableAlerts(true);