last works ...

This commit is contained in:
2024-05-22 13:15:20 +03:30
parent 23c989f083
commit 4a69e7edf8
17 changed files with 6815 additions and 78 deletions
+25 -3
View File
@@ -2477,6 +2477,11 @@ bool IsValid(string value)
//
return result;
}
bool IsSpecifiedValid(string value)
{
return IsValid(value);
}
//
// Validate a Date ...
@@ -2509,6 +2514,11 @@ bool IsValid(ENUM_TIMEFRAMES value)
//
return result;
}
bool IsSpecifiedValid(ENUM_TIMEFRAMES value)
{
//
return IsValid(value);
}
//
// Validate Specified Cycle ...
@@ -2556,6 +2566,17 @@ bool IsValid(
return result;
}
//
bool IsSpecifiedValid(
ENUM_X_PERIOD_METHOD mMethod, // Period Select Method
ENUM_TIMEFRAMES mPeriod // Selected Period
)
{
return IsValid(mMethod,
mPeriod //
);
}
//
// Validate Swing Mode ...
bool IsValid(ENUM_X_SWING_TYPE value)
@@ -2633,16 +2654,17 @@ bool IsRunningOnTestMode()
//
// Find Chart ID ...
ulong FindChartID(
long FindChartID(
string mSymbol = NULL, // Trading Symbol
ENUM_TIMEFRAMES mPeriod = NULL // Trading Period
)
{
//
ulong result = ChartFirst();
long result = ChartFirst();
long first = result;
//
while (result >= 0)
while (result > 0)
{
//
string chSymbol = ChartSymbol(result);
+29 -9
View File
@@ -218,15 +218,16 @@ struct XSignal
//
bool Prepare(
string mSymbol, // Trading Symbol
string mProvider, // Signal Provider
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
ENUM_POSITION_TYPE mType, // Long (Buy) or Short (Sell)
ENUM_X_ORDER_MODES mMode, // Execution Mode
double mEntry, // Entry Price
double mVolume, // Volume
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
string mSymbol, // Trading Symbol
string mProvider, // Signal Provider
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
ENUM_POSITION_TYPE mType, // Long (Buy) or Short (Sell)
ENUM_X_ORDER_MODES mMode, // Execution Mode
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
{
//
@@ -284,6 +285,9 @@ struct XSignal
entry = mEntry;
volume = mVolume;
//
action = mAction;
//
Add(
sl,
@@ -313,6 +317,7 @@ struct XSignal
ENUM_X_ORDER_MODES mMode, // Execution Mode
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -326,6 +331,7 @@ struct XSignal
mMode,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -340,6 +346,7 @@ struct XSignal
ENUM_X_ORDER_MODES mMode, // Execution Mode
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -353,6 +360,7 @@ struct XSignal
mMode,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -369,6 +377,7 @@ struct XSignal
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -381,6 +390,7 @@ struct XSignal
X_ORDER_MODE_MARKET,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -394,6 +404,7 @@ struct XSignal
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -406,6 +417,7 @@ struct XSignal
X_ORDER_MODE_MARKET,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -422,6 +434,7 @@ struct XSignal
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -434,6 +447,7 @@ struct XSignal
X_ORDER_MODE_STOP,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -447,6 +461,7 @@ struct XSignal
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -459,6 +474,7 @@ struct XSignal
X_ORDER_MODE_STOP,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -475,6 +491,7 @@ struct XSignal
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -487,6 +504,7 @@ struct XSignal
X_ORDER_MODE_LIMIT,
mEntry,
mVolume,
mAction,
sl,
tp
//
@@ -500,6 +518,7 @@ struct XSignal
ENUM_TIMEFRAMES mPeriod, // Trading TimeFrame
double mEntry, // Entry Price
double mVolume, // Volume
ENUM_X_SIGNAL_MANAGING_ACTIONS mAction = X_SIGNAL_USE_NOTHING, // Signal Management Action
double sl = 0, // Stop Loss
double tp = 0 // Take Profit
)
@@ -512,6 +531,7 @@ struct XSignal
X_ORDER_MODE_LIMIT,
mEntry,
mVolume,
mAction,
sl,
tp
//