This commit is contained in:
2025-02-09 09:31:34 +03:30
parent 8799d7713d
commit 42fec0e906
9 changed files with 1830 additions and 1785 deletions
+11 -2
View File
@@ -384,7 +384,10 @@ struct XTick
*
* @return ( bool )
*/
bool Init(string _symbol)
bool Init(
string _symbol,
ENUM_TIMEFRAMES _volumePeriod = NULL //
)
{
//
bool result = false;
@@ -401,7 +404,13 @@ struct XTick
double _bid = GetBid(_symbol);
double _ask = GetAsk(_symbol);
double _spread = GetSpread(_symbol);
long _volume = iTickVolume(_symbol, PERIOD_M1, 0);
//
long _volume = 0;
if (IsValid(_volumePeriod))
{
_volume = iTickVolume(_symbol, _volumePeriod, 0);
}
//
result = Init(