This commit is contained in:
2024-07-21 18:25:54 +03:30
parent a996143dd3
commit d194d85082
2 changed files with 112 additions and 67 deletions
+16 -12
View File
@@ -36,31 +36,35 @@ long eaMagicNumber = 78692110; // Magic Number
int eaSlippage = 10; // Slippgae
//
double eaVolume = 0.01;
double eaAllowLong = true;
double eaAllowShort = true;
double eaVolume = 0.01; // Static Volume
double eaAllowLong = true; // Allow Long Positions
double eaAllowShort = true; // Allow Short Positions
//
int eaMaxAllowedLongs = 0;
int eaMaxAllowedShorts = 0;
int eaMaxAllowedLongs = 0; // Max Allowed Long Positions
int eaMaxAllowedShorts = 0; // Max Allowed Short Positions
//
double eaTPPoint = 200;
double eaSLPoint = 100;
double eaTPPoint = 200; // Static TP Point
double eaSLPoint = 100; // Static SL Point
//
bool eaIgnoreTP = false;
bool eaIgnoreSL = false;
bool eaIgnoreTP = false; // Ignore TP
bool eaIgnoreSL = false; // Ignore SL
//
double eaR2R = 2;
double eaR2R = 2; // Risk to Reward Ratio
//
// Variables ...
//
// Bar Style nad Time Instances ...
XSCXCTHelper *mCTHelper;
XSCXCCHelper *mCCHelper;
//
// Registred Strategies ...
XSCBaseStrategy *strategies[];
//
@@ -237,9 +241,9 @@ bool InitialEA()
eaR2R, // R2R ...
eaSlippage,
magicNumber,
true, // Use TP SL Point
true, // Use TP SL Point
false, // Use Max
100, // eaTPPoint, // TP
50, // eaTPPoint, // TP
eaSLPoint, // SL
eaIgnoreTP,
true, // eaIgnoreSL,