last ...
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user