This commit is contained in:
2024-05-27 09:06:04 +03:30
parent c1aa4fe888
commit 30dd2f1aaf
13 changed files with 2337 additions and 368 deletions
+20 -11
View File
@@ -2156,9 +2156,10 @@ public:
//
// Constructor ...
XSCX5Provider(
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period // Trading PEriod
) : XSCBaseProvider(symbol, period)
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period, // Trading Period
double staticVolume // Static Volume for Positions
) : XSCBaseProvider(symbol, period, staticVolume)
{
//
tsHelper = new XSCXTSHelper();
@@ -2516,7 +2517,7 @@ public:
{
//
mConditions.Clear();
//
if (barIndex < 0)
{
@@ -2539,8 +2540,7 @@ public:
mConditions.time = iTime(
mConditions.symbol,
mConditions.period,
barIndex
);
barIndex);
//
GetBars(
@@ -95116,6 +95116,7 @@ struct X5ProviderDescriptor
//
string symbol; // Trading Symbol
ENUM_TIMEFRAMES period; // Trading Timeframe
double staticVolume; // Static Volume for Positions
bool allowLong; // Allow Long Signals
bool allowShort; // Allow Short Signals
ENUM_X5_SIGNAL_PROVIDERS signallers[]; // Allowed Signal Providers
@@ -95143,7 +95144,8 @@ struct X5ProviderDescriptor
this.period,
this.signallers,
this.allowLong,
this.allowShort //
this.allowShort,
this.staticVolume //
);
//
@@ -95154,7 +95156,8 @@ struct X5ProviderDescriptor
bool Init(
ENUM_X5_SIGNAL_PROVIDERS &mSignallers[], // Allowed Signal Providers
bool mAllowLong = true, // Allow Long Signals
bool mAllowShort = true // Allow Short Signals
bool mAllowShort = true, // Allow Short Signals
double mStaticVolume = 0.01 // Static Volume for Positions
)
{
//
@@ -95166,7 +95169,8 @@ struct X5ProviderDescriptor
this.period,
mSignallers,
mAllowLong,
mAllowShort //
mAllowShort,
mStaticVolume //
);
//
@@ -95179,7 +95183,8 @@ struct X5ProviderDescriptor
ENUM_TIMEFRAMES mPeriod, // Trading Timeframe
ENUM_X5_SIGNAL_PROVIDERS &mSignallers[], // Allowed Signal Providers
bool mAllowLong = true, // Allow Long Signals
bool mAllowShort = true // Allow Short Signals
bool mAllowShort = true, // Allow Short Signals
double mStaticVolume = 0.01 // Static Volume for Positions
)
{
//
@@ -95191,6 +95196,7 @@ struct X5ProviderDescriptor
inputs.IsValid() &&
IsValid(mSymbol) &&
IsValid(mPeriod) &&
NotEmpty(mStaticVolume) &&
(allowLong || allowShort) &&
ArraySize(mSignallers) > 0
//
@@ -95205,6 +95211,7 @@ struct X5ProviderDescriptor
this.period = mPeriod;
this.allowLong = mAllowLong;
this.allowShort = mAllowShort;
this.staticVolume = mStaticVolume;
//
ENUM_X5_SIGNAL_PROVIDERS tmp[];
@@ -95221,7 +95228,8 @@ struct X5ProviderDescriptor
// Instantiate Provider ...
provider = new XSCX5Provider(
this.symbol,
this.period //
this.period,
this.staticVolume //
);
//
@@ -95280,6 +95288,7 @@ struct X5ProviderDescriptor
//
IsValid(symbol) &&
IsValid(period) &&
NotEmpty(staticVolume) &&
(validateInputs
? inputs.IsValid()
: true) &&