prepare signaller's class ...

This commit is contained in:
2024-06-04 18:34:34 +03:30
parent 87a165d4a0
commit 1637a6ba92
8 changed files with 825 additions and 3677 deletions
+26 -27
View File
@@ -41,9 +41,8 @@ public:
//
// Constructor ...
XSCBaseProvider(
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period, // Trading Period
double staticVolume // Static Volume for Positions
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period // Trading Period
)
{
//
@@ -57,9 +56,6 @@ public:
"HOST Period"
//
);
//
mStaticVolume = staticVolume;
}
//
@@ -91,12 +87,6 @@ public:
return mCycle.hostPeriod;
}
//
double GetStaticVolume()
{
return mStaticVolume;
}
//
// Count Bars ...
int CountBars()
@@ -115,21 +105,6 @@ public:
.IsNewBar();
}
//
// Protected ...
protected:
//
// Props ...
//
double mStaticVolume; // Static Volume for Positions
//
XMarketCycle mCycle;
//
bool mWaitsUntilNewBar;
//
// Can Ignore Process ...
bool CanIgnoreProcess()
@@ -146,6 +121,12 @@ protected:
//
;
//
if (!result)
{
mWaitsUntilNewBar = false;
}
//
return result;
}
@@ -157,6 +138,24 @@ protected:
mWaitsUntilNewBar = !mWaitsUntilNewBar;
}
//
void SetWaitsUntilNewBar(bool value)
{
mWaitsUntilNewBar = value;
}
//
// Protected ...
protected:
//
// Props ...
//
XMarketCycle mCycle;
//
bool mWaitsUntilNewBar;
//
// Private ...
private: