- Errors, bugs, questions
- CopyTicksRange() not setting 'last' or 'volume'
- How to display extended hour prices on the chart and for the EA?
CopyTicks/CopyTicksRange provide MqlTick data (or vector/matrix but these are the same data in an other data structure). MqlTick provides volume, if there is a volume. The copy flags your are using are irrelevant.
On Forex/CFDs there is no volume as these are not centralized market. Some brokers provide volume data from their own customers on Forex, which is probably not representative of the whole Market.
On Futures/Stocks/Options which are centralized markets, you will have volume data.
CopyTicks/CopyTicksRange provide MqlTick data (or vector/matrix but these are the same data in an other data structure). MqlTick provides volume, if there is a volume. The copy flags your are using are irrelevant.
On Forex/CFDs there is no volume as these are not centralized market. Some brokers provide volume data from their own customers on Forex, which is probably not representative of the whole Market.
On Futures/Stocks/Options which are centralized markets, you will have volume data.
What about "tick volume"? how can I read it? I am using the CopyTicksRange but it returns 0 for volume. I want to read "tick volume" per each tick not per each candle!
What about "tick volume"? how can I read it? I am using the CopyTicksRange but it returns 0 for volume. I want to read "tick volume" per each tick not per each candle!
Yes you can get tick volume but not via CopyTicksRange. You have to get it through iTickVolume(). I know it makes the use of CopyTicksRange impractical, because you could just use SymbolInfoDouble() for bid and Ask then.
I just realized TickVolume is the number of ticks per candle. so obviously Tick volume in MqlTicks has no meaning by itself!
What about "tick volume"? how can I read it? I am using the CopyTicksRange but it returns 0 for volume. I want to read "tick volume" per each tick not per each candle!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use