You are retrieving a single tick of data, so tick volume is 0. Only when obtaining bar information will the tick volume be reported.
Also, for Forex and other non-centralised symbols, real volume information is not usually available, and only tick volume is available for bar data.
You will however, get real volume, for centralised exchange symbols like Futures, Stocks, etc.
You are retrieving a single tick of data, so tick volume is 0. Only when obtaining bar information will the tick volume be reported.
Also, for Forex and other non-centralised symbols, real volume information is not usually available, and only tick volume is available for bar data.
You will however, get real volume, for centralised exchange symbols like Futures, Stocks, etc.
For MQL5: Documentation on MQL5: Timeseries and Indicators Access
For Python: Python Integration
Get bars from the MetaTrader 5 terminal starting from the specified date
Get bars from the MetaTrader 5 terminal starting from the specified index
Get bars in the specified date range from the MetaTrader 5 terminal
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm new to python and mql5, I'm teaching myself both currently. Can someone explain why this code always prints volume equal to 0? (blocked my user & pass for my mt5
The output is this: